-
Notifications
You must be signed in to change notification settings - Fork 260
chore: update datafusion to 51.0 #1345
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
Conversation
| edition = "2021" | ||
| # we should try to follow datafusion version | ||
| rust-version = "1.86.0" | ||
| rust-version = "1.88.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try to align with DataFusion rust version, feel free to let me know if we dont want to bump it right now
https://github.com/apache/datafusion/blob/main/Cargo.toml#L80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense
|
Hey @milenkovicm — I continued your work by adding the new metrics type support, adjusting DF API usages, and updating the related tests. CI looks fine, appreciate your feedback whenever you get a chance. Thanks! |
|
Thanks @danielhumanmod will have a look later today |
milenkovicm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think pr makes sense, thanks a lot! just few minor comments. Also, could you please update datafusion and datafusion-common.proto files to reflect df 51 versions (we usually do it with every df update)
| .build(); | ||
| let ctx = SessionContext::new_with_state(session_state); | ||
| // | ||
| let ctx = SessionContext::new_with_state(session_state).task_ctx(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we create TaskContext directly? we should have all required info for TaskContext
ballista/core/src/serde/mod.rs
Outdated
| // | ||
| // | ||
| // | ||
| let ctx = SessionContext::new_with_state(state).task_ctx(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment, can we create task context directly ?
| edition = "2021" | ||
| # we should try to follow datafusion version | ||
| rust-version = "1.86.0" | ||
| rust-version = "1.88.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense
Thanks for the feedback! Updated all the comments in latest commit, feel free to merge it or let me know any further improvement |
|
thanks @danielhumanmod it looks good! |
Which issue does this PR close?
Closes #1343 .
Rationale for this change
DataFusion 51 introduces new changes in its physical plan serde APIs, metrics system, and tonic/prost/Arrow dependencies
Reference: https://datafusion.apache.org/library-user-guide/upgrading.html#datafusion-51-0-0
What changes are included in this PR?
(no semantic changes)
Are there any user-facing changes?
No user-facing behavior changes.
This PR only updates internal dependencies and adapts Ballista to the breaking changes introduced by DataFusion 51.
All external APIs, CLI behavior, and user-visible features remain unchanged.