You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BigQuery supports a non-standard extension to UNION ALL that includes FULL OUTER UNION ALL BY NAME. This construct allows combining multiple SELECT queries by matching column names instead of relying on column order, and filling in NULLs for missing columns.
Currently, JSQLParser does not support parsing this syntax. It results in the following error: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "FULL"
SQL Example
Simplified Query Example, focusing on the failing feature:
SELECT1as b FULL OUTER UNION ALL BY NAME SELECT2as a
Grammar or Syntax Description
BigQuery supports a non-standard extension to
UNION ALL
that includesFULL OUTER UNION ALL BY NAME
. This construct allows combining multiple SELECT queries by matching column names instead of relying on column order, and filling in NULLs for missing columns.Currently, JSQLParser does not support parsing this syntax. It results in the following error:
net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "FULL"
SQL Example
Additional context
Database/Platform: Google BigQuery
Official Docs:
https://cloud.google.com/bigquery/docs/reference/standard-sql/query-syntax#union
The text was updated successfully, but these errors were encountered: