Repository navigation
Backport #123829 to 26.8: Do not read a JOIN input that cannot contribute under a WHERE no row passes - #124242
Conversation
…bute under a WHERE no row passes
7c7e402 to
ef0bd94
Compare
|
Workflow [BackportPR], commit [c557e77] Summary: ✅ |
…123829 The previous commit copies master's body, which uses `allNodeFunctions` and `IFunctionBase::hasObservableSideEffects`; 26.8 has neither, so `Utils.cpp` does not compile. Check the same properties with what 26.8 has: a function that is non-deterministic within the query or stateful, `sleep` and `sleepEachRow` by name (the only functions master reports as having observable side effects), and any lambda, since on 26.8 neither this check nor `dagContainsNonDeterministicFunction` looks into a lambda body. Related: #123829 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fix for the build failure26.8 has neither The cost: on 26.8 a I checked exactly this tree on a local 26.8 debug build (clang-22): it builds; I have Commit |
Original pull-request #123829
Cherry-pick pull-request #124218
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.8.20.12