You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by "difin (via GitHub)" <gi...@apache.org> on 2025/04/30 00:08:41 UTC
Re: [PR] HIVE-28935: Iceberg: fix partition hashing method to avoid collisions. [hive]
difin commented on PR #5792:
URL: https://github.com/apache/hive/pull/5792#issuecomment-2840498605
@okumin @deniskuzZ
This works except for one case and I’m not sure how we can do it.
The case where it doesn't work:
Let’s say you have a table with partition evolution and the partition specs are:
```
Spec_Id, Partition Schema
0, {field_a: String}
1,. {field_a: String, b: String}
```
And let’s say there are 2 partitions on disk:
```
{a=NULL}
{a=NULL, b=NULL}
```
When calculating partition hash, we pass Iceberg partition struct, which contain fields from all partition specs, so we send these inputs to computeHash methods for the 2 different partitions:
```
{a=NULL, b=NULL}
{a=NULL, b=NULL}
```
and the partition hash becomes the same for both partitions..
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org