Repository navigation
Fix wrong results for tables sorted by a monotonically decreasing function - #106136
Conversation
|
Workflow [PR], commit [3b17b7a] Summary: ✅
AI ReviewSummaryThis PR fixes primary-key pruning for predicates on a source column when the Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered by tests: 71/73 (97.26%) | Lost baseline coverage (was covered on master, now uncovered in this PR): 1 line(s) · Uncovered code |
|
📊 Cloud Performance Report 🔴 AI verdict: 1 regressed query(s). K_source=5 K_base=30 flagged=1/65 clickbench🟢 No significant changes tpch_adapted_1_official🔴 1 regressed Flagged queries (1 of 22)
q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. Debug info
|
0668b92
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix incorrect results for queries against tables whose
ORDER BYcontains a monotonically decreasing function such as(c0 / -42)orintDiv(c0, -42). Predicates on the underlying column (for example,c0 < 0) could wrongly prune granules that contained matching rows, producing missing results. Closes #106084. Closes #106124. Closes #106080.Version info
26.6.1.853