Repository navigation
Backport #113759 to 26.3: Fix segfault in expandOrderByAll for a Merge child query - #116762
Conversation
…erge` child query
033d1eb to
f66aa1a
Compare
|
Workflow [BackportPR], commit [fd0d27e] Summary: ✅ |
…`NATURAL JOIN` `NATURAL JOIN` does not exist on `26.3`, so the backported test `04817_order_by_all_merge_natural_join` failed with a `SYNTAX_ERROR` at the `NATURAL` keyword instead of exercising the fix. `NATURAL JOIN` is equivalent to `JOIN ... USING (<common columns>)`, and the only common column of the two test tables is `a`, so the queries are rewritten as `JOIN ... USING (a)`. The reference output is unchanged. Verified locally with the `26.3` CI binaries of this pull request: the rewritten test still segfaults in `expandOrderByAll` on a `26.3` build without the fix, and produces byte-identical output to the existing reference file with the fix.
|
🕵 The only red was real, not flaky: Rewrote the test to use the exactly equivalent Verified with this pull request's own ARM CI binaries: with the fix the rewritten test produces byte-identical output to the committed reference, and against a |
CTE/AN/QP: old analyzer: ORDER BY ALL in WINDOW VIEW; INTERPOLATE/WINDOW/LIMIT BY over Merge/Distributed with a join -> crash/exc. Effect in the production build a394e92: wrong/failing (the upstream test fails on it and passes on official 26.8.8.8; evidence/fix_ci_20260925/upstream_repro/residual/113759.PROD263.txt). Upstream patch unchanged, with its test(s): 04817_order_by_all_merge_natural_join. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Original pull-request #113759
Cherry-pick pull-request #116328
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.26.4