Skip to content

Fix Delta Lake queries with predicates not expressible by tuple domain#12056

Merged
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/failed_to_generate_splits
Apr 21, 2022
Merged

Fix Delta Lake queries with predicates not expressible by tuple domain#12056
findepi merged 1 commit intotrinodb:masterfrom
homar:homar/failed_to_generate_splits

Conversation

@homar
Copy link
Member

@homar homar commented Apr 20, 2022

It didn't work when table was partitioned by column that contained null values
and predicate was applied to it

Description

Related issues, pull requests, and links

Documentation

( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 20, 2022
Copy link
Member

Choose a reason for hiding this comment

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

nit: for a minimal change you could keep addAction.getCanonicalPartitionValues() here
(or make a separate commit like in #12052: a03b205)

Copy link
Member Author

Choose a reason for hiding this comment

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

ok I will remove it. I changed it because it hurt my eyes..

Comment on lines 273 to 274
Copy link
Member

Choose a reason for hiding this comment

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

This is a discourse between code author and a reviewer. Doesn't need to be persisted in the source code comment.

However, indeed, the class is about deletes and we don't do any deletes here.
let's move it elsewhere, perhaps into BaseDeltaLakeMinioConnectorTest

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to avoid the discussion and leave it for future maintainers ;)

Copy link
Member

Choose a reason for hiding this comment

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

testQueryNullPartitionWithNonPushdownablePredicate + add a comment that non-pushdownable means not covertiabe to a TupleDomain

@homar homar requested a review from findepi April 20, 2022 14:56
@homar homar force-pushed the homar/failed_to_generate_splits branch from a687e3e to 27ab5c0 Compare April 20, 2022 15:03
It didn't work when table was partitioned by column that contained null values
and predicate was applied to it
@findepi findepi force-pushed the homar/failed_to_generate_splits branch from 27ab5c0 to 71fbcb6 Compare April 20, 2022 15:14
@findepi findepi merged commit 084c458 into trinodb:master Apr 21, 2022
@findepi findepi mentioned this pull request Apr 21, 2022
@github-actions github-actions bot added this to the 378 milestone Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants