Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

refactor: avoid returning metrics in non-analyze sql#1410

Merged
jiacai2050 merged 3 commits into
apache:devfrom
baojinri:refactor-dist-sql-analyze
Jan 3, 2024
Merged

refactor: avoid returning metrics in non-analyze sql#1410
jiacai2050 merged 3 commits into
apache:devfrom
baojinri:refactor-dist-sql-analyze

Conversation

@baojinri

Copy link
Copy Markdown
Contributor

Rationale

In #1260, we implemented distributed analyze, but for query that are not analyze, metrics will be returned, which will lead to a decrease in query performance. Therefore, we will fix it in this PR, and metrics will not be returned for normal queries.

Detailed Changes

  • Add is_analyze field to determine whether it is analyze

Test Plan

Existing tests

@baojinri baojinri force-pushed the refactor-dist-sql-analyze branch from 10e2ede to cec73a9 Compare December 28, 2023 14:30

@jiacai2050 jiacai2050 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 61b123a into apache:dev Jan 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants