Commit 87a42d8
zhaixiangli
[opt](scan) Prune sequence mapping candidate keys
Add an optional two-phase scan for sequence-mapping UNIQUE MOR tables. Indexed positive value predicates collect and intersect candidate keys before the normal MOR merge and residual filter run over exact point keys.
Share one immutable point-key payload and schema across rowsets and segments, build monotonic point ranges linearly, and preserve the original FE key ranges as an additional constraint.
Bound candidate memory with an adaptive 32 MiB budget and memory reservation fallback. Expose profile counters and cover budget enforcement, shared schemas, exact range construction, cancellation, and composite-key prefix ranges.
Closes #668791 parent f1cfc38 commit 87a42d8
26 files changed
Lines changed: 1677 additions & 20 deletions
File tree
- be
- src
- exec
- operator
- scan
- storage
- iterator
- rowset
- segment
- tablet
- test
- exec/scan
- storage
- rowset
- segment
- fe/fe-core/src
- main/java/org/apache/doris/qe
- test/java/org/apache/doris/qe
- gensrc/thrift
- regression-test
- data/unique_seq_map_p0
- suites/unique_seq_map_p0
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
295 | 327 | | |
296 | 328 | | |
297 | 329 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
262 | 279 | | |
263 | 280 | | |
264 | 281 | | |
| |||
0 commit comments