Commit 9f3fd47
committed
opt: use optimizer_span_limit in split-scan rules
Use the optimizer_span_limit session setting as an additional upper
bound in splitScanIntoUnionScansOrSelects. When set, the span limit
caps the hard maximum scan count, preventing the split-scan rules
(SplitLimitedScanIntoUnionScans, SplitLimitedSelectIntoUnionSelects,
SplitGroupByScanIntoUnionScans, etc.) from generating more union
branches than the limit allows.
Release note: None1 parent 6f8952d commit 9f3fd47
3 files changed
Lines changed: 866 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
661 | 664 | | |
662 | 665 | | |
663 | 666 | | |
| 667 | + | |
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
| |||
0 commit comments