Skip to content

HIVE-28917: NPE in merge statement when checking nullability of joini… #5781

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

Merged
merged 3 commits into from
May 15, 2025

Conversation

soumyakanti3578
Copy link
Contributor

@soumyakanti3578 soumyakanti3578 commented Apr 22, 2025

…ng column in matched clause

What changes were proposed in this pull request?

When TOK_FROM is not present in the AST for MERGE statements, return DestClausePrefix.MERGE.

Why are the changes needed?

Without this we could get an NPE as explained in HIVE-28917

Does this PR introduce any user-facing change?

No

How was this patch tested?

mvn test -pl itests/qtest-iceberg -Piceberg -Pitests -Dtest=TestIcebergNegativeCliDriver -Dtest.output.overwrite=true -Dqfile="merge_with_null_check_on_joining_col.q"

Copy link
Member

@zabetak zabetak left a comment

Choose a reason for hiding this comment

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

I am not very familiar with this part of the code but given that the test pass and there are no new failures I am leaning towards accepting the PR. Left some small comments/questions but we should be close to merge this unless someone else has thoughts on the proposal.

Copy link

sonarqubecloud bot commented May 6, 2025

@soumyakanti3578
Copy link
Contributor Author

@zabetak @kasakrisz
Please review again as I have updated the tests. Thank you.

@kasakrisz kasakrisz merged commit 0806772 into apache:master May 15, 2025
4 checks passed
@abstractdog
Copy link
Contributor

@soumyakanti3578, @kasakrisz , @zabetak : seems like the precommit of this patch was green, but when the commit was merged, something else was already committed that altered the expected q.out, hence this failure now:
https://ci.hive.apache.org/blue/organizations/jenkins/hive-precommit/detail/master/2519/tests/

can someone revert or update the q.out as soon as possible? thanks in advance

@soumyakanti3578
Copy link
Contributor Author

I have raised an ADDENDUM PR to fix the failing test: #5815

This was most probably caused by #5798, which removes native table virtual columns from non native tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants