[Java API] Rough edges when recreating a DataFile that is partitioned by month or hour #11900
Open
1 of 3 tasks
Labels
bug
Something isn't working
Apache Iceberg version
1.7.1 (latest release)
Query engine
None
Please describe the bug 🐞
Part of our workflow in Apache Beam's Iceberg connector requires recreating DataFiles, but this process isn't smooth when the file is partitioned by month or hour. See the following reproducible code:
The last bit fails with the following error:
I would expect that the result of
spec.partitionToPath(file.partition())
could be naturally used when recreating the DataFile, but the logic here doesn't seem to be robust enough.We've been able to use this work around, replicated below:
Work around
But I would expect the Iceberg API to take care of this by itself.
Willingness to contribute
The text was updated successfully, but these errors were encountered: