Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](nereids) derive column stats for 'expr and A is not null' (#37235) #37498

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

englefly
Copy link
Contributor

@englefly englefly commented Jul 8, 2024

pick from #37235
the algorithm for computing stats for "expr1 and expr2" predicate is as following:

  1. compute output stats of expr1 based on input stats. the result stats is denoted by leftStats
  2. compute stats of expr2 based on leftStats after step1, leftStats should be normalized to avoid abnormal cases, such as ndv > rowCount or numNulls > rowCount

Issue Number: close #xxx

Proposed changes

Issue Number: close #xxx

…he#37235)

the algorithm for computing stats for "expr1 and expr2" predicate is as
following:
1. compute output stats of expr1 based on input stats. the result stats
is denoted by leftStats
2. compute stats of expr2 based on leftStats
after step1, leftStats should be normalized to avoid abnormal cases,
such as ndv > rowCount or numNulls > rowCount

Issue Number: close #xxx

<!--Describe your changes.-->
@doris-robot
Copy link

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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@englefly
Copy link
Contributor Author

englefly commented Jul 8, 2024

run buildall

1 similar comment
@englefly
Copy link
Contributor Author

englefly commented Jul 9, 2024

run buildall

@englefly
Copy link
Contributor Author

englefly commented Jul 9, 2024

run buildall

@englefly englefly merged commit 9b075bc into apache:branch-2.1 Jul 9, 2024
20 of 21 checks passed
@englefly englefly deleted the pick-37235 branch July 9, 2024 09:47
@yiguolei yiguolei mentioned this pull request Jul 19, 2024
1 task
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.

2 participants