Skip to content

BigQuery: enable FROM-first SELECT - #2439

Open
moshap-firebolt wants to merge 1 commit into
apache:mainfrom
moshap-firebolt:bigquery-from-first-select
Open

BigQuery: enable FROM-first SELECT#2439
moshap-firebolt wants to merge 1 commit into
apache:mainfrom
moshap-firebolt:bigquery-from-first-select

Conversation

@moshap-firebolt

Copy link
Copy Markdown
Contributor

BigQuery allows a query to start with FROM, e.g. FROM t and FROM t SELECT *,
which is also the entry form for pipe syntax (FROM t |> ...).

The parser already supports FROM-first SELECT behind
Dialect::supports_from_first_select() (enabled for ClickHouse, DuckDB and
Generic); this enables it for BigQuery as well. The existing
test_select_from_first / test_select_from_first_with_cte, parameterized over
all_dialects_where(|d| d.supports_from_first_select()), now cover BigQuery.

Docs: https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#from_queries

BigQuery allows a query to start with `FROM`, e.g. `FROM t` and `FROM t SELECT *`,
which is also the entry form for pipe syntax (`FROM t |> ...`).

The parser already supports FROM-first `SELECT` behind
`Dialect::supports_from_first_select()` (enabled for ClickHouse, DuckDB and
Generic); this enables it for BigQuery as well. The existing
`test_select_from_first` / `test_select_from_first_with_cte`, parameterized over
`all_dialects_where(|d| d.supports_from_first_select())`, now cover BigQuery.

Docs: https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#from_queries

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant