Repository navigation
Add regression test for Merge over Distributed virtual columns with JOIN - #107418
Conversation
Verifies that selecting `_table` and `_database` from a `Merge` over a `Distributed` table together with a `LEFT JOIN` returns the real virtual column values when the analyzer is enabled. Issue: #84139 Fixed by: - #102304 - #102471 Co-authored-by: Yakov Olkhovskiy <[email protected]>
|
|
|
Workflow [PR], commit [ddc95d5] Summary: ✅ AI ReviewSummaryThis PR adds a focused stateless regression test for Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 314 line(s), 56 function(s) across 112 file(s) · Details Top files
|
Adds a regression test for the analyzer issue where selecting
_table(and/or_database) from aMergeover aDistributedtable together with aLEFT JOINreturned default (empty) values instead of the real ones, and could also scramble other columns (e.g.idwas returned as0).The bug is no longer reproducible on
master: it was fixed by#102304("Native Common Virtuals for Remaining Storage") and#102471("Storagemergealways proxy virtuals to underlying storages"), which madeMergealways proxy virtual columns to the underlying storages, so_databaseand_tableare produced natively by the nestedDistributedquery and no longer require ad-hoc rewrites inStorageMerge.This test is the regression-only follow-up to
#85917, with the expected output updated to match the post-refactor behavior (correct_databaseand_tablevalues).Closes: #84139
Related: #102304
Related: #102471
Related: #85917
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add a regression test for
MergeoverDistributedvirtual columns (_table,_database) withLEFT JOINunder the analyzer.Version info
26.6.1.792