Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: apache/datafusion-sqlparser-rs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: funcpp/datafusion-sqlparser-rs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 8 files changed
  • 2 contributors

Commits on Mar 30, 2026

  1. Support optional AS keyword in CTE definitions for Databricks

    Databricks allows omitting the AS keyword in CTE definitions:
    `WITH cte (SELECT ...) SELECT * FROM cte`
    
    Add `supports_cte_without_as()` dialect method and enable it for
    Databricks and Generic dialects.
    funcpp committed Mar 30, 2026
    Configuration menu
    Copy the full SHA
    2051de9 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2026

  1. Configuration menu
    Copy the full SHA
    d86acab View commit details
    Browse the repository at this point in the history
  2. Allow bare columns in GROUPING SETS expressions

    GROUPING SETS used parse_tuple(false, true) which required each
    element to be parenthesized, while CUBE and ROLLUP already used
    parse_tuple(true, true) allowing bare columns. This inconsistency
    meant GROUPING SETS (a, b, c) failed to parse despite being valid
    syntax in PostgreSQL, Databricks, and other dialects.
    funcpp committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    4d0f3be View commit details
    Browse the repository at this point in the history
  3. Support multi-column aliases in SELECT items for Databricks

    Spark SQL grammar allows parenthesized identifier lists as SELECT
    item aliases:
    
      namedExpression: expression (AS? (identifier | identifierList))?
      identifierList: '(' identifier (',' identifier)* ')'
    
    This enables syntax like:
      SELECT stack(2, 'a', 'b', 'c', 'd') AS (col1, col2)
    funcpp committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    156b6ff View commit details
    Browse the repository at this point in the history
  4. Enable numeric-prefix identifiers for Databricks dialect

    Databricks, built on Spark SQL, allows identifiers that start with
    digits. The Spark SQL ANTLR lexer defines IDENTIFIER as
    (UNICODE_LETTER | DIGIT | '_')+, with no restriction on the first
    character.
    
    Enable the existing supports_numeric_prefix() for DatabricksDialect.
    funcpp committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    ae901ac View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fa88db9 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ce518f4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3828bca View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f692d90 View commit details
    Browse the repository at this point in the history
Loading