[ 
https://issues.apache.org/jira/browse/HIVE-25062?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Vary reassigned HIVE-25062:
---------------------------------


> 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
>
> {{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)

Reply via email to