Skip to content

chore: Upgrade to datafusion 47.0.0-rc1 and arrow-rs 55.0.0 #1563

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

Merged
merged 25 commits into from
Apr 17, 2025

Conversation

andygrove
Copy link
Member

@andygrove andygrove commented Mar 21, 2025

Which issue does this PR close?

Closes #1634

Rationale for this change

Use latest DataFusion. I will create a follow-on PR next week to change to the official 47.0.0 release once it is available.

What changes are included in this PR?

How are these changes tested?

/// Unlike `map_batch` this method also preserves the columns that
/// may not appear in the final output (`projected_table_schema`) but may
/// appear in push down predicates
fn map_partial_batch(&self, batch: RecordBatch) -> datafusion::common::Result<RecordBatch> {
Copy link
Member Author

Choose a reason for hiding this comment

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

map_partial_batch has been removed in DataFusion

Copy link
Member Author

Choose a reason for hiding this comment

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

@mbutrovich @parthchandra fyi, I am not sure of the impact, but I figured I would first see if any tests fail in CI

@andygrove andygrove changed the title chore: Prepare for update to DataFusion 47 chore: Prepare for DataFusion 47.0.0 Mar 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.75%. Comparing base (f09f8af) to head (da0cc73).
Report is 146 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1563      +/-   ##
============================================
+ Coverage     56.12%   58.75%   +2.62%     
- Complexity      976     1081     +105     
============================================
  Files           119      125       +6     
  Lines         11743    12581     +838     
  Branches       2251     2360     +109     
============================================
+ Hits           6591     7392     +801     
- Misses         4012     4015       +3     
- Partials       1140     1174      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@andygrove
Copy link
Member Author

I ran TPC-H benchmarks locally and do not see any noticeable difference in performance

@andygrove
Copy link
Member Author

Some aggregate tests started to fail. I filed an issue in DataFusion apache/datafusion#15676

@andygrove andygrove changed the title chore: Prepare for DataFusion 47.0.0 chore: Prepare for datafusion 47.0.0 and arrow-rs 55.0.0 Apr 14, 2025
Comment on lines +145 to +147
fn fmt_sql(&self, _: &mut Formatter<'_>) -> std::fmt::Result {
unimplemented!()
}
Copy link
Member Author

@andygrove andygrove Apr 14, 2025

Choose a reason for hiding this comment

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

DataFusion now supports a new EXPLAIN output, but this is not exposed in Comet, so we do not need to implement these new methods.

.with_table_partition_cols(partition_fields),
_ => get_file_config(
(Some(data_schema), Some(projection_vector), Some(partition_fields)) => {
get_file_config_builder(
Copy link
Member Author

Choose a reason for hiding this comment

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

this now uses a builder

@andygrove
Copy link
Member Author

@comphead Could you review the HDFS changes? There was a change in objectstore to use Range<u64> instead of Range<usize>

@comphead
Copy link
Contributor

comphead commented Apr 14, 2025

@comphead Could you review the HDFS changes? There was a change in objectstore to use Range<u64> instead of Range<usize>

Thanks @andygrove I think these HDFS changes LGTM

@andygrove andygrove changed the title chore: Prepare for datafusion 47.0.0 and arrow-rs 55.0.0 chore: Upgrade to datafusion 47.0.0-rc1 and arrow-rs 55.0.0 Apr 16, 2025
@andygrove andygrove marked this pull request as ready for review April 16, 2025 21:03
Copy link
Contributor

@parthchandra parthchandra left a comment

Choose a reason for hiding this comment

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

lgtm. I don't think the schema adapter change is likely to affect our readers

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @andygrove are you planning to refer to rc1 or wait for the official release?

@andygrove
Copy link
Member Author

I'd like to merge this one and then switch to the official release next week

@andygrove andygrove merged commit b8be7b7 into apache:main Apr 17, 2025
78 checks passed
@andygrove andygrove deleted the prep-datafusion-47 branch April 17, 2025 02:12
@YanivKunda
Copy link
Contributor

I'd like to merge this one and then switch to the official release next week

@andygrove here's the switch:
#1663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to DataFusion 47.0.0
5 participants