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

HIVE-28537: Iceberg: allow only partition columns in the WHERE clause #5483

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zratkai
Copy link
Contributor

@zratkai zratkai commented Oct 3, 2024

Change-Id: Ic85efd70599413cdb96073c6cb50690fbc1c11b0

What changes were proposed in this pull request?

Limiting the columns in where clause in compaction to partition columns.

Why are the changes needed?

Currently Hive Iceberg compaction supports any columns in the WHERE clause predicate. However, compaction happens only on partition level. Performance can be improved if the columns in WHERE clause predicate will be limited to partition columns.

Does this PR introduce any user-facing change?

Yes, user will get an exception if uses non partition columns in alter table compaction query.

Is the change a dependency upgrade?

No.

How was this patch tested?

With qtest.

@difin
Copy link
Contributor

difin commented Oct 3, 2024

+1, Looks good to me.

Added a few minor formatting comments.
There is also a q-test failure iceberg_major_compaction_partition_evolution_w_id_spec_w_filter
The test needs to be adjusted for these code changes.

@deniskuzZ
Copy link
Member

deniskuzZ commented Oct 18, 2024

@zratkai
Copy link
Contributor Author

zratkai commented Oct 18, 2024

@deniskuzZ thanks for the review! Please check the modifications!

Change-Id: Ic85efd70599413cdb96073c6cb50690fbc1c11b0
Copy link

sonarcloud bot commented Oct 18, 2024

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.

4 participants