Repository navigation
Backport #107663 to 26.3: Fix runtime join filter producing wrong results for JSON columns - #109074
Conversation
…ults for JSON columns
|
Workflow [BackportPR], commit [f734bc2] Summary: ✅ |
|
🕵 Merged the current Root cause of the red With the merged 26.3 head, a local 26.3 release build with this fix passes the test in both plan modes ( |
NULL/RF: a runtime join filter on JSON columns compares the wrong representation and drops matching rows. Effect in the production build a394e92: wrong (the upstream test fails on it and passes on official 26.8.8.8; evidence/fix_ci_20260925/upstream_repro). Upstream patch unchanged, with its test(s): 04327_join_runtime_filter_json Co-Authored-By: Claude Opus 5.5 <[email protected]>
JSON: ColumnObject iterated its typed/dynamic path columns in hash-map order -> JSON join keys with several paths miss in the exact-values runtime filter. Effect in the production build a394e92: without it the 04327_join_runtime_filter_json case with two JSON paths still returns 0 after the ClickHouse#107663 backport (a33ab46) on the candidate 91efe1f244ce, deterministically and with join_runtime_filter_exact_values_limit = 0 as the only workaround; official 26.8.8.8 returns 1. The 26.3 branch merged this backport (ClickHouse#114224, 2026-08-12) before the ClickHouse#107663 backport (ClickHouse#109074, 2026-09-05), so the upstream test passed there. Upstream patch unchanged, with its test(s): -. No test of its own; 04327_join_runtime_filter_json (from the ClickHouse#107663 backport) is the regression test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Original pull-request #107663
Cherry-pick pull-request #108538
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.32.7