Skip to content

Conversation

@seawinde
Copy link
Contributor

@seawinde seawinde commented Dec 10, 2025

picked from #58426

…#58426)

Related PR:

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 morrySnow as a code owner December 10, 2025 11:45
@hello-stephen
Copy link
Contributor

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

@seawinde seawinde changed the title [fix](mv) Fix stats unknown when calc sync mv plan statistics (#58426) branch-3.1:[fix](mv) Fix stats unknown when calc sync mv plan statistics (#58426) Dec 10, 2025
@seawinde
Copy link
Contributor Author

run buildall

@morrySnow morrySnow changed the title branch-3.1:[fix](mv) Fix stats unknown when calc sync mv plan statistics (#58426) branch-3.1: [fix](mv) Fix stats unknown when calc sync mv plan statistics #58426 Dec 15, 2025
@morrySnow morrySnow merged commit 13e27d9 into apache:branch-3.1 Dec 15, 2025
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants