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

Core: BugFix: PartitionStatsUtil#computeStats returns incomplete stats in case of partition evolution #12137

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

deniskuzZ
Copy link
Member

@deniskuzZ deniskuzZ commented Jan 30, 2025

Description:
PartitionMap creates internal wrappers based on table specs partitionType, however, we are passing coercedPartition with unified partition type considering all specs as a KEY, leading to wrong evaluation.

#12168

Repro:
https://github.com/apache/hive/blob/master/iceberg/iceberg-handler/src/test/queries/positive/iceberg_bucket_map_join_4.q

Testing:

  • TestPartitionStatsUtil#testPartitionStatsWithSchemaEvolution2

@github-actions github-actions bot added the core label Jan 30, 2025
@deniskuzZ deniskuzZ changed the title BugFix: PartitionStatsUtil#computeStats returns incomplete stats in case of partition evolution Core: BugFix: PartitionStatsUtil#computeStats returns incomplete stats in case of partition evolution Jan 30, 2025
@deniskuzZ
Copy link
Member Author

deniskuzZ commented Jan 31, 2025

@ajantha-bhat, @aokolnychyi, could you please take a look?

@deniskuzZ
Copy link
Member Author

ping @ajantha-bhat

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

Successfully merging this pull request may close these issues.

1 participant