FROM

Translation specification for the FROM clause in BigQuery to Snowflake

Description

This clause indicates the table or tables from which to retrieve rows, and specifies how to join those rows together to produce a single stream of rows for processing in the rest of the query (BigQuery FROM clause documentation)

FROM from_clause[, ...]

from_clause:
  from_item
  [ { pivot_operator | unpivot_operator } ]
  [ tablesample_operator ]

from_item:
  {
    table_name [ as_alias ] [ FOR SYSTEM_TIME AS OF timestamp_expression ] 
    | { join_operation | ( join_operation ) }
    | ( query_expr ) [ as_alias ]
    | field_path
    | unnest_operator
    | cte_name [ as_alias ]
  }

as_alias:
  [ AS ] alias

Sample Source Patterns

Setup data

BigQuery

Snowflake

TABLESAMPLE

The results of this clause are not deterministic but functionally equivalent in both languages

BigQuery

Snowflake

FOR SYSTEM_TIME

BigQuery

Snowflake

Known Issues

No known issues.

No related EWIs.

Last updated

Was this helpful?