BigQuery: enable FROM-first SELECT (pipe syntax entry form)#6
Conversation
GoogleSQL allows a query to start with FROM — the canonical entry form for pipe syntax (`FROM t |> WHERE …`) as well as plain `FROM t`. BigQueryDialect already enables supports_pipe_operator but left supports_from_first_select at the default (false), so `FROM t |> …` failed to parse with "Expected: SELECT, VALUES, or a subquery in the query body, found: FROM". Enable it, matching the ClickHouse/DuckDB/Generic dialects. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
26b5faa
into
firebolt/v0.62.0-patches
|
Post-hoc review note (flagging for visibility): this was merged into Scope: a single additive 7-line change — Verification: Rollback if desired: |
Enables
supports_from_first_selectfor BigQueryDialect soFROM t |> …(GoogleSQL's canonical pipe entry form) and plainFROM tparse. Matches ClickHouse/DuckDB/Generic. 55 bigquery tests pass.Note
Low Risk
Single dialect capability flag with no auth, data, or core parser logic changes beyond BigQuery parsing behavior.
Overview
BigQuery now opts into FROM-first SELECT parsing by implementing
supports_from_first_selectonBigQueryDialect(returnstrue).This aligns BigQuery with ClickHouse, DuckDB, and Generic dialects so the parser accepts GoogleSQL’s canonical pipe entry form (
FROM t |> WHERE …) and plainFROM-leading queries, complementing the existingsupports_pipe_operatorflag.Reviewed by Cursor Bugbot for commit 75169d2. Bugbot is set up for automated code reviews on this repo. Configure here.