Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to DataFusion 46.0.0 (WORK IN PROGRESS) #3261

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alamb
Copy link
Contributor

@alamb alamb commented Feb 24, 2025

Description

chore: upgrade to DataFusion 46.0.0

This is a work in progress. I am testing the effects of upgrading to DataFusion 46

Related Issue(s)

Documentation

@alamb alamb marked this pull request as draft February 24, 2025 19:29
@github-actions github-actions bot added the binding/rust Issues for the Rust crate label Feb 24, 2025
Copy link

ACTION NEEDED

delta-rs follows the Conventional Commits specification for release automation.

The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification.

@alamb alamb changed the title core: upgrade to DataFusion 46.0.0 (WORK IN PROGRESS) chore: upgrade to DataFusion 46.0.0 (WORK IN PROGRESS) Feb 24, 2025
@@ -44,6 +44,7 @@ impl<'a, S: ContextProvider> DeltaSqlToRel<'a, S> {
enable_ident_normalization: self.options.enable_ident_normalization,
support_varchar_with_length: false,
enable_options_value_normalization: false,
collect_spans: false,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is spans?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The source code locations for expressions:

https://docs.rs/sqlparser/latest/sqlparser/tokenizer/struct.Span.html

We are starting to gather / plumb this into DataFusion. This particular setting means the sql planner won't try and pass the span information along. The only thing the spans are used for now is debug / help messages

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah ok thanks for explaining :) I learned something new about datafusion!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this is a new feature that was starting to be added in DataFusion 46

@alamb
Copy link
Contributor Author

alamb commented Feb 24, 2025

Looks like from CI we also need to update rust to be 1.82

https://github.com/delta-io/delta-rs/actions/runs/13506223447/job/37736308124?pr=3261

error: rustc 1.81.0 is not supported by the following packages:
[email protected] requires rustc 1.82.0
[email protected] requires rustc 1.82.0
...

@alamb
Copy link
Contributor Author

alamb commented Feb 24, 2025

I have a few cleanup PRs I would plan to make as I work on this. Here is the first one:

@alamb
Copy link
Contributor Author

alamb commented Feb 25, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
binding/rust Issues for the Rust crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants