You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "luoyuxia (Jira)" <ji...@apache.org> on 2022/08/10 09:04:00 UTC

[jira] [Created] (FLINK-28905) Fix HiveCatalog use wrong Flink type when get statistic for Hive timestamp partition column

luoyuxia created FLINK-28905:
--------------------------------

             Summary: 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


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)