forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opt: remove panic when in between filters are not constrained
Before this change, the optimizer assumed that if partition filters are constrained on an index then the in-between filters are also constrained, and would panic if it was unable to find a constraint. However, when an index is partitioned on multiple columns and the columns have different orders, the optimizer may be unable to generate a constraint for the in between filters of the partitions, even if the partition filters are constrained. This change removes the panic, since the assumption does not hold. As a consequence, the optimizer abondons the GenerateConstrainedScan rule, but doesn't crash. I did not include a release note since this appears to be a rare bug that we have not encountered in the wild. Fixes cockroachdb#80820 Release note: None
- Loading branch information
1 parent
a35b848
commit 235bb73
Showing
3 changed files
with
88 additions
and
5 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
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