Skip to content

[Feature] Supports specifying hive environment parameters when altering table #4507

Open
@GangYang-HX

Description

@GangYang-HX

Search before asking

  • 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.
image

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?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions