Skip to content

Conversation

@seawinde
Copy link
Contributor

pr: #58426
commitId: f6cae1d

…#58426)

### What problem does this PR solve?

Related PR: 
apache#36760
apache#57850

Problem Summary:

Fix stats unknown when calc sync mv plan statistics

For SQLs that are related to statistics, we should not collect or
compute statistics. Previously this was determined by the `isInternal`
flag, but `isInternal` is too broad: it covers not only
statistics-related SQL but also SQL used to generate materialized view
plans. Materialized view plan generation requires statistics, so we
introduce a new flag `isPlanWithUnKnownColumnStats` to indicate
connections that are used for statistics-only operations (treat column
statistics as unknown).
@seawinde seawinde requested a review from yiguolei as a code owner December 22, 2025 02:57
@Thearas
Copy link
Contributor

Thearas commented Dec 22, 2025

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@seawinde
Copy link
Contributor Author

run buildall

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 0.00% (0/7) 🎉
Increment coverage report
Complete coverage report

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Dec 23, 2025
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@yiguolei yiguolei merged commit c7f2019 into apache:branch-4.0 Dec 23, 2025
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants