Fokko opened a new pull request, #6872:
URL: https://github.com/apache/iceberg/pull/6872
We check for redundant partitions when creating a bound partition spec:
```java
PartitionSpec.builderFor(SCHEMA).year("ts").month("ts").build())
```
Raises:
```
IllegalArgumentException:
Cannot add redundant partition: 1000: ts_year: year(2) conflicts with
1001: ts_month: month(2)
```
However, if you `.bind()` a UnboundPartitionSpec to a PartitionSpec, using
`.bind()` this check isn't done, and this allows you to create partitions with
redundant partitions:

Ends up with:
```
s3://warehouse/wh/default/iceberg_table/data/ts_year=2019/ts_month=2019-06/ts_day=2019-06-13/00000-12-6a2ee5a1-201c-4ca9-a07c-379940c7f83e-00001.parquet
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]