[ https://issues.apache.org/jira/browse/HIVE-25062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Vary resolved HIVE-25062. ------------------------------- Fix Version/s: 4.0.0 Resolution: Fixed Pushed to master. Thanks for the review [~mbod] and [~lpinter]! > Iceberg: Fix date partition transform insert issue > -------------------------------------------------- > > Key: HIVE-25062 > URL: https://issues.apache.org/jira/browse/HIVE-25062 > Project: Hive > Issue Type: Bug > Reporter: Peter Vary > Assignee: Peter Vary > Priority: Major > Labels: pull-request-available > Fix For: 4.0.0 > > Time Spent: 2h 10m > Remaining Estimate: 0h > > {{Repro steps:}} > {code:java} > CREATE EXTERNAL TABLE iceberg_hive_part (id int, part_field date)STORED BY > 'org.apache.iceberg.mr.hive.HiveIcebergStorageHandler' > TBLPROPERTIES ( > 'iceberg.mr.table.partition.spec'='{"spec-id":0,"fields":[{"name":"part_year","transform":"year","source-id":1,"field-id":1001}]}' > ,'write.format.default'='PARQUET'){code} > {code:java} > INSERT INTO iceberg_hive_part values(1, cast('2021-04-20' as date)) > {code} > throws: > {code:java} > (Not an instance of java.lang.Integer: 2021-04-20){code} > Add unit tests covering partition transform reads/writes. -- This message was sent by Atlassian Jira (v8.3.4#803005)