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

luoyuxia updated FLINK-28905:
-----------------------------
    Description: 
Hive's timestamp type will be mapped to Flink's `TIMESTAMP_WITHOUT_TIME_ZONE`, 
but

in method `HiveStatsUtil#getPartitionColumnStats`, the 
`TIMESTAMP_WITH_LOCAL_TIME_ZONE` is mistaken as `TIMESTAMP_WITHOUT_TIME_ZONE`,  
which will cause fail to get partition column's statistic when the partition 
column is 

So, we should change `TIMESTAMP_WITH_LOCAL_TIME_ZONE` to 
`TIMESTAMP_WITHOUT_TIME_ZONE`

  was:
Hive's timestamp type will be mapped to Flink's `TIMESTAMP_WITHOUT_TIME_ZONE`, 
but

in method `HiveStatsUtil#getPartitionColumnStats`, the `

TIMESTAMP_WITH_LOCAL_TIME_ZONE` is mistaken as `TIMESTAMP_WITHOUT_TIME_ZONE`,  
which will cause fail to get partition column's statistic when the partition 
column is 

So, we should change `TIMESTAMP_WITH_LOCAL_TIME_ZONE` to 
`TIMESTAMP_WITHOUT_TIME_ZONE`


> Fix HiveCatalog use wrong Flink type when get statistic for Hive timestamp 
> partition column
> -------------------------------------------------------------------------------------------
>
>                 Key: FLINK-28905
>                 URL: https://issues.apache.org/jira/browse/FLINK-28905
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hive
>            Reporter: luoyuxia
>            Priority: Major
>
> Hive's timestamp type will be mapped to Flink's 
> `TIMESTAMP_WITHOUT_TIME_ZONE`, but
> in method `HiveStatsUtil#getPartitionColumnStats`, the 
> `TIMESTAMP_WITH_LOCAL_TIME_ZONE` is mistaken as 
> `TIMESTAMP_WITHOUT_TIME_ZONE`,  which will cause fail to get partition 
> column's statistic when the partition column is 
> So, we should change `TIMESTAMP_WITH_LOCAL_TIME_ZONE` to 
> `TIMESTAMP_WITHOUT_TIME_ZONE`



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to