You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/11/03 23:54:04 UTC
[GitHub] [iceberg] joao-parana commented on issue #6097: Partitioning based on the "identity" transform doesn't work in 1.0.0 Java API.
joao-parana commented on issue #6097:
URL: https://github.com/apache/iceberg/issues/6097#issuecomment-1302802386
The error has been fixed. It was not a bug but an error in my program. @rdblue explained to me how to fix it (https://apache-iceberg.slack.com/archives/C03LG1D563F/p1667408382726389?thread_ts=1667163877.313839&cid=C03LG1D563F).
See below what was missing:
```java
Boolean partitionSpecHaveHotelName = partitionSpec.fields().get(0).name().equals("hotel_name");
. . .
GenericRecord partitionTuple = GenericRecord.create(partitionSpec.partitionType());
partitionTuple.setField("hotel_name", "hotel_name_1000");
. . .
dataFile = DataFiles.builder(table.spec())
.withPartition(partitionTuple)
. . .
.build();
```
--
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: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org