Add support for pruning splits using metadata columns in Delta Lake#25376
Merged
Conversation
afe9cba to
f77b4b2
Compare
chenjian2664
commented
Mar 21, 2025
Contributor
Author
There was a problem hiding this comment.
The tests are copied from BaseIcebergConnectorTest with very small changes:
- using MILLISECONDS.sleep(1);
- adapt the result
getActiveFiles - using
newTrinoTableto create test table
ebyhr
reviewed
Mar 24, 2025
f77b4b2 to
f82ffa5
Compare
findinpath
reviewed
Mar 24, 2025
f82ffa5 to
b165d68
Compare
findinpath
reviewed
Mar 24, 2025
findinpath
reviewed
Mar 24, 2025
findinpath
approved these changes
Mar 24, 2025
48fac61 to
1923e8f
Compare
1923e8f to
36b985c
Compare
Member
|
@chenjian2664 Could you confirm CI failure? |
36b985c to
47d3648
Compare
ebyhr
reviewed
Mar 25, 2025
3481036 to
b1008c0
Compare
ebyhr
reviewed
Mar 27, 2025
Member
ebyhr
left a comment
There was a problem hiding this comment.
This PR still has a correctness issue on DELETE operation. You can reproduce by the following steps:
CREATE TABLE test(a int);
INSERT INTO test VALUES 1;
INSERT INTO test VALUES 2;
SELECT "$path" FROM test;
DELETE FROM test WHERE "$path" = 'x'; -- removes all rows
TABLE test;Extracted `partitionMatchesPredicate` from `DeltaLakeSplitManager` into a new utility class `DeltaLakeDomains`
144888b to
ef439e4
Compare
Co-Authored-By: Marius Grama <findinpath@gmail.com>
The `$path` column is already used for pruning splits in DeltaLakeSplitManager, This commit removes the `$path` domain from `remainingFilter` of the filter pushdown result Co-Authored-By: Marius Grama <findinpath@gmail.com>
ef439e4 to
26d17a1
Compare
Co-Authored-By: Marius Grama <findinpath@gmail.com>
Member
|
(Fixed a small typo) |
ebyhr
approved these changes
Mar 27, 2025
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduces handling and pushdown of the metadata columns('$file_modified_time', '$path', '$file_size') in Delta Lake
Description
Closes #25369
Release notes