Content-Length: 247668 | pFad | http://github.com/JSQLParser/JSqlParser/issues/2208

3C [FEATURE] Support for FULL OUTER UNION ALL BY NAME (Big Query) · Issue #2208 · JSQLParser/JSqlParser · GitHub
Skip to content

[FEATURE] Support for FULL OUTER UNION ALL BY NAME (Big Query) #2208

@SusanaCastela

Description

@SusanaCastela

Grammar or Syntax Description

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:
    SELECT 1 as b FULL OUTER UNION ALL BY NAME SELECT 2 as a

Additional context

Database/Platform: Google BigQuery

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://github.com/JSQLParser/JSqlParser/issues/2208

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy