opt: support constrained in between filters with multiple partitioning columns #81456
Labels
C-enhancement
Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)
T-sql-queries
SQL Queries Team
Projects
Currently the optimizer may be unable to generate a constrained in between filter for a constrained scan if an index is partitioned by multiple columns that have different order, even if the partitions themselves are constrained.
For example the following query should be able to use a constrained scan, but the optimizer is currently unable to generate constrained spans for the in between filters:
See #80820 (comment) for more details.
Jira issue: CRDB-15172
The text was updated successfully, but these errors were encountered: