flink icon indicating copy to clipboard operation
flink copied to clipboard

[FLINK-28905][hive] Fix HiveCatalog can't get statistic for Hive timestamp partition column

Open luoyuxia opened this issue 3 years ago • 3 comments

What is the purpose of the change

To fix the issue that HiveCatalog can't get statistic for Hive timestamp partition column

Brief change log

Change TIMESTAMP_WITH_LOCAL_TIME_ZONE to TIMESTAMP_WITHOUT_TIME_ZONE in HiveStatsUtil.java#getPartitionColumnStats

Verifying this change

Added test in HiveCatalogHiveMetadataTest#testBulkGetPartitionColumnStatisticsForTimestampType

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API, i.e., is any changed class annotated with @Public(Evolving): (yes / no)
  • The serializers: (yes / no / don't know)
  • The runtime per-record code paths (performance sensitive): (yes / no / don't know)
  • Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know)
  • The S3 file system connector: (yes / no / don't know)

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

luoyuxia avatar Aug 10 '22 09:08 luoyuxia

CI report:

  • 636696ca99cebfe41e8268429dba7d3edcdbf482 Azure: SUCCESS
Bot commands The @flinkbot bot supports the following commands:
  • @flinkbot run azure re-run the last Azure build

flinkbot avatar Aug 10 '22 09:08 flinkbot

@flinkbot run azure

luoyuxia avatar Aug 10 '22 11:08 luoyuxia

@flinkbot run azure

luoyuxia avatar Aug 11 '22 01:08 luoyuxia