Skip to content

Conversation

@swuferhong
Copy link
Contributor

What is the purpose of the change

If there are three columns named a, b, c with column stats already exists for non partition table, when user just analyze column a using Analyze table xxx FOR COLUMNS a, the existing column stats of b, c will be reset back to empty. This error also exists for the partition table.

Brief change log

  • Adding the operation of merging column statistics in AnalyzeTableUtil.
  • Adding tests to cover this condition.

Verifying this change

  • IT test is added in AnalyzeTableITCase to cover this condition.

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

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

Documentation

  • Does this pull request introduce a new feature? no
  • If yes, how is the feature documented? no docs.

…d incorrectly when analyze table for partial columns
@flinkbot
Copy link
Collaborator

flinkbot commented Aug 24, 2022

CI report:

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

Copy link
Contributor

@godfreyhe godfreyhe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, except one minor comment

@godfreyhe godfreyhe closed this in fe39264 Aug 25, 2022
huangxiaofeng10047 pushed a commit to huangxiaofeng10047/flink that referenced this pull request Nov 3, 2022
…d incorrectly when analyze table for partial columns

This closes apache#20672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants