[X] I searched in the issues and found nothing similar.
Motivation
When using the Paimon Schema Evolution function, the alertTable method of Hive will be called to add fields, and the statistical information of the Hive table will be updated by default. In fact, Paimon will use its own statistical information instead of Hive's, so it can be turned off in scenarios where there are many fields in the Paimon table and they are updated frequently to avoid a sharp increase in HMS memory.
Solution
When alterTable is triggered, the method called is changed to alter_table_with_environmentContext instead of alter_table. In this way, you can control whether to update table stats by setting the DO_NOT_UPDATE_STATS parameter in the EnvironmentContext object
Search before asking
Motivation
When using the Paimon Schema Evolution function, the alertTable method of Hive will be called to add fields, and the statistical information of the Hive table will be updated by default. In fact, Paimon will use its own statistical information instead of Hive's, so it can be turned off in scenarios where there are many fields in the Paimon table and they are updated frequently to avoid a sharp increase in HMS memory.
Solution
When alterTable is triggered, the method called is changed to alter_table_with_environmentContext instead of alter_table. In this way, you can control whether to update table stats by setting the DO_NOT_UPDATE_STATS parameter in the EnvironmentContext object
Anything else?
No response
Are you willing to submit a PR?