-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
…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>
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.
a few questions
core/src/main/scala/org/apache/spark/sql/delta/GeneratedColumn.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/apache/spark/sql/delta/GeneratedColumn.scala
Outdated
Show resolved
Hide resolved
core/src/main/scala/org/apache/spark/sql/delta/optimizablePartitionExpressions.scala
Show resolved
Hide resolved
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>
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.
LGTM after you resolve the conflicts
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.
LGTM
@brayanjuls Do you have an email address I can use to sign the commit? Thanks |
@allisonport-db - yes, you can use brayan1213@gmail.com |
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:
Because the date resolution of the partition column has truncated information, we need to reuse the implementation of the following functions:
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