Skip to content
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

Automatically generate partition filters for generated columns using the trunc date function #1513

Closed

Conversation

brayanjuls
Copy link

@brayanjuls brayanjuls commented Dec 8, 2022

Description

We are adding support for partition filter on partition columns that use the generation expression trunc date. We are considering the following data filters:

  • lessThan
  • lessThanOrEqual
  • equalTo
  • greaterThan
  • greaterThanOrEqual
  • isNull

Because the date resolution of the partition column has truncated information, we need to reuse the implementation of the following functions:

  • lessThanOrEqual reused in lessThan function.
  • greaterThanOrEqual reused in greaterThan function.

This PR resolves issue #1446

How was this patch tested?

I added three new tests to the OptimizeGeneratedColumnSuite class.

Does this PR introduce any user-facing changes?

No

…for generated columns using trunc function.

Signed-off-by: brayan_jules <brayan_jules@epam.com>
…ime,date,str) that could be sent to a trunc function.

Signed-off-by: brayan_jules <brayan_jules@epam.com>
Signed-off-by: brayan_jules <brayan_jules@epam.com>
Copy link
Collaborator

@allisonport-db allisonport-db left a comment

Choose a reason for hiding this comment

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

a few questions

brayan_jules and others added 2 commits December 19, 2022 18:06
Signed-off-by: brayan_jules <brayan_jules@epam.com>
Signed-off-by: Brayan Jules <brayan1213@gmail.com>
Signed-off-by: brayan_jules <brayan_jules@epam.com>
Copy link
Collaborator

@allisonport-db allisonport-db left a comment

Choose a reason for hiding this comment

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

LGTM after you resolve the conflicts

Copy link
Collaborator

@allisonport-db allisonport-db left a comment

Choose a reason for hiding this comment

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

LGTM

@allisonport-db
Copy link
Collaborator

@brayanjuls Do you have an email address I can use to sign the commit? Thanks

@brayanjuls
Copy link
Author

@allisonport-db - yes, you can use brayan1213@gmail.com

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.

None yet

2 participants