waterlx opened a new issue #483: Conversions#fromPartitionString() could not convert String of date-like type to Integer URL: https://github.com/apache/incubator-iceberg/issues/483 Suppose that I have a partition spec using day transform, like: ```scala val partitionSpec = PartitionSpec.builderFor(schema).hour("event_time").identity("level").build() // "event_time" is a TimestampType ``` Then I use DeleteFiles.builder to build a DeleteFile, like ```scala val fileToDelete1 = DataFiles.builder(partitionSpec) .withPartitionPath("event_time_day=2020-01-01-01/level=ERROR") ... ``` The request is rejected by ``` Exception in thread "main" java.lang.NumberFormatException: For input string: "2019-01-02-01" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.java:766) at org.apache.iceberg.types.Conversions.fromPartitionString(Conversions.java:50) at org.apache.iceberg.DataFiles.fillFromPath(DataFiles.java:83) at org.apache.iceberg.DataFiles.access$200(DataFiles.java:36) at org.apache.iceberg.DataFiles$Builder.withPartitionPath(DataFiles.java:292) ``` Integer.valueOf() could not handle that. See https://github.com/apache/incubator-iceberg/blob/433f169e9d0b10688d395abde64c4b6461d35ca9/api/src/main/java/org/apache/iceberg/types/Conversions.java#L50
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
