vinson0526 opened a new pull request #2691: URL: https://github.com/apache/iceberg/pull/2691
When use v1 metadata, we cannot add a new partition that previously existed. Further more, exception will thrown when we update partition spec after dropped partition transform more than once on same column. I use iceberg master branch and spark 3.0.2. we can reproduce follow these step. ``` create table test(create_time timestamp) using iceberg; alter table test add partition field years(create_time); alter table test drop partition field years(create_time); alter table test add partition field months(create_time); alter table test drop partition field months(create_time); alter table test add partition field days(create_time); ``` and exception thrown ``` Multiple entries with same key: (1, void)=1001: create_time_month: void(1) and (1, void)=1000: create_time_year: void(1) ``` I try to fix it by this PR. -- 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. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
