-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
100763: opt: fix histogram filtering with infinite upper bound r=mgartner a=mgartner This commit fixes a bug that caused the filtering a histogram bucket with an infinite upper bound to produce a bucket with a `numRange` of `NaN`. This led to bad query plans because the `NaN` did not reduce the input expression's row count at all. Fixes #100582 Release note (bug fix): A bug has been fixed that caused suboptimal query plans when a table contained infinite values, like `'+Infinity'::DECIMAL`. This bug is present since versions v22.1, and likely earlier. It could also be triggered in rare cases when table statistics forecasts created a forecasted bucket with an infinite value. Co-authored-by: Marcus Gartner <[email protected]>
- Loading branch information
Showing
2 changed files
with
79 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters