Open GangYang-HX opened 2 days ago
Please change your title 【Hive】to [Hive] and make your code style with format, you can execute 'mvn spotless:apply' for it
Please change your title 【Hive】to [Hive] and make your code style with format, you can execute 'mvn spotless:apply' for it
Thank you. All the tests can be passed locally, but there are still errors now. It seems that the errors have nothing to do with my changes.
Purpose
When metastore=hive is set, if the Paimon table has many fields (1600+), the MetaStoreUtils.updateTableStatsSlow() method will be called by default to update the table statistics, which will cause a sharp increase in HMS memory usage. In fact, Paimon has its own statistics and does not rely on Hive's statistics.
So, an option is provided to control whether to update Hive table statistics to avoid excessive HMS memory usage.
Linked issue: Issue-4507
API and Format
org.apache.paimon.hive.HiveCatalog#alterTableToHms