HIVE-28408: Support ARRAY field access in CBO - #5577
Merged
Merged
Conversation
ramesh0201
force-pushed
the
HIVE-28408
branch
from
December 12, 2024 17:29
ef2d276 to
e702419
Compare
ramesh0201
force-pushed
the
HIVE-28408
branch
from
December 18, 2024 12:50
e702419 to
d146c5f
Compare
ramesh0201
force-pushed
the
HIVE-28408
branch
from
December 18, 2024 18:34
d146c5f to
2f4338c
Compare
okumin
reviewed
Dec 22, 2024
zabetak
reviewed
Jan 6, 2025
Member
|
It would be also nice to include a qfile with an EXPLAIN CBO statement that shows that we can treat ARRAY field access in CBO. Possibly the book example that I added under HIVE-28408 is a good fit. |
Contributor
Author
|
@zabetak Can you please review the latest patch? I have addressed most of the comments, except the two that have I left a comment above. |
zabetak
approved these changes
Jan 13, 2025
zabetak
left a comment
Member
There was a problem hiding this comment.
LGTM, thanks for addressing the comments @ramesh0201 !
|
Contributor
Author
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.



What changes were proposed in this pull request?
We need to support array field access in the CBO. This is currently already supported in the execution side. Only CBO fails with an error. So we will be by passing the CBO by doing no-op in this case to leave it to hive compiler and execution engine to do rest of the work
Why are the changes needed?
In order to enable CBO for all the queries
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
mvn test -Dtest=TestMiniLlapLocalCliDriver -Dqfile=nested_column_pruning.q