Skip to content

perf(exec): consume selected scan batches through expressions and operators - #32492

Merged
mergify[bot] merged 83 commits into
matrixorigin:mainfrom
aunjgr:feat/dictionary-vector-consumers
Nov 15, 2026
Merged

mergify[bot] merged 83 commits into
matrixorigin:mainfrom
aunjgr:feat/dictionary-vector-consumers

Conversation

@aunjgr

@aunjgr aunjgr commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Closes #32385
Closes #32386

What this PR does / why we need it:

Retain immutable selected scan/filter batches across supported consumer edges, so expressions, key encoders, aggregate updates and payload gathers can read logical rows without first constructing a complete flat batch. Preserve row order, repeated rows, NULL/grouping metadata and physical allocation ownership.

Add execution-owned scratch that lazily materializes a required contiguous input column once per batch/selection domain and shares it across sibling expressions. Keep masked evaluation local to its active rows and retain existing native/SIMD decimal kernels. Extend audited comparison, membership, BETWEEN, string and NULL-predicate paths to logical reads while preserving existing flat/constant fast paths.

Evaluate each predicate against only its referenced selected columns, reusing frozen backing within that batch and publishing the final output once. Resolve typed primitive reads once outside the selected row loop while retaining wrapper conversions when necessary.

Retain privately validated cached columns as read-only flat sources with full physical pin accounting, avoiding an intermediate identity dictionary. Publish one surviving-row selection, reuse private snapshot headers and row-map scratch after final borrower release, and encode eligible selected fixed-width hash keys through typed loops. Keep reusable owned buffers and the existing copy path when borrowing is unavailable.

Preserve sorted-range endpoint routing before per-row enumeration and use typed fixed-width selected bulk copies while retaining the original append preflight and metadata propagation.

Keep private normalization frames alongside pooled operators in the same allocation, outside repeated operator resets. Preserve zero-state cleanup, borrowed-input retirement and allocation-account ownership.

Support selected ingress in ordinary hash/range shuffle using the existing partition functions, accounted flat destination buffers and pending-write/cancellation protocol. Preserve whole-bucket forwarding through the existing lifetime contract; flat-only boundaries use one reusable owned normalization bank. Keep original reader workspace vectors across selected publication and return their original MPool backing only after the last immutable borrower releases it. Reuse retired private predicate/publication headers without a global pool. Retain explicit flat boundaries for unsupported modes and existing owned fallbacks when backing cannot be retained. This does not introduce dictionary partition/join output views or change SQL types, cache policy or wire formats.

Validation

  • Affected owning-package normal tests, focused adaptive race checks and owning-package race checks passed.
  • Post-merge consumer and dependent-source memory-admission controls passed.
  • Full repository static checks and the required pre-push gate passed on published head eed0029c66, merged with authoritative main 0d0413e804.
  • Post-merge operator/spool/admission checks and the merged spool race check passed.
  • All 22 TPC-H queries completed under SF10 memory/disk and SF100 disk, with one excluded cold suite and five warm suites per process. All configurations passed the spill/swap/OOM/compiler/external-CPU guards.
  • Fresh CI is running on the published head. The benchmark comment identifies the measured heads separately from the final main merge.

Performance evidence

The final comparison and targeted Q7 allocation attribution are recorded in the final results comment. SF10 totals improve; SF100 wall-time and per-query allocation observations include the documented run-context variability. The update preserves all original positive observations and the fixed Q6 metadata overhead. It does not claim universal zero regression. The requester accepted the disclosed fixed Q6 metadata cost and remaining Q7 batching/context uncertainty for review. This does not establish universal zero regression or relax correctness, ownership or memory-limit checks.

Design

Versioned design and approved scope revisions.

This comment has been minimized.

Use already-owned capacity for plain 4-byte and 8-byte selected appends while preserving alias, validity and provenance handling. Reject constant, nullable, metadata-bearing and unallocated destinations before the specialized checks. Dispatch preflighted bulk appends directly to their flat or dictionary implementation without changing the ordinary public path.
Traverse at most two ascending bucket ranges per input and save a visit cursor for blocked retries. Preserve explicit whole-bucket destinations and existing ready-credit, ownership and copying contracts. Add deterministic tests for resumed writes before and after wrap and closed consumers.
Return immediately only when all frame owners and observation counters are empty. Preserve existing cleanup for initialized scratch, partial predicate discovery and account or width changes. Avoid repeatedly resetting unused dictionary metadata on flat query paths.

aunjgr commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Final comparison and Q7 allocation attribution

Normal comparison: main d1893e5ae7, candidate 866816d85f. These are the measured source heads; subsequent delivery merges are not relabeled as measured observations. The candidate includes pooled-frame placement 7de861e61f.

Protocol: local 32 logical CPUs, 16 GiB CN shared cache, 48 GiB application/aggregate/join budgets, parent 52 GiB, GOGC=100 and swap disabled. One process per arm/configuration, one excluded cold full22 followed by five warm full22. Execute and drain SQL; no benchmark-time schema/data/result verification. No kernel/page/cache-policy changes. All six normal and six accounting configurations completed under the existing interference/spill/swap/OOM guards.

Configuration Main wall sum Candidate wall sum Change Raw instructions Allocated-byte proxy Counted copy/store traffic
SF10 memory 2.9833s 2.9373s -1.54% -6.38% -13.81% -17.37%
SF10 disk 3.0026s 2.9259s -2.55% -5.91% -13.92% -17.37%
SF100 disk 67.9997s 70.3501s +3.46% -3.96% -17.69% -15.19%

Positive observations remain visible. SF100 physical reads were 798.950 vs 849.394 GiB; host huge-page backing/fallback diagnostics also differ strongly. These support environmental attribution but do not prove every slower query is unrelated to the PR. Warm suites in one process do not provide independent-process confidence bounds.

Q6 SF10 has exactly 70,893 additional counted bytes: 536 explicit-copy bytes, 69,813 indexed-store bytes and 544 newly measured frame-pointer bytes. This is about 0.0146% of its counted traffic and remains real metadata work. The original full-suite Q7 SF100 Go-plus-offheap allocation observation is +6.24%; it is preserved below.

Focused Q7 investigation

Same pinned sources; one SF100 disk process per arm, one excluded cold full-suite initialization followed by five Q7-only native callsite recordings. This diagnostic has a different query context and additional probe overhead; its timing/Go allocation totals do not replace normal acceptance measurements. All ten traced native byte/request totals exactly reconcile with MPool counters.

  • Native requested-byte medians: main 2,407,651,769 vs candidate 2,280,360,229 (-5.29%) in this diagnostic.
  • Largest varying family: hash-build batch data, owner1/site26. Stacks reach HashmapBuilder.copyBuildBatch → Batches.CopyIntoBatchesWithAllocation → append/clone/vector growth. The buffering helper and hash-build wrapper are byte-identical to main.
  • All 12 matched-input controls across int32/int64/decimal128/inline CHAR give identical main/candidate requested bytes, requests, explicit copies and indexed stores.
  • For the same 8,192 int64 rows, changing partial-batch arrival order alone gives 114,688 vs 101,376 requested bytes (+13.13%) in both versions; a single full batch needs 65,536 bytes.

This establishes batching-sensitive allocation traffic and finds no increased allocation cost at the matched-input buffering boundary. It does not reconstruct the original full-suite +6.24% result or prove that producer scheduling can never bias batching. No additional production optimization is included from that aggregate observation alone. All temporary diagnostic databases/ramdisks and engines have been cleaned up; exact profiles, source pins and binaries are retained.

The requester instructed “wrap up the PR” after reviewing these findings, accepting the fixed Q6 overhead and remaining Q7 batching/context uncertainty for review. The original positive observations remain visible; this is not an unqualified zero-regression claim. Published head eed0029c66 includes the latest authoritative-main merge. The post-merge owning/admission tests, merged-spool race check and complete pre-push static gate passed. Fresh CI for that published head is now running. Subsequent main merges are identified separately from the measured source heads.

All 22 normal query results, including CPU and retired instructions

Measured on one local process per arm/configuration; first full suite excluded, five full warm suites profiled. Wall times are per-query medians and Total is their sum. Counters are user-space retired instructions; CPU/I/O/memory use the complete application cgroup. No benchmark-time data/result verification.

SF10 memory

Query Main wall s Candidate wall s Change Main CPU s Candidate CPU s Main instructions G Candidate instructions G
Q1 0.2055 0.1983 -3.5% 5.967 5.735 69.901 66.776
Q2 0.0307 0.0278 -9.3% 0.467 0.367 2.773 2.572
Q3 0.0942 0.0951 +0.9% 2.198 2.178 9.765 8.958
Q4 0.0644 0.0568 -11.8% 1.566 1.410 11.660 10.661
Q5 0.0749 0.0771 +2.9% 1.620 1.566 9.855 8.918
Q6 0.0293 0.0297 +1.2% 0.676 0.652 3.921 3.899
Q7 0.0793 0.0742 -6.5% 2.001 1.809 9.651 7.712
Q8 0.2242 0.2396 +6.8% 2.144 2.095 14.333 13.156
Q9 0.2205 0.2248 +2.0% 4.990 5.022 36.356 36.653
Q10 0.1892 0.1789 -5.5% 4.515 4.311 27.115 24.872
Q11 0.0366 0.0279 -23.6% 0.564 0.425 4.330 2.904
Q12 0.0834 0.0729 -12.6% 2.202 1.837 16.080 12.499
Q13 0.2309 0.2199 -4.7% 6.338 5.869 45.626 44.511
Q14 0.0835 0.0783 -6.2% 1.250 1.023 9.302 7.862
Q15 0.1507 0.1516 +0.6% 1.832 1.536 13.008 11.042
Q16 0.1275 0.1251 -1.9% 1.363 1.425 8.114 7.852
Q17 0.0675 0.0682 +1.0% 1.705 1.610 14.255 14.111
Q18 0.3445 0.3435 -0.3% 6.652 6.568 22.811 22.818
Q19 0.1133 0.1043 -7.9% 2.758 2.610 25.200 21.753
Q20 0.1768 0.1894 +7.1% 3.954 3.784 18.763 16.827
Q21 0.3070 0.3115 +1.5% 7.961 8.175 70.047 70.150
Q22 0.0492 0.0422 -14.2% 0.999 0.766 9.361 6.892
Total 2.9833 2.9373 -1.5% 63.721 60.774 452.228 423.398

Slower medians requiring investigation: Q3, Q5, Q6, Q8, Q9, Q15, Q17, Q20, Q21.
main d1893e5ae7: five suite wall totals 3.018, 2.971, 3.020, 2.971, 2.971 s; peak application 21.51 GiB; warm physical reads 0.000 GiB; external CPU 0.00 cores, interrupts 0.39 cores; no spill/swap/OOM.
combined 866816d85f: five suite wall totals 2.992, 2.963, 2.955, 2.923, 2.933 s; peak application 21.69 GiB; warm physical reads 0.000 GiB; external CPU 0.00 cores, interrupts 0.37 cores; no spill/swap/OOM.

SF10 disk

Query Main wall s Candidate wall s Change Main CPU s Candidate CPU s Main instructions G Candidate instructions G
Q1 0.2058 0.1993 -3.1% 5.969 5.691 69.907 66.773
Q2 0.0311 0.0277 -10.8% 0.450 0.358 2.765 2.569
Q3 0.0929 0.0939 +1.0% 2.175 2.166 9.760 8.967
Q4 0.0644 0.0584 -9.3% 1.603 1.432 11.659 10.664
Q5 0.0742 0.0748 +0.8% 1.616 1.553 9.859 8.926
Q6 0.0293 0.0303 +3.4% 0.656 0.678 3.920 3.899
Q7 0.0803 0.0744 -7.3% 1.879 1.789 9.163 7.715
Q8 0.2276 0.2320 +1.9% 2.109 2.071 14.036 13.025
Q9 0.2231 0.2279 +2.1% 4.990 5.092 36.365 37.450
Q10 0.1916 0.1763 -8.0% 4.594 4.208 27.118 24.859
Q11 0.0364 0.0294 -19.2% 0.562 0.423 4.329 2.904
Q12 0.0835 0.0733 -12.3% 2.199 1.837 16.091 12.499
Q13 0.2327 0.2181 -6.3% 6.437 5.934 45.837 44.337
Q14 0.0753 0.0780 +3.6% 1.208 0.992 9.294 7.862
Q15 0.1557 0.1495 -4.0% 1.815 1.513 12.997 11.043
Q16 0.1319 0.1225 -7.2% 1.447 1.382 8.104 7.852
Q17 0.0696 0.0713 +2.5% 1.695 1.604 14.255 14.117
Q18 0.3473 0.3459 -0.4% 6.742 6.471 21.843 22.766
Q19 0.1145 0.1106 -3.4% 2.839 2.600 25.203 21.748
Q20 0.1812 0.1864 +2.8% 4.124 3.822 18.773 16.811
Q21 0.3063 0.3047 -0.5% 7.901 8.109 69.936 70.248
Q22 0.0478 0.0412 -13.8% 1.016 0.763 9.360 6.892
Total 3.0026 2.9259 -2.6% 64.026 60.487 450.574 423.923

Slower medians requiring investigation: Q3, Q5, Q6, Q8, Q9, Q14, Q17, Q20.
main d1893e5ae7: five suite wall totals 3.015, 3.030, 3.011, 2.996, 3.028 s; peak application 17.20 GiB; warm physical reads 0.008 GiB; external CPU 0.00 cores, interrupts 0.39 cores; no spill/swap/OOM.
combined 866816d85f: five suite wall totals 3.006, 2.946, 2.927, 2.939, 2.934 s; peak application 16.02 GiB; warm physical reads 0.000 GiB; external CPU 0.03 cores, interrupts 0.38 cores; no spill/swap/OOM.

SF100 disk

Query Main wall s Candidate wall s Change Main CPU s Candidate CPU s Main instructions G Candidate instructions G
Q1 4.9430 5.1188 +3.6% 98.850 96.424 1068.258 1033.472
Q2 0.4480 0.4130 -7.8% 5.914 5.237 38.003 35.985
Q3 2.6497 2.8426 +7.3% 43.371 45.828 208.281 202.206
Q4 2.2197 2.5281 +13.9% 37.111 37.726 230.864 220.347
Q5 2.5647 2.6273 +2.4% 41.961 42.856 191.943 184.496
Q6 1.1367 1.4117 +24.2% 16.996 17.098 115.979 115.531
Q7 2.8415 3.0801 +8.4% 39.567 42.187 185.040 176.701
Q8 2.5532 2.7103 +6.2% 39.193 40.320 212.464 203.133
Q9 5.2772 5.6078 +6.3% 96.701 95.276 533.404 525.013
Q10 4.2049 4.3421 +3.3% 76.103 75.654 500.777 478.575
Q11 0.5378 0.5047 -6.2% 6.567 5.589 47.644 34.331
Q12 3.4424 3.5663 +3.6% 51.559 49.625 403.632 369.192
Q13 3.1863 3.1263 -1.9% 84.329 81.304 507.578 497.835
Q14 2.2347 2.2915 +2.5% 25.319 24.872 148.928 134.477
Q15 3.7305 3.8622 +3.5% 46.991 44.699 248.870 228.636
Q16 0.6953 0.7687 +10.6% 12.113 13.107 66.495 61.160
Q17 2.9064 2.9528 +1.6% 36.044 35.217 227.870 224.494
Q18 5.7093 5.7007 -0.2% 94.342 96.144 372.518 373.206
Q19 4.5865 4.3999 -4.1% 68.795 65.294 608.181 573.142
Q20 3.6882 3.8334 +3.9% 57.312 59.375 230.250 222.678
Q21 7.8979 8.1939 +3.7% 124.058 130.727 915.607 909.151
Q22 0.5459 0.4680 -14.3% 12.294 10.344 97.821 73.161
Total 67.9997 70.3501 +3.5% 1115.490 1114.903 7160.408 6876.924

Slower medians requiring investigation: Q1, Q3, Q4, Q5, Q6, Q7, Q8, Q9, Q10, Q12, Q14, Q15, Q16, Q17, Q20, Q21.
main d1893e5ae7: five suite wall totals 68.543, 65.999, 67.719, 68.204, 67.809 s; peak application 37.83 GiB; warm physical reads 798.950 GiB; external CPU 0.00 cores, interrupts 0.68 cores; no spill/swap/OOM.
combined 866816d85f: five suite wall totals 71.371, 69.877, 70.091, 69.921, 71.003 s; peak application 34.99 GiB; warm physical reads 849.394 GiB; external CPU 0.00 cores, interrupts 0.70 cores; no spill/swap/OOM.

All 22 allocation/copy observations, with every positive retained

Per-query allocation/copy observations against main

One excluded cold full22 and five warm full22 per instrumented process.
Instrumented timings are not latency acceptance. Go/MPool-on-heap domains overlap.
Go+off-heap is an allocation-traffic proxy, not RSS or physical allocator capacity.
Copy/store probes cover declared Go sites; native/runtime implicit traffic is incomplete.
Copy/store totals include the separate 8-byte owner-frame pointer-store correction; raw indexed-store counters remain unchanged.
All positive observations remain visible.

sf10-memory

Query Go bytes Go objects MPool bytes MPool requests Go+off-heap bytes Go+off-heap requests Counted copy/store bytes
Q1 -11.16% -18.82% -0.02% -6.31% -2.86% -18.71% -13.26%
Q2 +9.13% -4.09% -57.55% -4.80% -51.44% -4.07% -12.25%
Q3 -20.45% -7.71% +0.39% +2.25% -2.56% -7.47% -17.92%
Q4 -14.10% -14.92% -2.42% +0.95% -4.84% -14.74% -18.49%
Q5 -7.19% -7.75% -0.50% -2.37% -0.90% -7.49% -1.56%
Q6 -1.02% -16.22% -0.01% -6.14% -0.66% -16.09% +0.01%
Q7 -2.87% -14.97% -0.62% +2.46% +0.15% -14.56% -2.47%
Q8 -1.31% -1.07% -20.68% -3.90% -10.11% -1.07% -3.40%
Q9 -6.78% -1.86% -8.86% -1.86% -8.49% -1.86% -7.24%
Q10 -13.97% -7.90% -0.22% -0.37% -0.85% -7.65% -26.60%
Q11 +7.95% -1.97% -33.65% -27.80% -28.69% -2.35% -5.71%
Q12 -21.81% -19.86% +3.98% +2.74% -1.32% -19.51% -52.90%
Q13 -1.94% -0.12% -67.75% -23.86% -44.53% -0.15% -33.92%
Q14 -5.88% -2.30% -0.54% -0.71% -1.40% -2.28% -3.18%
Q15 +1.05% -8.42% -11.53% -15.95% -9.19% -8.68% -3.72%
Q16 +6.31% +2.66% -6.21% -1.20% -5.53% +2.65% -6.13%
Q17 -4.34% -10.60% -35.51% -3.89% -20.62% -10.53% -8.24%
Q18 -4.55% -5.27% +0.10% +0.37% -0.07% -5.09% -1.47%
Q19 -7.94% -11.67% -41.08% +5.43% -23.32% -11.36% -66.80%
Q20 -5.46% -1.91% -14.76% -8.61% -13.83% -1.94% -10.13%
Q21 -13.86% -11.22% -0.42% +0.05% -3.38% -11.04% -9.68%
Q22 -9.61% -4.42% -14.46% -23.00% -14.05% -6.11% -10.17%
Total: sum of query medians -4.87% -2.59% -15.90% -6.13% -13.81% -2.60% -17.37%

sf10-disk

Query Go bytes Go objects MPool bytes MPool requests Go+off-heap bytes Go+off-heap requests Counted copy/store bytes
Q1 -14.36% -18.43% +0.00% +0.00% -3.75% -18.31% -13.26%
Q2 -1.87% -4.18% -57.80% -5.13% -52.41% -4.20% -12.30%
Q3 -22.29% -8.80% +3.44% +5.62% +1.42% -8.50% -17.84%
Q4 -6.72% -13.89% -2.61% +1.60% -3.01% -13.70% -18.50%
Q5 -7.02% -8.07% -1.17% -3.09% -1.76% -7.90% -1.56%
Q6 -8.00% -17.37% -0.01% -6.14% -5.40% -17.25% +0.01%
Q7 -4.39% -16.82% -0.47% -0.59% -1.30% -16.32% -2.47%
Q8 -2.30% -1.74% -20.48% -2.98% -10.97% -1.74% -3.39%
Q9 -5.12% -1.60% -8.44% -1.60% -8.13% -1.61% -7.22%
Q10 -12.69% -7.21% -0.29% -0.38% -0.90% -7.04% -26.61%
Q11 -6.75% -1.67% -33.66% -28.02% -30.15% -2.05% -5.71%
Q12 -19.95% -17.62% +4.19% +2.81% -0.55% -17.30% -52.91%
Q13 -1.54% -0.09% -67.86% -25.50% -44.79% -0.11% -33.96%
Q14 -7.76% -2.95% -0.39% -0.80% -1.23% -2.92% -3.21%
Q15 -0.41% -7.89% -10.42% -15.46% -8.90% -8.16% -3.51%
Q16 -2.37% -2.59% -6.99% -1.87% -7.07% -2.63% -6.38%
Q17 -1.17% -10.25% -35.50% -4.66% -19.08% -10.18% -8.24%
Q18 -3.56% -8.62% +0.12% +0.10% -0.00% -8.37% -1.47%
Q19 -12.41% -15.96% -41.02% +1.00% -25.63% -15.66% -66.80%
Q20 -7.32% -1.75% -14.20% -9.97% -13.60% -1.76% -10.06%
Q21 -13.61% -13.00% -0.46% +1.48% -2.90% -12.80% -9.67%
Q22 -11.89% -6.44% -14.46% -22.83% -14.44% -8.03% -10.17%
Total: sum of query medians -5.34% -2.86% -15.77% -6.34% -13.92% -2.88% -17.37%

sf100-disk

Query Go bytes Go objects MPool bytes MPool requests Go+off-heap bytes Go+off-heap requests Counted copy/store bytes
Q1 -7.86% -6.19% -0.24% -2.33% -6.77% -6.18% -13.27%
Q2 -5.36% -5.40% -71.08% -32.77% -64.01% -5.76% -12.45%
Q3 -1.04% -4.24% +1.05% +2.21% +0.19% -4.23% -12.28%
Q4 -3.31% -7.36% -0.85% -11.87% -2.05% -7.36% -18.09%
Q5 -3.42% -4.44% +0.47% -4.91% -0.45% -4.44% -0.40%
Q6 -0.68% -5.39% +0.08% +76.77% -0.99% -5.38% +0.01%
Q7 -3.00% -7.31% +9.96% +6.90% +6.24% -7.25% -1.46%
Q8 -0.63% -3.09% -30.57% -0.70% -17.55% -3.09% -3.24%
Q9 -2.08% -2.18% -16.65% -3.40% -13.50% -2.18% -2.24%
Q10 -6.38% -4.91% -0.32% +0.22% -1.02% -4.89% -27.57%
Q11 -3.76% -2.10% -13.24% -28.58% -10.03% -2.15% -0.64%
Q12 -8.26% -8.57% +0.83% -9.66% -4.85% -8.56% -53.94%
Q13 -0.63% -0.14% -77.07% -31.11% -48.04% -0.17% -34.01%
Q14 -0.53% -2.38% -0.07% -1.91% -0.48% -2.38% -0.43%
Q15 -1.74% -4.96% -11.17% -10.55% -6.92% -4.98% -2.38%
Q16 -3.83% -2.25% -17.60% -13.64% -16.74% -2.42% -9.83%
Q17 -1.75% -4.75% -17.56% -12.65% -3.79% -4.75% -2.64%
Q18 -1.16% -3.85% -0.01% -0.24% -0.12% -3.82% -0.16%
Q19 -9.49% -9.32% -20.90% -14.22% -10.62% -9.32% -66.82%
Q20 -1.70% -1.54% -19.43% -6.37% -15.87% -1.55% -4.77%
Q21 -2.55% -5.80% -0.71% -0.23% -1.32% -5.78% -7.97%
Q22 -4.43% -2.83% -1.48% -5.31% -1.96% -3.00% -9.64%
Total: sum of query medians -2.46% -2.66% -23.95% -9.19% -17.69% -2.68% -15.19%

No automatic acceptance decision; timing, allocation and copy gates require review.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Queue requested — the merge queue status continues in this comment ↓.

aunjgr commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

Published fix e0b8c53071; newest main merged in 0a9739b99f.

Fixed the changed-code coverage failure on eed0029c66 (74.78%, required >75%).

  • Removed the unused Batch.TryDictionarySelection wrapper introduced in this PR. A repository-wide search found no production, test or documented caller; reader/filter producers already use the vector-level selection APIs.
  • Added a deterministic range-routing regression covering repeated/reordered logical rows, NULLs, signed negative keys and unsigned keys above the high bit, for both min/max ranges and explicit cuts. The uniform case also asserts that no selectors are constructed.
  • Replayed the exact CI parser and ignore rules from matrixorigin/CI@5fc75d89, using the original merged CI profile plus the new focused test profile: 2227/2955 = 75.36%, PASS. Threshold and exclusions are unchanged. This is local replay evidence; fresh CI remains authoritative.

Owning batch/shuffle tests, merged CSV-parser tests, incremental static checks and the final complete pre-push gate passed. Latest main is merged. This correction changes no active production path, so the previously reported benchmark observations and their measured heads remain unchanged.

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into main as 49d552e at 19:34 UTC

1 h 10 min in the queue, 1 h 9 min of it CI.

So far

  • ✅ Entered the queue Sun 15 Nov, 18:24 · rule main · triggered by @aunjgr with the merge queue checkbox
  • ✅ Passed · in place
  • ✅ Merged 19:34 · 49d552e · squash
3 merge conditions met
  • #review-threads-unresolved = 0 · required by GitHub branch protection
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-success = CI Required
    • check-neutral = CI Required
    • check-skipped = CI Required

Times in UTC · dashboard · how the merge queue works

@XuPeng-SH

XuPeng-SH commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 0a9739b99fa83fd6b48ab03adbefde90fd16574b

Review completed. Read the assessment.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mo-bot review · mo-bot-local · review

Commit: 0a9739b99fa83fd6b48ab03adbefde90fd16574b

Assessment: approve

The change coherently extends existing leases, allocation accounts, VM boundaries and shuffle buffers with bounded per-lane reuse and owned flat fallbacks. No actionable defects remain; the documented Q6 overhead and Q7 uncertainty are accepted design tradeoffs.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Reviewed all 139 changed files, all 13 discussion entries and both linked issues; saved change-map.json and discussion-assessment.json.

  • Reused frozen-head CI successes: UT, SCA, coverage, and PROXY/PESSIMISTIC multi-CN BVT.

  • Private /tmp and loopback preflight passed. Fresh Go1.27.1 bufferlease race tests passed using test-exec; receipt checks/1794766293798597259-2.json.

  • Source audit passed: clean checkout, diff checks, formatting of 135 Go files, complete discussion coverage, and changed production files identical to measured candidate 866816d; receipt checks/1794766870039411044-2.json.

  • validation-evidence.json correlates all local checks with receipts and retained stdout/stderr.

Limitations:

  • Performance observations reuse supplied source-pinned reports; benchmarks and raw profiles were not independently replayed.

  • Broad functional and multi-CN validation relies on supplied CI; local execution covered the bufferlease race package.

aunjgr commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

Verified follow-up fixed by this merged consumer migration: #32586.

The issue's original flat/dictionary GROUP BY reproducer now passes baseline, forced spill/retry and secondary-failure cleanup; selected/repeated/NULL controls also pass on main-identical grouping/hash/vector code. Exact source pins, cases and results. This comment records the actual fixing PR relationship for issue closure; it adds no new performance claim.

This branch was previously deployed

1 inactive deployment
ci — c0af0428 Deployed Nov 15, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Subtask]: Enable dictionary scan, filter and projection outputs [Subtask]: Migrate expression and operator consumers to dictionary read views

3 participants