Optional table alias (e.g. t in FROM users AS t).
Whether AS keyword was explicitly used for the alias
Optional catalog qualifier (e.g. mydb in mydb.public.users).
OptionalchangesSnowflake CHANGES clause: CHANGES (INFORMATION => ...) AT (...) END (...)
Column aliases for table alias: AS t(c1, c2)
ClickHouse FINAL modifier: forces final aggregation for MergeTree tables
TSQL table hints: WITH (TABLOCK, INDEX(myindex), ...)
Optionalidentifier_Snowflake IDENTIFIER() function: dynamic table name from string/variable When set, this is used instead of the name field
The unqualified table name.
PostgreSQL ONLY modifier: prevents scanning child tables in inheritance hierarchy
OptionalpartitionsMySQL: PARTITION(p0, p1, ...) hint for reading from specific partitions
Optional schema qualifier (e.g. public in public.users).
Optionalsystem_TSQL: FOR SYSTEM_TIME temporal clause Contains the full clause text, e.g., "FOR SYSTEM_TIME BETWEEN c AND d"
Optionaltable_TABLESAMPLE clause attached to this table reference (DuckDB, BigQuery)
Trailing comments that appeared after this table reference
OptionalversionTime travel version clause: FOR VERSION AS OF / FOR TIMESTAMP AS OF (Presto/Trino, BigQuery, Databricks)
Snowflake time travel: BEFORE (STATEMENT => ...) or AT (TIMESTAMP => ...)
Represent a table reference with optional schema and catalog qualifiers.
Renders as
name,schema.name, orcatalog.schema.namedepending on which qualifiers are present. Supports aliases, column alias lists, time-travel clauses (Snowflake, BigQuery), table hints (TSQL), and several other dialect-specific extensions.