Skip to main content
Preview Supported BigQuery query syntax in BigQuery compatibility mode. For the |> pipe operator, see Pipe syntax.

Supported clauses

Set operations

Set operators UNION, INTERSECT, and EXCEPT are supported with ALL or DISTINCT.

Limitations

  • CORRESPONDING and BY NAME apply to UNION only. INTERSECT and EXCEPT do not accept them.
  • Without an explicit column list, only the FULL and STRICT forms of CORRESPONDING are supported. Subset (inner or left) matching needs an explicit BY (...) list.
  • WITH RECURSIVE is not supported.
  • PIVOT, UNPIVOT, TABLESAMPLE, and MATCH_RECOGNIZE are not supported as table sources.
  • UNNEST ... WITH ORDINALITY is not supported. Use WITH OFFSET AS alias.
  • ORDER BY does not support WITH FILL or INTERPOLATE.
  • DISTINCT ON, LIMIT ... BY, FETCH, and row-locking clauses are not supported.
  • A table-valued function call must be unqualified. A schema-qualified call (schema.func(...)) is not supported.