Skip to content

chore: test sqlparser main ahead of 0.65.0 - #27063

Draft
alamb wants to merge 4 commits into
apache:mainfrom
alamb:alamb/test-sqlparser-0.64
Draft

alamb wants to merge 4 commits into
apache:mainfrom
alamb:alamb/test-sqlparser-0.64

Conversation

@alamb

@alamb alamb commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

Test DataFusion against upstream sqlparser main ahead of the proposed 0.65.0 release, following the release discussion in apache/datafusion-sqlparser-rs#3004.

This is a validation PR and remains a draft. Replace the git pin with a published version before merging.

What changes are included in this PR?

  • Pin sqlparser to upstream commit ba850faff0d7bde0193e4c8635fdf5155a801d97 (the current main as of November 24, 2026), including the ONLY fix from Generic: Preserve ONLY as an unquoted table name datafusion-sqlparser-rs#3003. The upstream manifest still declares version 0.64.0.
  • Adapt SQL planning and unparsing to the updated AST. Reject unsupported typed tables and constraint conflict clauses explicitly.
  • Cover unquoted only table names and unsupported syntax with regression tests.
  • Include a dependency version requirement and format Cargo.toml so the publication dry run and TOML formatting checks pass.

What is the testing strategy for this PR?

Local checks on the updated branch:

  • cargo fmt --all -- --check
  • cargo clippy --locked --all-targets --all-features -- -D warnings
  • ci/scripts/rust_toml_fmt.sh
  • ci/scripts/check_circular_dependencies.sh
  • ci/scripts/typos_check.sh
  • ci/scripts/check_large_files.sh
  • ci/scripts/doc_prettier_check.sh

Full test workflows passed in GitHub Actions for commit 2f62d5fba2a700af039f58283058c14e44e8e735:

  • Rust workflow: workspace tests, SQLLogicTests with coverage, CLI, doctests, examples, Clippy, MSRV, and feature checks passed.
  • Extended workflow: extended tests, fuzzing, hash-collision tests, and the SQLite SQLLogicTest suite passed.

Compatibility follow-ups still under investigation:

  • Generic SELECT union FROM t is parsed as a set operation with empty projections rather than a column reference; this is still reproducible with the pinned parser.
  • PostgreSQL SELECT 0xFF now produces a numeric literal containing 0xFF; DataFusion's numeric planner still needs radix-aware handling.

Are there any user-facing changes?

This PR evaluates the next sqlparser version and its compatibility with DataFusion. TableRelationBuilder::index_hints is renamed to index_directives and takes Vec<TableIndexDirective>.

This PR was prepared with AI assistance (Claude Code and Codex).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@alamb

alamb commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

Started extended tests against c492510: https://github.com/apache/datafusion/actions/runs/41727899260

@alamb

alamb commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

The failed runs are for cargo.toml formatting and ciccular dependency check
https://github.com/alamb/datafusion/actions/runs/41726900655/job/126237771247

So I think all the other tests are ready to go

@blaginin

Copy link
Copy Markdown
Member
file-93e67cce7e82cde5b6991557b0c7651d

assuming that's... ok?

@alamb

alamb commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

assuming that's... ok?

🤔 that looks like a regression to me

We should at least write a test for it. And then figure out what to do (I can perhaps run another sqlparser release upstream)

@blaginin

Copy link
Copy Markdown
Member

happy to take over if you like

@alamb

alamb commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

happy to take over if you like

Yes, please that would be amazing. THank you @blaginin

@blaginin blaginin changed the title chore: test sqlparser-rs 0.64.0 release branch before release chore: test sqlparser main ahead of 0.65.0 Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sql SQL Planner sqllogictest SQL Logic Tests (.slt)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants