-
Notifications
You must be signed in to change notification settings - Fork 304
deps: upgrade to DataFusion 53.0, Arrow to 58.1 #3629
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
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
39c3c4e
stash
mbutrovich 0edf710
add iceberg and opendal as features
mbutrovich c96422e
cargo fmt
mbutrovich eca9b33
clippy fixes
mbutrovich b5ff641
bump to iceberg-rust df53 branch, clippy fixes
mbutrovich 4258300
bump to iceberg-rust df53 branch, clippy fixes
mbutrovich efa9437
fix fileIO construction
mbutrovich a548871
update deps
mbutrovich f466c4b
Merge branch 'main' into df53
mbutrovich faf1c56
Bump to 53.0.0-rc2.
mbutrovich a31c1a3
Merge branch 'main' into df53
mbutrovich 5a70cc9
Merge in upstream/main.
mbutrovich eb3198f
Fix native/core/Cargo.toml.
mbutrovich 0de1381
Fix native test failures, clippy.
mbutrovich 7257a24
Update to use object_store 0.13 in hdfs.rs.
mbutrovich 43059fd
Fix memory pool issues.
mbutrovich 1794cfd
Fix type coercion for Utf8View stuff.
mbutrovich 6cfe190
Bump to released crates.
mbutrovich 3b40b81
bump to iceberg-rust main commit with df53
mbutrovich eb64e29
Merge remote-tracking branch 'apache/main' into df53
mbutrovich a359213
putting missing file back
mbutrovich 88e4bf4
fix
mbutrovich de3faa0
fix native test
mbutrovich 1105bb2
workaround array_compact and array_repeat failures
mbutrovich a2f5257
workaround array_compact and array_repeat failures
mbutrovich 7684997
bump opendal to commit on main with upgraded object_store.
mbutrovich 9d6f776
Merge branch 'main' into df53
mbutrovich 28d98e2
Merge branch 'main' into df53
mbutrovich 1413355
cargo update
mbutrovich 2be791c
fix mapping issue with native_datafusion
mbutrovich 51ebbc3
make test consistent with others in the file
mbutrovich 18efeb4
add fallback for SPARK-39393 test.
mbutrovich 38dc46a
update docs
mbutrovich c73db1f
fix spotless.
mbutrovich b3e2785
Merge branch 'main' into df53
mbutrovich e84b109
Merge branch 'main' into df53
mbutrovich e518d16
rename from PR feedback
mbutrovich e144ff3
Merge branch 'main' into df53
mbutrovich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -103,16 +103,21 @@ impl MemoryPool for CometFairMemoryPool { | |
| .expect("unexpected amount of unregister happened"); | ||
| } | ||
|
|
||
| fn grow(&self, reservation: &MemoryReservation, additional: usize) { | ||
| self.try_grow(reservation, additional).unwrap(); | ||
| fn grow(&self, _reservation: &MemoryReservation, additional: usize) { | ||
| self.try_grow(_reservation, additional).unwrap(); | ||
| } | ||
|
|
||
| fn shrink(&self, reservation: &MemoryReservation, subtractive: usize) { | ||
| fn shrink(&self, _reservation: &MemoryReservation, subtractive: usize) { | ||
| if subtractive > 0 { | ||
| let mut state = self.state.lock(); | ||
| let size = reservation.size(); | ||
| if size < subtractive { | ||
| panic!("Failed to release {subtractive} bytes where only {size} bytes reserved") | ||
| // We don't use reservation.size() here because DataFusion 53+ decrements | ||
| // the reservation's atomic size before calling pool.shrink(), so it would | ||
| // reflect the post-shrink value rather than the pre-shrink value. | ||
| if state.used < subtractive { | ||
| panic!( | ||
| "Failed to release {subtractive} bytes where only {} bytes tracked by pool", | ||
| state.used | ||
| ) | ||
| } | ||
| self.release(subtractive) | ||
| .unwrap_or_else(|_| panic!("Failed to release {subtractive} bytes")); | ||
|
|
@@ -122,7 +127,7 @@ impl MemoryPool for CometFairMemoryPool { | |
|
|
||
| fn try_grow( | ||
| &self, | ||
| reservation: &MemoryReservation, | ||
| _reservation: &MemoryReservation, | ||
| additional: usize, | ||
| ) -> Result<(), DataFusionError> { | ||
| if additional > 0 { | ||
|
|
@@ -132,10 +137,13 @@ impl MemoryPool for CometFairMemoryPool { | |
| .pool_size | ||
| .checked_div(num) | ||
| .expect("overflow in checked_div"); | ||
| let size = reservation.size(); | ||
| if limit < size + additional { | ||
| // We use state.used instead of reservation.size() because DataFusion 53+ | ||
| // calls pool.try_grow() before incrementing the reservation's atomic size, | ||
| // so reservation.size() would not include prior grows. | ||
| let used = state.used; | ||
| if limit < used + additional { | ||
| return resources_err!( | ||
| "Failed to acquire {additional} bytes where {size} bytes already reserved and the fair limit is {limit} bytes, {num} registered" | ||
| "Failed to acquire {additional} bytes where {used} bytes already reserved and the fair limit is {limit} bytes, {num} registered" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit |
||
| ); | ||
| } | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
this is one of datafusion spark built in issues? perhaps we can just fallback in this case like we do for other spark builtin functions?