lurnagao opened a new pull request, #7172:
URL: https://github.com/apache/iceberg/pull/7172

   When using date/timestamp/time as a partition field, it will throw 
IllegalStateException: Not not instance of...
   
   for example:
   `create table iceberg_test(id int, name string) partitioned by (dt date) 
stored by 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler';`
   
   then insert into :
   `insert into iceberg_test values(1, 'xxx', '2023-01-01');`
   
   The exception is as follows:
   `java.lang.IllegalStateException: Not an instance of java.lang.Integer: 
2023-01-01 at org.apache.iceberg.data.GenericRecord.get(GenericRecord.java:123) 
at org.apache.iceberg.Accessors$PositionAccessor.get(Accessors.java:71) at 
org.apache.iceberg.Accessors$PositionAccessor.get(Accessors.java:58) at 
org.apache.iceberg.PartitionKey.partition(PartitionKey.java:104)
   `
   


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

Reply via email to