pub struct TableRef {
pub name: String,
pub alias: Option<String>,
pub as_of_segment: Option<u32>,
pub unnest_expr: Option<Box<Expr>>,
}Fields§
§name: String§alias: Option<String>§as_of_segment: Option<u32>v6.10.2 — AS OF SEGMENT '<id>' cold-tier time-travel.
When Some(id), the scan restricts to rows that live in
segment <id> only — useful for forensic inspection of a
specific freezer-emitted segment without exposing the hot
tier. AS OF TIMESTAMP <ts> (PG-flavoured time travel)
is STABILITY carve-out for v6.10 — needs the freezer to
stamp each segment with a wall-clock at creation time.
unnest_expr: Option<Box<Expr>>v7.11.7 — FROM unnest(<expr>) [AS] <alias> set-returning
source. When Some, name is the alias (defaulting to
"unnest" when no AS is given) and the engine builds a
synthetic single-column table by evaluating the expression
once at SELECT entry. Each TEXT[] element becomes one row;
NULL elements become NULL cells. v7.11 supports
uncorrelated UNNEST only (the expr cannot reference outer
columns) and only as the FROM primary (no JOINs).