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: [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]
