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.

Query parameters

BigQuery named query parameters are written as @name. Bind values with the query_parameters request property; see Parametrized queries for passing parameter values from different client SDKs, and the SQL guide for parameter value types.
A @name reference is case-insensitive. Referencing a parameter that was not set raises an error.

Limitations

  • Query parameters support the named @name form only. Positional (?) parameters are not supported.
  • @@name system variables are not supported.
  • 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.