Skip to content

Do not constant-fold a lambda that captures an IN set which is not built yet - #119938

Open
groeneai wants to merge 8 commits into
ClickHouse:masterfrom
groeneai:fix-lambda-capture-unbuilt-in-set
Open

groeneai wants to merge 8 commits into
ClickHouse:masterfrom
groeneai:fix-lambda-capture-unbuilt-in-set

Conversation

@groeneai

@groeneai groeneai commented Sep 14, 2026 •

Copy link
Copy Markdown
Collaborator

Closes: #114581
Related: #119907

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fixed wrong results when a lambda given to a higher-order function contains an IN subquery and the function's other arguments are constant: SELECT number FROM numbers(1) WHERE arrayExists(x -> x IN (SELECT 1), [1, 2]) silently returned no rows. It affected the array* and map* higher-order families, in WHERE, HAVING, projections and derived tables, with IN, NOT IN and GLOBAL IN. Closes #114581.

Description

ExecutableFunctionCapture::executeImpl decided that a lambda may be advertised as constant with a bare isConst() over its captured arguments. A captured set arrives as ColumnConst(ColumnSet), which is const whether or not the set is built, so during header evaluation the lambda became a constant, the higher-order function above it became eligible for constant promotion, and the promoted value was FunctionIn's not-ready-set dummy. FunctionIn declines that promotion itself (useDefaultImplementationForConstants() == false), which is why WHERE 1 IN (SELECT 1) is correct; the capture defeated the opt-out one level up. FilterTransform::prepare then read always_false off that constant and closed its input; a derived table returned the frozen 0.

The fix is a readiness gate, not the removal of an optimization: a captured argument counts as foldable only if it is a ColumnConst that does not hold an unbuilt set. That rule already exists for a function's direct arguments (getFunctionArguments) and for a lambda body's COLUMN nodes; the execution-time captured-argument path was the carrier missing it. Once the set is built the same expression folds as before, so projection results and isConstant do not change.

Not addressed here: the execution-time half of 43e6af36863c1, where a non-deterministic lambda over a constant array is still drawn once per block (it needs that walk precomputed at capture construction), and the enable_analyzer = 0 Code: 47 note in #114581. I kept both out so this stays one rule, but I will fold the first into this PR if its author would rather have it here than separate.

Side effect: the all-constant map* and nested arrayFold spellings that abort on master with Not-ready Set now return correct results, since the promotion that carried the dry-run flag into those callees no longer happens. #119907 fixes that forwarding at its source and covers routes this gate does not reach.

Every shape reported in #114581, measured on two builds of this branch's base (click to expand)

Base 6ce5a90c1e195d52054ee8f93939be30bc283674, with the fix 65fdd40de186dc5f15895218db4c56705dd550d3. Exit code asserted on every probe.

query base with the fix issue expects
SELECT arrayExists(x -> x IN (SELECT 2), [2]) 1 1 1
SELECT * FROM (SELECT arrayExists(x -> x IN (SELECT 2), [2])) 0 1 1
SELECT arrayFilter(x -> x IN (SELECT 2), [1, 2, 3]) [2] [2] [2]
SELECT * FROM (SELECT arrayFilter(x -> x IN (SELECT 2), [1, 2, 3])) [] [2] [2]
SELECT arrayMap(x -> x IN (SELECT '2'), [2, 3]) [1,0] [1,0] [1,0]
SELECT * FROM (SELECT arrayMap(x -> x IN (SELECT '2'), [2, 3])) [0,0] [1,0] [1,0]
SELECT count() FROM (SELECT 1 AS k) WHERE arrayExists(x -> x IN (SELECT 1), [k]) 0 1 1
WITH tm1 AS (SELECT arrayExists(x -> x IN (SELECT 2), [2])) SELECT * FROM tm1 0 1 1

New test 05215_lambda_capturing_unbuilt_in_set fails on the base build and passes with the fix; 50 randomized runs green; the 49 in-tree tests naming a higher-order function over IN (, isConstant( or map* over IN ( pass on both builds.


Workflow [PR]
Sync PR [sync-upstream/pr/119938]

…ilt yet

ExecutableFunctionCapture::executeImpl decided that a lambda may be advertised
as constant using a bare isConst() over its captured arguments. A captured IN
set arrives as ColumnConst(ColumnSet), and isConst() is true for it whether or
not the set has been built, so during header evaluation the lambda was wrapped
in ColumnConst while no set existed yet.

The higher-order function above it then had all-constant arguments, so
defaultImplementationForConstantArguments evaluated it once with dry_run = true
and wrapped the result in ColumnConst, and the value it wrapped was the dummy
FunctionIn reserves for a not-ready set. Two consumers read that dummy as an
answer: FilterTransform::prepare trusts
ConstantFilterDescription(*column).always_false and closes its input, dropping
every row, and a derived table's projection returns the frozen 0. The reported
shapes are in issue ClickHouse#114581, on official builds 26.8.1.1068 and 26.8.1.1194.

FunctionIn already declines that promotion itself
(useDefaultImplementationForConstants() == false), which is why
WHERE 1 IN (SELECT 1) is correct today; the capture defeated the opt-out one
level up, by making the higher-order function eligible for exactly the promotion
in had refused.

This is a readiness gate rather than the removal of an optimization: once
CreatingSets has built the set the same fold is correct and still happens, so
projection results and isConstant do not change. The rule already existed in two
carriers, getFunctionArguments for a function's direct arguments and
isLambdaBodySuitableForConstantFolding for a lambda body's COLUMN nodes, whose
comment already points at the first one; the execution-time captured-argument
path was the carrier missing it. Their duplicated copy of the rule is now one
shared predicate.

typeid_cast<const ColumnConst *>(...) != nullptr is exactly equivalent to
isConst(): isConst() is overridden only by ColumnConst, against an IColumn
default of false, so the only behavioural delta is the new gate.

Alternatives rejected. Gating on isLambdaBodySuitableForConstantFolding does not
work: the set is a captured argument, an INPUT inside the lambda's own DAG that
the body walk skips, not a body node. Stopping FilterTransform from trusting a
dry-run constant is the symptom site, would have to be repeated at every filter,
and the always_false early exit is a wanted optimization that
WHERE 1 IN (SELECT 2) relies on. Stopping
defaultImplementationForConstantArguments from const-wrapping under dry_run is
far broader, since updateHeader depends on const propagation. Making in's
not-ready dummy self-identifying would break columnMatchesType, and in has
already done its part correctly.

Closes: ClickHouse#114581
The changelog entry claims the defect reached the array* and map* higher-order
families, in WHERE, HAVING, projections and derived tables, with IN, NOT IN and
GLOBAL IN, but every set-bearing arm of the test was arrayExists with a local
IN, so a partial regression that kept that one shape correct while re-breaking
any of the other four dimensions would have left the suite green.

Each new arm is shaped so the correct answer is a returned row, because the
dummy a not-ready set answers with is false: an arm expecting an empty result
would be satisfied by the defect and could never redden.

Measured through a server on both builds. On the base build 6ce5a90c the three
IN-variant arms return no rows where they must return one, and the map* arm
kills the server outright with
'Not-ready Set is passed as the second argument for function in' because
FunctionMapToArrayAdapter does not forward the dry-run flag; on 65fdd40d all
four are correct. The pre-existing arms keep their values on both.

The map* arm's own spelling differs from the map* cases in ClickHouse#119907, which fixes
that missing dry-run forwarding at its source; if it merges first this arm stays
as a user-visible contract pin for the same query.
Read literally the first clause was false. ColumnSet derives from IColumnDummy,
which does not override isConst(), so ColumnSet::isConst() is false; isConst()
has exactly two definitions in the tree, ColumnConst's returning true and
IColumn's returning false. A set is const because it arrives wrapped in
ColumnConst, which is how ActionsDAG states it at the site that wraps it
("ColumnSet is now always wrapped in ColumnConst"), and that wrapper is what the
predicate looks through.

Comment only. Verified by stripping comments from both revisions and comparing
the remaining code, with a deliberately perturbed copy confirming the comparison
detects a real change.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-self PR origin: self-found defect (impact-bar validated) labels Sep 14, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 2 rounds, 2 findings; my own cold
review of the code ran first, before reading the implementation notes, then the gate, then
adjudication).

# Sev Finding Verdict Evidence / action
1 ⚠️ The regression test pinned none of the contract surfaces the changelog names beyond arrayExists with a local IN, so a partial regression in NOT IN, GLOBAL IN, HAVING or map* would have stayed green (05215_lambda_capturing_unbuilt_in_set) AGREE, fixed @ 3598ae86 Four arms added, one per dimension. Each was measured individually on a build of this branch's base rather than diffed as a file: NOT IN, GLOBAL IN and HAVING return no rows there against one row with the fix, and the map* arm aborts the base server with a Not-ready Set logical error (exit 134). Each arm asserts a returned row, because the dummy a not-ready set answers with is false and an arm expecting an empty result would be satisfied by the defect itself.
2 💡 The GLOBAL IN arm's comment says that spelling "builds its set by another route", which is not true of the local query it annotates (05215_lambda_capturing_unbuilt_in_set.sql:33) AGREE, not fixed Correct: src/Planner/CollectSets.cpp contains no occurrence of global, so set collection does not distinguish in from globalIn; the GLOBAL-specific handling needs a distributed join tree. The arm stays (it pins a distinct spelling, and it is live). The accurate line is -- A distinct spelling of the same operator must pass the same readiness gate, so the row is returned. I left a one-line comment reword out of a wrong-results fix rather than spend another build and test cycle on it; say the word and I will push it.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding. Findings on hunks unchanged by the fix round are auto-dropped.

Two things the review checked itself rather than taking from the implementation notes, in case they
are useful when reading the diff. First, FunctionIn::executeImpl's two not-ready branches both
return a hardcoded 0 and never consult negative, so notIn and globalNotIn yield the same
false dummy as in; that is what makes the NOT IN arm a live oracle rather than one the defect
satisfies. Second, columnHoldsUnbuiltSet matches only a direct ColumnSet and deliberately does
not recurse into a captured ColumnFunction: for an inner lambda to have become
ColumnConst(ColumnFunction) it must already have passed this same check, so an ungated inner lambda
stays a bare ColumnFunction and the outer fold is refused by construction.

Session id: cron:clickhouse-review-self-slot-58:20260914-110900

@clickhouse-gh clickhouse-gh Bot closed this Sep 14, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Sep 14, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes, 100%, no settings and no table. clickhouse local -q "SELECT number FROM numbers(1) WHERE arrayExists(x -> x IN (SELECT 1), [1, 2])" returns EMPTY on a pristine build of this branch's base (Build ID 6ce5a90c1e19...) and 0 with the fix (65fdd40de186...). Exit code asserted on every probe: an aborting query and an empty result set have identical empty stdout.
b Root cause explained? Yes. A captured IN set arrives at ExecutableFunctionCapture::executeImpl as ColumnConst(ColumnSet), and isConst() is true for it whether or not the set is built, so the lambda is advertised constant during header evaluation. The higher-order function above it then has all-constant arguments, defaultImplementationForConstantArguments evaluates it once with dry_run = true and wraps the result in ColumnConst, and the wrapped value is the dummy FunctionIn reserves for a not-ready set. FilterTransform::prepare reads always_false off it and closes its input; a derived table returns the frozen 0.
c Fix matches root cause? Yes: the gate sits on the exact predicate that produced the false constant, at the site that produced it. No bound widened, no tag added, no downstream guard. The three alternative layers (FilterTransform, defaultImplementationForConstantArguments, a self-identifying dummy in in.cpp) are either the symptom site or far broader.
d Test intent preserved / new tests added? New test 05215_lambda_capturing_unbuilt_in_set, ten arms, one per scenario: the filter, an in-range control, folding still happening once the set is built, a set-free capture still folding, one constant conjunct poisoning a whole filter, the derived table from #114581, and one arm per dimension the changelog names - NOT IN, GLOBAL IN, HAVING and a map* spelling. Every set-bearing arm is shaped so the correct answer is a returned row, because the dummy a not-ready set answers with is false and an arm expecting an empty result would be satisfied by the defect. No existing test modified.
e Both directions demonstrated? Yes, on two Build-ID-verified binaries and at two levels: per query, one arm at a time against a real server on each build (table in evidence.md), and on the test file, which passes with the fix and on the base build returns 5 of its 9 runnable output lines. Each of the four new arms was measured rows=0 on base individually, and the map* arm goes further: on base it aborts the server with Not-ready Set (exit 134, fatal log attached), which is also why the full file cannot be run against a base server - the runner's SERVER_DIED path broadcasts SIGTERM to its process group.
f Fix is general across code paths? The invariant has three carriers: a function's direct arguments (ActionsDAG::getFunctionArguments, already correct), a lambda body's COLUMN nodes (already correct, now sharing one predicate instead of a copy), and execution-time captured arguments, which was the hole. defaultImplementationForConstantArguments needs no gate: the only functions that can take a DataTypeSet argument are the in-family registrations, all of which set useDefaultImplementationForConstants() == false. Both analyzers funnel through this one ExecutableFunctionCapture, and the old analyzer's answer is unchanged.
g Fix generalizes across inputs? Measured across arrayExists/All/Filter/First/FirstIndex/Count/Map/Sort/Fold and the map* family; IN, NOT IN, GLOBAL IN; constant literals and constant expressions (range(1, 3), arrayMap(...)); numeric and String sets; WHERE, HAVING, projection, derived table, CTE, JOIN, ARRAY JOIN, window, remote(); and row-dependent arrays, which were never promoted and do not change. Four of those dimensions - NOT IN, GLOBAL IN, HAVING, map* - are now pinned by the test rather than only measured, each verified to fail on the base build. The capture disables the default Nulls/Nothing/LowCardinality/Replicated handling, so a captured argument arrives as the DAG built it, and anything that is not a ColumnConst is treated as not foldable, which is the pre-existing behaviour.
h Backward compatible? Yes. No setting added or changed, so SettingsChangesHistory.cpp is untouched; no format, no serialization, no persisted state. A previously wrong result becomes correct.
i Invariants and contracts preserved? The rewritten predicate is equivalent to the old one plus the gate (isConst() is overridden only by ColumnConst, against an IColumn default of false), so the folding branch is entered on a strict subset of before with an unchanged postcondition, and the path now taken more often is the pre-existing plain ColumnFunction branch. The new helper is total: not a ColumnSet gives false, a missing or unbuilt FutureSet gives true, nothing is dereferenced. The one real drift is that a filter column can now be non-constant in the header where it used to be constant, so I checked 14 structure-asserting contexts against a real server (subquery, GROUP BY, UNION ALL, JOIN, ARRAY JOIN, window, remote(), prewhere): no Block structure mismatch and no LOGICAL_ERROR. No lock, no allocation, no persisted state.

Session id: cron:clickhouse-impl-self-slot-57:20260914-104700

@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [06d0633]

Summary: ❌

job_name test_name status info comment
Build (arm_tidy, 3/4) FAIL
Build ClickHouse FAIL cidb
Finish Workflow FAIL
python3 ./ci/jobs/scripts/workflow_hooks/new_tests_check.py FAIL
Build (amd_debug) DROPPED
Build (amd_asan_ubsan) DROPPED
Build (amd_tsan) DROPPED
Build (amd_msan) DROPPED
Build (amd_binary) DROPPED
Build (arm_asan_ubsan) DROPPED
Build (arm_binary) DROPPED
Build (amd_release) DROPPED

AI Review

Summary

This PR prevents constant promotion of lambdas that capture an unbuilt IN set, so planning-time dummy values cannot become query results. No actionable correctness or safety findings remain on PR head 06d06331172171f549f972df1d023b8f2eaec145.

Missing context / blind spots
  • ⚠️ Runtime validation relies on the committed regression tests and the author's reported before/after runs. This checkout has no ClickHouse binary or configured build, so I could not independently rerun them. The current Praktika report shows a build failure and dropped build jobs, without functional test results for this head. A completed stateless CI run would close this gap.
Final Verdict

Status: ✅ Approve. No new inline findings; the previously resolved nested-lambda concern does not hold in the current code.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Sep 14, 2026
Comment thread src/Functions/FunctionsMiscellaneous.h Resolved
@clickhouse-gh clickhouse-gh Bot added the comp-functions Built-in SQL function implementations + function infrastructure. label Sep 14, 2026
A code review asked whether a lambda nested inside another one still reaches the
readiness gate. It does, by two routes, and which one applies depends on the inner
lambda: when it references the outer parameter the analyzer flattens both into a
single capture whose list holds the set directly (Capture[Set, UInt8, Array(UInt8)]),
and when it does not, the inner lambda is hoisted out of the outer body, so what the
outer lambda captures is the inner capture's result, which the gate has already
refused to fold. Either way no ColumnConst reaches FilterTransform::prepare.

The arm is live rather than one the defect would satisfy: on a build of this branch's
base it returns no rows, against one row with the fix, measured through a server one
statement at a time.
The comment claimed that spelling builds its set by another route, which is not true
of the local query it annotates: src/Planner/CollectSets.cpp does not mention `global`
at all, so set collection does not distinguish `in` from `globalIn`, and the
GLOBAL-specific handling needs a distributed join tree. The arm itself stays, since it
pins a distinct spelling and reddens on the base build.
The description claims this gate also fixes the all-constant map* and nested arrayFold
spellings that abort on master with `Not-ready Set`. The map* half was already pinned;
this is the arrayFold half, which is worth its own arm because arrayFold is a separate
implementation rather than a FunctionArrayMapped specialization, so a regression could
reach it while every other arm stays green.

Exit code asserted on both builds: the arm aborts the base build (134, `Not-ready Set`
logical error) and returns [1] with the fix.
@clickhouse-gh

clickhouse-gh Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 6139082f9 with master 442f03ed0 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

24 translation units recompiled, 178 s compile time in total, 24 of them have a recent master baseline.

Job report

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - ca4b398

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_debug, parallel) / 03710_analyzer_limit_by_aggregate_validation master-side regression under a randomized setting, not reachable from this diff: the job's own diagnosis reproduced it 336/336 with the drawn settings and 0/320 without, the culprit being optimize_injective_functions_in_group_by=False. Onset today; 15 unrelated pull requests and a true-master run carry the same failure inside the same window, and the test had 0 failures in the preceding 30 days a fix task is created and is already investigating at full effort (fixing-PR link to follow on this PR)
Stateless tests (arm_asan_ubsan, targeted) / 03710_analyzer_limit_by_aggregate_validation same failure, surfacing as Code: 10, NOT_FOUND_COLUMN_IN_BLOCK: Not found column __table1.c0 in block plus(__table1.c0, 1_UInt8) a fix task is created and is already investigating at full effort (fixing-PR link to follow on this PR)
Mergeable Check praktika aggregator; red only because of the two stateless jobs above a fix task is created and is already investigating at full effort (fixing-PR link to follow on this PR)
PR praktika aggregator; red only because of the two stateless jobs above a fix task is created and is already investigating at full effort (fixing-PR link to follow on this PR)

Session id: cron:our-pr-ci-monitor:20260914-190625

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for 03710_analyzer_limit_by_aggregate_validation: #120070 (not mine, open).

It stops OptimizeLimitByInjectiveFunctionsPass from unwrapping a LIMIT BY key past a GROUP BY key, which is the defect behind this failure: LIMIT BY is evaluated after aggregation, so the argument the key was unwrapped to is no longer in the block. I built that patch locally and confirmed it turns the failing query green under optimize_injective_functions_in_group_by = 0, so I am tracking it rather than opening a second PR for the same defect.

@alexbakharew

Copy link
Copy Markdown
Contributor

@groeneai Please continue working on this PR. Merge latest master, check failing tests. Prepare this PR for merging.

@groeneai

groeneai commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator Author

Merged master (59b3ac7d0629b) at 6139082, no conflicts; the diff against master is still the same three files.

  • The only failures on the previous head were 03710_analyzer_limit_by_aggregate_validation in two stateless jobs, a master-side break fixed by Stop unwrapping injective LIMIT BY keys past a GROUP BY key #120070, which this merge brings in.
  • The defect is still present on master: on a master build from yesterday (44b568f4e451c), SELECT number FROM numbers(1) WHERE arrayExists(x -> x IN (SELECT 1), [1, 2]) returns no row, and the mapExists spelling aborts with Not-ready Set. On the merged build both return the row.
  • On the merged build 05215_lambda_capturing_unbuilt_in_set passes, and so do 71 of 80 nearby lambda / IN-subquery tests (including 04811_constant_lambda_rhs_in and 05166_nondeterministic_nested_lambda_constant_folding); the other 9 need a cluster or files my local server does not have and fail the same way on that master build.

CI is running on the new head. What is left for merging is a review: none has been submitted yet.

…unbuilt-in-set

Resolved the conflict in src/Functions/FunctionsMiscellaneous.h: master's
isLambdaBodyWithObservableSideEffects (85bfa64) is kept byte-identical,
and columnHoldsUnbuiltSet follows it, unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Merged master again at 06d0633117217 to resolve the conflict in src/Functions/FunctionsMiscellaneous.h with 85bfa645cea4f (hasObservableSideEffects through lambdas). Both changes are kept side by side, and the PR diff against master is unchanged (3 files, +83/-8). The bug still reproduces on today's master, and 05215_lambda_capturing_unbuilt_in_set passes on the merged build. CI is running.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 06d0633

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Build (arm_tidy, 3/4) / Build ClickHouse master build break since af19343b2516, not from this PR (it does not touch the file): unit_tests_dbms does not compile, gtest_functions_stress.cpp:2367: error: value of type 'const ResolvedAddress' is not contextually convertible to 'bool'; no diagnostic in the files of this PR #126269 (external, open)
Finish Workflow / new_tests_check.py both functional Bugfix validation jobs were dropped because of the build failure above #126269 (the owner of the first row)
CH Inc sync - CH Inc sync (private, not actionable by me)
Mergeable Check, PR praktika rollups of the rows above #126269 (the owner of the first row)

The build failure dropped 166 dependent jobs, so no functional test has run on this head yet.

Session id: cron:our-pr-ci-monitor:20261016-130004

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors comp-functions Built-in SQL function implementations + function infrastructure. groeneai-origin-self PR origin: self-found defect (impact-bar validated) pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IN (SELECT ...) inside a higher-order-function lambda always evaluates to 0 when the query is a derived table or the lambda is in WHERE

2 participants