Skip to content

Fix array membership over an erased element holding one concrete type - #113208

Open
groeneai wants to merge 32 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-array-membership-erased-element-type
Open

groeneai wants to merge 32 commits into
ClickHouse:masterfrom
groeneai:groeneai/fix-array-membership-erased-element-type

Conversation

@groeneai

@groeneai groeneai commented Aug 4, 2026 •

Copy link
Copy Markdown
Collaborator

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 has, indexOf, indexOfAssumeSorted, countEqual, mapContainsKey and mapContainsValue missing rows that = matches when the array element type is type-erasing (Dynamic or Variant, including nested in Tuple): has(materialize([1::UInt64]::Array(Dynamic)), 1::UInt8) returned 0 while 1::UInt64::Dynamic = 1::UInt8 is 1. The fix applies to a row whose own elements resolve to one concrete alternative and equals over that peeled pair succeeds; other rows keep the previous behaviour. notHas builds its internal has through the same factory, so the two stay negations of one another, including under type_json_skip_null_typed_paths. The needle side is covered too: an erased needle over an Array(LowCardinality(T)) was decided by its bytes in the dictionary, not by equals.

Description

Related: #112953

At default settings the functions above miss rows that scalar = matches, and countEqual breaks the
arrayCount(elem -> elem = x, arr) equivalence it documents.

Root cause. FunctionArrayIndex compares with IColumn::compareAt(...) == 0, but
ColumnDynamic/ColumnVariant order by variant name before value, so equal values under different
variants never compare equal.

The change. One dispatcher at both array entry points covers all six instantiations, constant,
materialized and LowCardinality. For a type-erasing common type it peels an operand resolving to one
concrete alternative and compares with the registered equals, folding each wrapper level's nullness at
its own level; Tuple recursion stops at Array/Map.

Scope, decided per row group, so a row's answer follows from its own elements and the needle, not
from which rows share its block, and a constant array's batches keep comparing the constant so batch
boundaries cannot move it either. It declines for rows mixing concrete types, shared-variant rows,
container alternatives reached through bare Tuple wrappers and any pair
equals rejects; declined rows keep master's answer bit-for-bit. has([NULL], NULL) over a
materialized erased array now matches. No setting is added.

notHas landed on master meanwhile. Its internal has needs the query context here, so it takes it
from the same factory: under type_json_skip_null_typed_paths = 1 a NULL typed path gives has 0 and
master's notHas 0 too, not the negation it documents; now 1.

Validation. 04706 pairs every cell with an oracle in the same row, pins each declined shape, and
asserts block partitions and batch sizes agree. A/B against master over the 229 stateless tests reaching
these functions: identical failure sets; 50/50 OK.

Validation detail

#112953 touches this file but neither entry point.

Left for separate PRs, each measured unchanged on both arms in a run where has itself moved
0 -> 1 on the same fixture: hasAny/hasAll (separate GatherUtils implementation); arrayCompact;
container equality itself ([1::UInt64::Dynamic] = [1::UInt8::Dynamic] is 0 while the Tuple twin is
1, which is why this fix stops there); and the heterogeneous-row miss.

Mutations, each rebuilt with the Build ID confirmed to move, the whole test re-run, then restored
with it confirmed to return. Each reddens only what is named:

mutation reddens
remove the new call 15 lines; controls green
guard on Dynamic only the 2 Variant cells
drop the NULL-vs-NULL match the NULL cells
bypass the dispatcher on the Map path direct has(map, key)
non-recursive, then one-level, Tuple recursion the 3 Tuple cells; then Tuple(Tuple(Dynamic))
decline constant arrays the erased constant cell
accept a row of several concrete types the heterogeneous controls: the decline protects them
never unwrap Nullable the Nullable(Tuple(Dynamic)) cells
remove the Map cardinality normalisation the 2 Map NULL-needle cells
ignore a column's own nullness in the fold the LowCardinality-needle cell
decide per block, not per row group the block-partition cells

Performance (debug, max_threads=1): a materialized 200k x 50 array goes 0.287 s -> 0.135 s.
A constant array is batched against the needles instead of expanded per row, so a 1000-element one over
200k rows holds master's peak: 289 -> 287 MB, 295 MB with mixed needle alternatives.

The updated reference (04338, 2 lines) now enforces its own comment, "has(m, k) must agree
with has(mapKeys(m), k) for every row":
has(map(NULL::Dynamic, 1), CAST(NULL, 'LowCardinality(Nullable(String))')) was 0, the array path 1.


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

groeneai and others added 7 commits August 2, 2026 04:37
has/indexOf/indexOfAssumeSorted/countEqual/mapContainsKey/mapContainsValue
returned wrong results when the array element and the searched value had a
type-erasing common type: has([1::UInt64]::Array(Dynamic), 1::UInt8) was 0
while 1::UInt64::Dynamic = 1::UInt8 is 1, and countEqual disagreed with the
arrayCount(elem -> elem = x, arr) equivalence its own documentation states.
Dynamic is production-ready, so no setting was needed to reach this.

FunctionArrayIndex tested equality with IColumn::compareAt(...) == 0. For
ColumnDynamic/ColumnVariant compareAt compares the variant type name (or
discriminator) first and only then the value, so two equal values stored
under different variants never compared equal and the row was skipped.
compareAt defines a total order for sorting; using it as the equality
relation is only sound where "same sort position" implies "equal", which
erased columns break by construction.

When the common type is type-erasing, evaluate the registered equals over
the elements and fold the result per row instead. That is the relation `=`
uses, and the one arrayRemove already uses on this data. A new executeArray
dispatcher owns the array-shaped dispatch and is called from both entry
points (executeImpl and executeMap), so all six FunctionArrayIndex
instantiations are covered as constant, materialized and LowCardinality;
the constant and LowCardinality arms answer before the generic path and
diverged differently, so covering only one would have relocated the
inconsistency rather than fixing it. The helper returns nullptr for every
non-erased common type, leaving the existing specialised paths untouched,
and the constant and LowCardinality-dictionary optimisations are preserved
rather than materialized away.

The guard recurses through Tuple but stops at Array/Map, because equality
for two identical Array/Map types is itself compareAt-based: routing those
shapes through the fix could not change their answer, only add work. That
is also why the traversal is written explicitly over
DataTypeTuple::getElements rather than IDataType::forEachChild, whose
ChildCallback takes no parent and returns void and therefore cannot prune
a subtree.

Delegating inherits dynamic_throw_on_type_mismatch and
variant_throw_on_type_mismatch instead of reimplementing them, so no
setting is added and no SettingsChangesHistory entry is needed. The
context the three registration routes already receive is now forwarded so
those settings apply; the map adapter detects constructibility so its 16
unrelated instantiations are unaffected, and a null context yields equals
with default ComparisonParams rather than failing.

Two behaviour changes bring membership in line with `=`: a NULL needle
against a materialized erased array holding a NULL now matches, restoring
the documented has([NULL], NULL) -> 1; and Array(String) with a numeric
Dynamic needle now raises NO_COMMON_TYPE rather than returning 0.

The updated 04338 reference is that test's own stated invariant, that
has(m, k) must agree with has(mapKeys(m), k) for every row, now holding.

Co-Authored-By: Claude Fable 5 <[email protected]>
The previous commit folded a nested NULL to "no match", so
has(CAST([tuple(NULL::Dynamic)], 'Array(Tuple(Dynamic))'), tuple(NULL::Dynamic))
returned 0 where master returns 1 - a regression inside this change's own
contract, since it covers erasure nested in Tuple and restores
has([NULL], NULL) -> 1.

Two facts combine to cause it. ColumnTuple does not override isNullAt, so it
inherits IColumn's `return false` and a NULL nested in a Tuple is invisible to a
top-level nullness probe, while Dynamic, Variant, Nullable and LowCardinality
columns all report theirs correctly. And once any position of a row is NULL,
`equals` collapses the whole row to a single NULL, so its verdict cannot settle
the row's remaining positions either: Tuple(Dynamic, UInt8) rows (NULL, 1) and
(NULL, 2) pair their NULLs yet are not equal.

Decompose the Tuple and recurse instead, folding each position where its own
nullness is visible, then AND the per-position results. The recursion is
unbounded in depth and stops at Array/Map, matching hasTypeErasingElement, so
the container barrier and its declined controls are unaffected.

Delegating the row to isNotDistinctFrom was considered and rejected: it sets
useDefaultImplementationForVariant() to false and routes Nullable-vs-Nullable
through compareAt, which reinstates the ordering predicate this change exists to
replace. Measured, it returns 0 for 'V0'::Dynamic vs toFixedString('V0', 3)
where `equals` returns 1, and throws ILLEGAL_TYPE_OF_ARGUMENT for a Variant
needle. It is used only as the test oracle, where null-safety is what is wanted:
the `=` oracle cannot express these rows, because `=` over a Tuple holding a NULL
yields NULL and arrayExists reads non-true as false.

Extend 04704 with the nested-NULL shapes at depth 1 and 2, with Variant, and
with the mixed Tuple(Dynamic, UInt8) pair that distinguishes a position-wise fold
from one that short-circuits once NULLs pair up. Every previously committed cell
keeps its value. Also add the missing indexOfAssumeSorted oracle column.
… the type recursions

A NULL nested inside a non-null Nullable(Tuple(...)) was lost. ColumnNullable::isNullAt
reports on the wrapper, not on a NULL nested below it, so with both wrappers non-null the
NULL-vs-NULL arm of the fold never fired; the wrapped tuple went to `equals` whole, which
returns element-level NULL for a one-element tuple, and that was classified as no match.
Membership therefore answered 0 where master answers 1, inside the contract this change
already advertises for NULLs nested in Tuple.

Strip the wrapper before decomposing, keep its null map, and fold it with the same rule the
leaf fold applies: two NULLs match, a lone NULL does not. Dropping the null map instead
would make a genuinely NULL tuple compare equal to a non-null one whose nested payload
happens to hold the nested default, so the map is load-bearing and is covered by cells that
pair a NULL wrapper against such a needle in has, indexOf and countEqual.

Also add checkStackSize to hasTypeErasingElement and evaluateElementwiseEquality. Both
recurse once per nested Tuple level and the depth is user-controlled through a CAST or DDL
type string, bounded only by max_parser_depth. The Tuple recursion this code replaces at
the top level was already guarded that way (FunctionComparison::executeImpl), as is
getLeastSupertype, so this restores the surrounding convention rather than introducing one.

LowCardinality(Tuple(...)) is not a sibling carrier: it cannot be constructed at all.
Consolidating the array-shaped dispatch into executeArray made the Map entry
point reach executeArrayLowCardinality for the first time. That arm assumes
index 0 of a LowCardinality dictionary is the NULL entry, which holds for the
plain array path but not for a Map: DataTypeMap::isValidKeyType rejects nullable
keys, so index 0 is the dictionary's default value. A NULL needle therefore
matched whichever key happened to sit at index 0, and
has(CAST(map('', 'v'), 'Map(LowCardinality(String), String)'), NULL) returned 1
where it had returned 0.

Restore the normalisation the Map path performed before executeArray existed.
A dedicated commit added it for exactly this reason in 72e311a
("Strip LowCardinality in has() Map path before nullable preprocessing"),
whose test 04338_has_map_dynamic_key_lowcardinality_arg still covers it; the
comment this replaces had that history inverted.

Every affected shape now matches the pre-change answer, and the plain
Array(LowCardinality(T)) path is untouched: the new test group pins the Map
answers against the array-path oracle and keeps a control row asserting the
array path's current answer, which is a separate question on a non-erased type.
Membership over an erased element type answered by variant identity rather
than by value: has([1::UInt64]::Array(Dynamic), 1::UInt8) was 0 while the
scalar comparison 1::UInt64::Dynamic = 1::UInt8 is 1. compareAt orders
Dynamic and Variant by type name or discriminator before value, so equal
values stored under different alternatives never compared equal.

Replace an operand that resolves to one concrete alternative by that
alternative and compare with the registered equals, which is the relation
scalar = uses. This takes the two fast paths FunctionVariantAdaptor itself
gates on, and declines everything else, so a column holding several
alternatives at once, a shared-variant row, a container alternative, a
LowCardinality element, and any pair equals rejects all keep their previous
answer. Admissibility has to be decided by running equals rather than by
inspecting types, because the comparison subsystem admits string pairs by
type and then converts per value: '1'::String compares with 1::UInt8 while
'abc' does not.

Nullness is folded outside equals, once per wrapper level, so an outer NULL
stays distinguishable from one nested below it. Tuple recursion is unbounded
because Tuple(Tuple(Dynamic)) is reachable, and stops at Array and Map, whose
equality is compareAt-based too and therefore cannot change by being routed
here.

Heterogeneous and shared-variant columns keep master's pre-existing cross-type
miss; that residue, along with hasAny, hasAll and arrayCompact, is out of
scope here and tracked separately.
A block of rows shares one flattened ColumnArray data column, so asking the
peel whether the operand holds a single concrete alternative asked it about the
union of every row's elements: ColumnVariant reports a variant as non-empty for
the whole column, and getGlobalDiscriminatorOfOneNoneEmptyVariant returns
nothing as soon as a second one is non-empty. One heterogeneous row therefore
declined for every row in its block, including the single-alternative rows this
path exists to fix. The answer for a row became a function of which rows
happened to share its block, which varies with max_block_size, part layout,
PREWHERE and parallelism, and is not something a user can see or control.
FunctionArrayIndex does not override isDeterministic, so that is unsound for
constant folding, index analysis and the query cache regardless of whether a
consumer trips over it today.

The whole-block attempt is kept first, so a block that already resolves to one
alternative is unaffected and pays nothing. When it declines, the rows are
grouped by the one global discriminator all of that row's elements carry, and
each group is evaluated by the existing peel machinery: a group's sub-block is
single-alternative by construction. Rows whose own elements disagree, and groups
the peel still declines, are handed to the existing dispatch for exactly those
rows, so they keep the answer they had. Reaching that dispatch without
re-entering the erased path is why executeArray is split in two.

A per-position partition was measured and rejected: it needs master's answer for
an individual position, and every arm of the tail folds by ColumnArray::Offsets
and emits one value per row, so no per-position fallback exists short of
rebuilding the array with identity offsets.

Grouping is sound because a materialized equals verdict follows from the type
pair alone, not from the values: measured over four type pairs, a parseable and
an unparseable value give the same verdict (materialize('1') = 1::UInt8 and
materialize('abc') = 1::UInt8 are both NO_COMMON_TYPE). So a group's admit or
decline verdict is stable across its rows, and grouping cannot make one row's
answer depend on another's. This does not revive per-type grouping of a
heterogeneous comparison, which stays refused: heterogeneous groups are never
formed.

tryPeelErased also stops reconstructing the alternative with expand() over a
mask, which assumed the variant's offsets ascend with the superproject row
order. ColumnVariant::validateState only bounds-checks offsets, never their
order, so the reconstruction now builds an explicit selector from getOffsets()
and calls index(), removing the assumption instead of documenting it.

Measured against a pristine-master build: the same [1::UInt64] row with needle
1::UInt8 now answers 1 in a mixed block, at max_block_size = 1 and across two
parts, matching the answer it already got in a homogeneous block. Over 4000
rows in four classes, has/countEqual/indexOf sum to 3000/3000/4000 against an
independent oracle's 3000, where master gives 2000/2000/3000, and all four
block sizes agree on both builds. Heterogeneous rows, shared-variant rows,
container alternatives and LowCardinality elements keep master's answer.
findVariantAtPath returned a raw pointer aliasing a function-local ColumnPtr.
The caller then read the pointee across a whole row loop, so the function was
correct only under an unstated invariant: that no convertToFullColumnIfConst
in the descent ever materialises a temporary. I could not reach that shape
through SQL (ColumnTuple rejects a ColumnConst child, and the mainstream
producers of a const-valued array convert before constructing), but a
ColumnArray's own data column can hold one, which upstream documents in the
ColumnArray constructor's NOTE, and closing it by reachability would need an
audit nobody will repeat at the next refactor of this file.

Pass the owning ColumnPtr back through an out-param instead, which is the
convention unwrapNullable already uses a few functions earlier in the same
file. Behaviour is unchanged: the traversal, the nullptr returns and every
answer are the same, verified by the test and audit outputs being byte
identical to the previous build's.
@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review

Before publishing I ran this change past an independent reviewer model and adjudicated every finding
against the source. Six fix rounds; this records what changed as a result.

❌ Blockers found and fixed

Nested NULL lost inside Tuple(Dynamic). has(CAST([tuple(NULL::Dynamic)], 'Array(Tuple(Dynamic))'), tuple(NULL::Dynamic))
returned 0 where = and master return 1. ColumnTuple has no isNullAt of its own, so it inherits
IColumn's return false and the fold could not see the nested NULL. Fixed by comparing tuples
position-wise, which puts every NULL where the fold sees it. Recursion is unbounded, and stops at
Array/Map on purpose.

Same defect one wrapper out, in Nullable(Tuple(Dynamic)). For a non-null wrapper holding a
NULL, ColumnNullable::isNullAt answers about the wrapper, so the nested NULL was still invisible.
Fixed by stripping the wrapper before decomposing and folding its null map with the leaf's own rule
(two NULLs match, a lone NULL does not). Dropping the null map instead would have made a genuinely
NULL tuple equal to a non-null one holding the nested default, so cells now pair a NULL wrapper
against exactly such a needle.

Same defect in Variant whose active alternative is a Tuple. ColumnVariant::isNullAt is
discriminator-only, so a Variant(Tuple(Dynamic), UInt8) row on the tuple alternative reported
non-NULL while its nested Dynamic was NULL. Rather than patch a third shape, I enumerated all
nine isNullAt overrides in src/Columns and classified each against this mechanism; ColumnVariant
was the only remaining carrier, and the fix closes the class. Tests now assert membership against a
null-safe oracle across the wrapper combinations, so a future wrapper that starts hiding a nested
NULL reddens a cell without anyone having to think of it.

Map(LowCardinality(K), V) with a NULL needle matched the empty-string key. Consolidating the
two array entry points onto one dispatcher changed which arms the Map path reaches, and it began
reaching a LowCardinality arm that maps any NULL needle to dictionary index 0. Index 0 is the null
entry only in a nullable dictionary, and a Map key can never be Nullable, so it matched the default
value instead. Fixed by normalising cardinality on the Map path before dispatch, restoring that
path's previous answers exactly. Worth recording that the first remedy I prescribed was wrong: I had
read the deleted normalisation as the cause of an earlier null-needle defect, when the commit that
added it shows it was the fix for one. Checking the provenance rather than the comment is what caught
that, and the misleading comment is gone.

Unbounded type recursion with no stack guard. Both new recursions descend once per nested Tuple
level, with the depth user-controlled through a CAST or DDL type string. The top-level Tuple
recursion this replaces was already guarded; checkStackSize restores that.

A row's answer depended on which rows shared its block. The first design admitted a whole block
only when every element in it resolved to one alternative, so the same row read 1 next to a
homogeneous sibling and 0 next to a heterogeneous one. Sharper still: two separate INSERTs of the
same table contents gave row 0 a different answer than one INSERT, which no user can see or control.
Fixed by deciding per row group: rows are grouped by the single discriminator all of that row's own
elements carry, so each group is single-alternative by construction and rows left out get the existing
dispatch, which is already row-local. The whole-block attempt is tried first, so admitted blocks are
byte-identical and pay nothing. A test group now reads the same two rows under three block partitions
and requires all three to agree.

⚠️ Raised and not changed, with the reasoning

Array(LowCardinality(T)) with a NULL needle reports the empty-string element as a match. Real,
and the oracles agree it is wrong: has(CAST(['', 'a'], 'Array(LowCardinality(String))'), NULL) is 1
on master while arrayExists(isNull), arrayFilter, the non-LowCardinality twin and IN all say 0.
It is pre-existing (measured on a pristine-master binary, reachable without any code from this PR)
and it is not this PR's contract, which scopes itself to type-erasing common types. Fixing it means
changing dictionaryIndexForConstant's index-0 convention, a helper shared with other callers, and it
is a user-visible answer change on a non-erased type that needs its own changelog entry and reviewer.
A guard was built and measured during review and is recorded for that follow-up. This PR leaves the
path byte-identical to master, and a test pins master's current answer as the control that proves it.

The Array/Map barrier has no answer-observable oracle. Container equality is itself
compareAt-based, so routing containers through this fix could not change their answer; there is no
constructible query that distinguishes the two. Recorded as a disclosed sibling carrier instead.

An implicit lifetime contract on a new helper. The row-grouping helper returned a raw
const ColumnVariant * derived from a function-local ColumnPtr, so it was correct only under the
unstated assumption that no step of its descent ever materialises a temporary. I could not construct a
reachable query that breaks it, so this was not a demonstrated use-after-free. The objection is that
new code should not carry a contract that implicit when the same file already established the opposite
idiom four functions earlier. Fixed by handing the owner back through an out-param. Traversal, decline
paths and every answer are unchanged, which the test and audit outputs being byte-identical to the
previous build's confirms.

💡 Noted, not blocking

The dispatcher's neutrality claim in the description was too strong: no arm's code changed, but the
Map entry point began reaching arms it had not reached before, and that reachability change is what
produced the blocker above. The description now says what is actually true.

The per-row-group path runs one filter and one equals per distinct alternative, so a maximally
heterogeneous column can do up to 255 block-wide filters where master did one scan. Left as is: only
heterogeneous columns reach it, the homogeneous case this PR fixes is answered by the whole-block
attempt first and measures faster (0.287 s -> 0.135 s), and a cap would be a behaviour cliff no
measured shape asks for.

Validation

Every cell in the new test is asserted against an element-wise oracle in the same row. Where NULLs
are involved the oracle is isNotDistinctFrom, because = over a Tuple holding a NULL yields
NULL and arrayExists reads a non-true value as false, so the = oracle cannot express the
contract; it is used as an oracle only, never as the comparison engine. Each fix carries a mutation
that was rebuilt with the Build ID confirmed to move and the whole test re-run, and two mutations were
strengthened after they failed to redden a cell they should have. Closing runs: 50/50 under randomized
settings, and a wide A/B sweep against a pristine-master binary with the failure sets diffed rather
than counted.

@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. CREATE TABLE h1 (id UInt8, v Array(Dynamic)) ENGINE = Memory; INSERT INTO h1 VALUES (0,[1::UInt64]),(1,[2::UInt64]); SELECT id, has(v,1::UInt8) AS got, toUInt8(arrayExists(x->x=1::UInt8,v)) AS want FROM h1 ORDER BY id SETTINGS optimize_rewrite_array_exists_to_has=0; -> row 0 reads got=0, want=1 every time. No setting, no randomization, no concurrency: enable_dynamic_type is MAKE_OBSOLETE(..., true).
b Root cause explained? Yes. FunctionArrayIndex tests equality with IColumn::compareAt(...) == 0. For ColumnDynamic/ColumnVariant compareAt compares the variant type name (or discriminator) FIRST and reaches the value only when those match, so two values = considers equal but stored under different alternatives can never compare equal and the row is skipped. compareAt is a total order for sorting; using it as equality is sound only where "same sort position" implies "equal", which erased columns break by construction. Measured: dynamicType(1::UInt8::Dynamic) is UInt8, dynamicType(1::UInt64::Dynamic) is UInt64, yet (1::UInt64::Dynamic) = (1::UInt8::Dynamic) is 1.
c Fix matches root cause? Yes. It stops using the ordering predicate for erased types and compares with the registered equals -- the relation = uses, and the one arrayRemove already uses on exactly this data (arrayRemove([1::UInt64]::Array(Dynamic), 1::UInt8) returned [] while has returned 0). No widened bound, no no-random-* tag, no reduced dataset, no guard at a symptom site.
d Test intent preserved / new tests added? Yes. New stateless test 04706_array_membership_erased_element_type, parallel-safe with no no-parallel tag; every cell carries the function result and its oracle in the SAME row, so no cell can pass vacuously. Verified non-vacuous mechanically: re-wrapping every got/want statement group as WHERE got != want yields 8 mismatch rows on pristine master and 0 on the fix. One existing reference changed (04338, 2 lines) and it is that test's own documented invariant now holding. Declined shapes gained must-not-regress controls they previously lacked.
e Both directions demonstrated? Yes, on Build-ID-verified binaries. Pristine master (8c925c5b, Build ID cd03879e) vs the fix (Build ID af984d45): 25 cells move, every one from a wrong got to its own want; no heading line moves. SELECT lower(buildId()) was asserted equal to readelf -n on each binary before every verdict. The shipped commit rebuilt to Build ID 06d99e2a (a pure ownership change in one helper) and re-verified byte-identical: 04706 and 04338 green against their committed references, and the WHERE got != want audit emits the same 82 lines with 0 mismatches. Plus 50/50 under the real runner with randomized settings: 100 OK / 0 FAIL.
f Fix is general across code paths? Yes. One helper behind ONE dispatcher called at BOTH array entry points (executeImpl, executeMap), so all six FunctionArrayIndex instantiations (has, indexOf, indexOfAssumeSorted, countEqual, mapContainsKey, mapContainsValue) are covered in all three representations -- constant, materialized and LowCardinality. That breadth is load-bearing, not defensive: the constant and LowCardinality arms answer BEFORE the generic path and diverged differently, so a single-arm fix would only relocate the inconsistency. Tuple recursion is unbounded because Tuple(Tuple(Dynamic)) is reachable. Twelve mutations each redden only their own cells, which is the evidence each path is genuinely reached rather than merely present -- including one that re-imposes a per-block decision and reddens the block-partition cells.
g Fix generalizes across inputs (params/datatypes/wrappers)? Yes, and the matrix is in the test: Dynamic and Variant; Tuple nesting at depth 1, 2 and 3; Nullable(Tuple(Dynamic)), Variant(Tuple(Dynamic)) and Dynamic holding a Tuple; Nullable, LowCardinality and LC(Nullable) needles; String, zero-padded FixedString, cross-width numeric, same-Variant and Dynamic-typed needles; internal NULL on either side and on both, including a match sitting AFTER a NULL so a misplaced expand shows up as a wrong indexOf position; absent needles as false-positive controls; and Array/Map/Tuple(Array(...)) wrappers asserted as declined controls rather than assumed.
h Backward compatible? Yes. No setting added and no default changed, so no SettingsChangesHistory.cpp entry is due; no format or serialization change; no experimental gate. Measured rather than reasoned: an admitted cell answers 1 under both dynamic_throw_on_type_mismatch = 0 and = 1, because peeling builds no adaptor, so those settings cannot reach the comparison -- and the test pins that cell in both states. Answers change only where they were wrong; the one further visible change (a NULL needle matching a materialized erased array holding a NULL, restoring the documented has([NULL], NULL) -> 1) is called out in the PR body.
i Invariants and contracts preserved? Yes. The fold reduces per-element matches through the SAME ConcreteAction::apply + resume_execution protocol the existing loops use, so first-match-and-stop vs count vs 1-based-position semantics are unchanged per function. Every decline path returns nullptr BEFORE any behaviour change, which is what keeps declined shapes bit-identical -- confirmed by measurement on six residue shapes, not by reading the diff. A fresh equals resolver is obtained per distinct type pair, since one instance may resolve only one overload (IFunction.h:369-374). Nullness is folded once per wrapper level, never as one merged map, so an outer NULL stays distinguishable from a nested one. checkStackSize() guards both recursions because type depth is user-controlled via a CAST/DDL type string. ⚠️ Carried forward from an earlier round: "no code changed in that arm" does NOT establish behavioural neutrality -- consolidating the dispatch once changed WHICH arms the Map entry point reaches, which was a wrong-results blocker. Every neutrality claim here is therefore backed by a measured both-arm cell. This round added the invariant that the answer for a row is a function of that row's elements and the needle alone: the admit/decline decision is taken per row group, never per block, so it cannot depend on which rows share a block. Pinned by a group asserting three block partitions (default, max_block_size = 1, two parts) agree, and FunctionArrayIndex stays deterministic as it declares itself to be.

Session id: cron:clickhouse-impl-slot-41:20260803-170600

@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

cc @george-larionov @CurtizJ, could you review this? FunctionArrayIndex uses IColumn::compareAt(...) == 0 as its equality test, but for Dynamic/Variant compareAt orders by variant type name before value, so has/indexOf/countEqual never matched an equal value stored under a different alternative; this peels a row whose own elements resolve to one concrete alternative and compares with the registered equals instead, declining (bit-for-bit as master) for every other shape.

@PedroTadim PedroTadim added the can be tested Allows running workflows for external contributors label Aug 4, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2f045ea]

Summary: ❌

job_name test_name status info comment
Performance Comparison (arm_release, master_head, 1/6) FAIL Performance dashboard
optimize_time_filter_with_preimage #6 FAIL dashboard
Performance Comparison (arm_release, master_head, 2/6) FAIL Performance dashboard
timeseries_to_grid_aggregation_functions #23 FAIL dashboard
set_index #1 unstable query history

AI Review

Summary

This PR routes has/indexOf/countEqual and the map membership wrappers over Dynamic/Variant through equals instead of compareAt, threads the query Context into the internal has resolver, and adds broad regression coverage. The main fix is sound for single erased leaves, but the row-group fallback still keys on only one erased tuple position, so multi-leaf tuple cases either stay wrong or become block-dependent. I do not think this is merge-ready.

Findings

❌ Blockers

  • [src/Functions/array/arrayIndex.h:893] [dismissed by author -- https://github.com/Fix array membership over an erased element holding one concrete type #113208#discussion_r3712891013] findErasedPath still returns only the first erased leaf inside a tuple. When the haystack type is Array(Tuple(Dynamic, Dynamic)), rows that agree on the first leaf but differ on the second are grouped together, evaluateElementwiseEquality declines on the mixed group, and even the single-alternative row falls back to the old compareAt semantics. That still violates the PR's published promise that tuple-nested erased elements follow scalar = semantics. Suggested fix: make the grouping key cover all erased tuple leaves on the element side (or recursively split groups per erased leaf), and add a focused Tuple(Dynamic, Dynamic) regression to 04706.

  • [src/Functions/array/arrayIndex.h:975] groupRowsByAlternative has the same first-leaf-only bug on the needle side. A varying Tuple(Dynamic, Dynamic) needle column is keyed off a single findErasedPath, so two rows that differ only in the second erased position are still batched together. The grouped evaluation then declines and falls back, making the result for a row depend on which other needles share its block on the new erased-needle path. Suggested fix: build the needle-side group key from every erased tuple leaf, or conservatively bypass grouped evaluation when the needle carries more than one erased leaf until that key is complete.

Final Verdict

Changes requested. The row-group fallback is still incorrect for tuple operands with more than one erased leaf, on both the haystack and varying-needle sides.

LLVM Coverage Report

Measured on commit 2f045ea.

Metric Baseline Current Δ
Lines 88.10% 88.10% +0.00%
Functions 91.70% 91.70% +0.00%
Branches 79.40% 79.40% +0.00%

Changed lines: Changed C/C++ lines covered: 430/445 (96.63%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Aug 4, 2026
Style check flagged two rules on arrayIndex.h, both introduced by this PR.

various_checks.sh forbids a ContextPtr member under src/Functions: such a copy
can outlive its context in deferred-execution paths (default expressions, async
inserts, MergeTree), and every entry in its exception list is a function that
genuinely needs a live context at execution time. This one does not - the
context was only ever used to resolve `equals`. So resolve the overload resolver
once in the constructor and keep that instead, as coalesce.cpp does for
isNotNull/assumeNotNull/if/multiIf. A null context stays benign, because
FunctionComparison::create falls back to default ComparisonParams.

The removed comment claimed a resolver cannot be a member because one instance
resolves one overload (IFunction.h:370) while Tuple leaves need one each. That
warning targets resolvers whose IFunction has mutable fields, which the same
comment names as the offender class. FunctionComparison holds only a const
ComparisonParams and no mutable state, and IFunctionOverloadResolver::build
derives everything from its arguments, so repeated builds on differing leaf
types are safe. coalesce.cpp relies on exactly that, calling build in a loop
with a different argument type each iteration.

check_cpp.sh lint 08 wants memory-tracking containers under src/Functions, so
std::vector and std::unordered_map become VectorWithMemoryTracking and
UnorderedMapWithMemoryTracking. These allocate through a MemoryTracker that
throws rather than overcommitting.

Verified both directions: 04706 is byte-identical to its reference with this
change and differs on 50 lines against pristine master, so the fix is preserved
and the test still discriminates.
@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

Pushed ae4f8d9 to fix the two Style check rules my previous head tripped. Both were mine.

various_checks.sh forbids a ContextPtr member under src/Functions, because such a copy can
outlive its context in deferred-execution paths, and every entry on its exception list is a
function that genuinely needs a live context while executing. This one did not: the context was
only ever used to resolve equals. So I resolve the overload resolver once in the constructor and
keep that instead, the way coalesce.cpp keeps isNotNull/assumeNotNull/if/multiIf. A null
context stays benign, since FunctionComparison::create falls back to default ComparisonParams.

I also removed a comment of mine that claimed a resolver cannot be a member, on the grounds that
one instance resolves one overload (IFunction.h:370) while Tuple leaves need one each. That
warning targets resolvers whose IFunction has mutable fields, which the same comment names as
the offender class. FunctionComparison holds only a const ComparisonParams and no mutable
state, and IFunctionOverloadResolver::build derives everything from its arguments, so repeated
builds on differing leaf types are safe. coalesce.cpp depends on exactly that, calling build
in a loop with a different argument type each iteration.

check_cpp.sh lint 08 wants memory-tracking containers under src/Functions, so the six
std::vector/std::unordered_map uses became VectorWithMemoryTracking and
UnorderedMapWithMemoryTracking.

Verified both directions: 04706 is byte-identical to its reference with this change, and differs
on 50 lines against a pristine master build, so the fix is preserved and the test still
discriminates. I also confirmed the local equivalents of both style rules now pass, using a
mutation control to check the probes actually redden.

One thing worth flagging that this commit does not fix. findErasedPath returns on the first
erased leaf, so grouping keys on that single discriminator. For
Array(Tuple(Dynamic, Dynamic)) a row whose own leaves are each single-alternative can therefore
be dragged into the old fallback because a sibling row varies in the second leaf:

CREATE TABLE t (a Array(Tuple(Dynamic, Dynamic))) ENGINE = Memory;
INSERT INTO t VALUES ([(1::UInt64, 2::UInt64)]);
SELECT has(a, (1::UInt8, 2::UInt8)) FROM t;    -- 1
INSERT INTO t VALUES ([(1::UInt64, 'x')]);
SELECT has(a, (1::UInt8, 2::UInt8)) FROM t;    -- 0 for both rows

I measured this identically before and after ae4f8d9, and against master the with-sibling case
is unimproved rather than newly broken (master answers 0 in both cases), so it is pre-existing and
outside this PR's single-alternative contract. Serving it needs grouping on a composite of
per-leaf discriminators, whose cardinality is the product of the per-leaf alternative counts, so
it wants its own bail-out threshold and its own review rather than being folded in here. A fix
task owns it, and I will post the fixing-PR link here when it opens. Note my tuple coverage in
04706 is all single-erased-leaf today, so that shape needs adding with the fix.

The remaining Fast test failure is 02458_relax_too_many_parts (TOO_MANY_PARTS under merge
pressure). This PR touches arrayIndex.h and tests only, nothing in the parts or merge path, and
I sighted the same failure this window on an unrelated PR. It will be carried with an owner on the
CI finish ledger once CI completes.

const auto & elements = tuple_type->getElements();
for (size_t position = 0; position < elements.size(); ++position)
{
if (auto nested = findErasedPath(*elements[position]))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

findErasedPath stops at the first erased leaf it encounters, so the row-group fallback still treats Array(Tuple(Dynamic, Dynamic)) as homogeneous whenever only the first field agrees. A sibling row that differs only in the second erased field then sends the whole group back to the old compareAt path, and rows that are single-alternative in both tuple positions stay wrong.

Repro:

CREATE TABLE t (a Array(Tuple(Dynamic, Dynamic))) ENGINE = Memory;
INSERT INTO t VALUES ([(1::UInt64, 2::UInt64)]), ([(1::UInt64, 'x')]);
SELECT has(a, (1::UInt8, 2::UInt8)) FROM t ORDER BY tuple();

The first row should still be 1, but this implementation falls back to the old answer for both rows because the grouping key ignores the second erased leaf. The fallback needs to key on all erased tuple positions, not just the first one.

Comment thread src/Functions/array/arrayIndex.h Resolved
The per-row-group fallback partitioned on the array side only. When the needle
is itself a materialized Dynamic or Variant whose alternative varies by row, a
group could still hold two different needle types, so the peel declined for the
whole group and every member fell back to compareAt. A row that peels cleanly
on its own then answered differently depending on which rows shared its block,
which is the property the change set out to establish:

    CREATE TABLE t (id UInt8, v Array(Dynamic), n Dynamic) ENGINE = Memory;
    INSERT INTO t VALUES (0, [1::UInt64], 1::UInt8), (1, [2::UInt64], 'x');
    SELECT id, has(v, n) FROM t ORDER BY id;

Row 0 returned 0 in that block but 1 when read alone, while 1::UInt64 = 1::UInt8
is 1. Master answers 0 in both, so it was self-consistent and this was a
regression introduced by the row-group pass rather than a pre-existing gap.

The grouping key now carries both alternatives. Discriminator is a UInt8, so the
pair packs into a UInt16, and a needle that is not erased contributes a constant
half and leaves the partition as it was. Rows whose own elements disagree are
still ungrouped, and a group is only evaluated when every member peels the same
way on both sides.

The block-independence group of 04706 gained the needle-side shapes: the same
two rows under three block partitions, for has, indexOf and countEqual, with a
declared Variant needle as well. Without this change the mixed-block partitions
answer 0 where the one-row partition answers 1, so the new cells fail on the
previous commit and pass here; the rest of the test is byte-identical across
both.
The pair key admits 255 * 255 groups where a single discriminator admitted 255,
and each group held an IColumn::Filter spanning the whole block, so the worst
case grew with the square of the alternative count: at 65536 rows the bound went
from about 16 MiB to about 4 GiB of filters.

The rows now carry one group label each, the distinct labels present are
collected, and a filter is materialised only for a group the block really holds.
Nothing about the partition changes, so the answers are identical; peak RSS on a
full 65536-row block with both sides widened is within 8 MiB of the previous
commit and the query is faster, since the labels replace a scan per group.
The three partitions were asserted only against each other, and a comment
promised a Tuple-nested needle that the schema did not build.

The oracle for these rows cannot be an element-wise `x = n` in the same row:
that asks for one common type across the whole column and throws
NO_COMMON_TYPE, so it would assert nothing. Reading a row on its own is what
"the answer is the row's own" means, so each shape now also reads each row
alone, and that is the value the partitions have to reproduce. On the previous
commit the shared-block partitions answer 0 where the single-row read answers 1,
so the cells contradict each other there and agree here.

The Tuple(Dynamic) needle the comment described is now actually constructed,
which exercises the needle path by descent rather than at the top level. It
reddens on the previous commit too.
The decline list covered the comparison subsystem rejecting a pair by type, but
not a pair it accepts by type and then cannot convert. equals reports that as
NOT_IMPLEMENTED, which propagated, so a query that used to answer now threw:

    CREATE TABLE t (v Array(Variant(IPv4, Float64)), n Variant(IPv4, Float64))
        ENGINE = Memory;
    INSERT INTO t VALUES ([toIPv4('1.2.3.4')], toFloat64(5));
    SELECT has(v, n) FROM t;

Master returns 0. A single row is enough, so this is the peel itself rather than
the grouping, and it reached every commit of the branch so far. The stated
contract is to decline for any pair equals rejects, so NOT_IMPLEMENTED joins the
list and the existing dispatch answers as before.

04706 gained that pair; it throws on the previous commit and returns 0 here.
Why one label per row rather than a filter per group belongs in the commit that made the change, not next to it.
@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

Both findings are real. The second one is in this PR's contract and is now fixed here; the first is not, and is measured to be equally wrong on master.

Needle-side mixed alternatives: fixed in 0cfd51e

Confirmed with your repro, and it was a regression this PR introduced rather than a pre-existing gap. Master is self-consistent, the previous head was not:

shape master previous head ae4f8d9 now
row 0 in the mixed block 0 0 1
row 0 read alone 0 1 1

So the previous head answered the same row differently depending on its blockmate, which is exactly the property the PR body claims. groupRowsByAlternative partitioned on the array side only, so a group could still hold two different needle types, the peel declined for the whole group, and every member fell back to compareAt.

The grouping key now carries both alternatives. ColumnVariant::Discriminator is a UInt8, so the pair packs into one key; a needle that is not erased contributes a constant half and leaves the partition as it was.

04706 gained the needle-side shapes under all three block partitions, for has, indexOf and countEqual, plus a declared Variant needle and a Tuple(Dynamic) needle. The oracle there is the row read on its own rather than an expression in the same row: an element-wise x = n over these rows asks for one common type across the column and throws NO_COMMON_TYPE, so it would assert nothing. On ae4f8d9 the shared-block partitions answer 0 where the single-row read answers 1, so the new cells contradict each other there and agree here.

Two things came out of reviewing that fix, both also in this push:

  • The pair key admits far more groups than a single discriminator did, and each group held a filter spanning the whole block, so the worst case grew with the square of the alternative count. The rows now carry one group label each and a filter is built only for a group the block really holds. On a full 65536-row block with both sides widened this is 2.6x faster at equal peak RSS, median of three runs each.
  • A peeled pair whose types have a supertype the comparison accepts but no conversion between them made the call throw where master answers. has([toIPv4('1.2.3.4')]::Array(Variant(IPv4, Float64)), toFloat64(5)::Variant(IPv4, Float64)) returned 0 on master and raised NOT_IMPLEMENTED on every commit of this branch so far; equals reports that case with a code the decline list did not cover. One row is enough, so it was the peel rather than the grouping. Now declined, with that pair asserted in 04706.

Multiple erased tuple leaves: out of this PR's contract

Reproduced verbatim, and it is a genuine defect, but it is not one this PR creates or is scoped to fix. A/B on the source file alone, each arm's Build ID verified to move:

arm row alone with the sibling row
this branch 1 0
master 0 0

Against master the shared-block case is unimproved, 0 to 0, not newly broken, so declining to widen findErasedPath here keeps the change at the scope its body describes. A fix task owns it, and the fixing-PR link will be posted here when it opens. It carries the repro, the findErasedPath / groupRowsByAlternative / evaluateElementwiseEquality trace, a composite-key sketch, and the coverage gap that all 29 existing tuple assertions are single-erased-leaf.

One warning for whoever picks that up: arrayMap(e -> e = <needle>, a) throws NO_COMMON_TYPE on a heterogeneous Array(Tuple(Dynamic, Dynamic)), and arrayExists(e -> isNotDistinctFrom(e, <needle>), a) returns 0 where direct = returns 1, so neither is authoritative for these types.

Comment thread src/Functions/array/arrayIndex.h Resolved
hasTypeErasingElement descended only through a bare Tuple, so an erased leaf
below a Nullable(Tuple(...)) nested inside a Tuple was invisible to it and
executeErasedEquality never ran for such a shape. The two helpers that walk
the same structure, findErasedPath and findVariantAtPath, already decay a
Nullable at each level, so the gate was the only place that did not, and the
elementwise evaluator folds each wrapper level's nullness at its own level and
can serve the shape once admitted.

Measured on Array(Tuple(Nullable(Tuple(Dynamic)))), materialized, with the
answer paired against scalar = on the same peeled pair: has/indexOf/countEqual
answered 0/0/0 where = answers 1, both on pristine master and on this branch
before this commit, and answer 1/1/1 after it. The same holds past a
non-erased leading tuple element. The four single-wrapper control shapes are
unchanged, and the rest of the test's 128 reference lines are byte-identical,
which refutes the concern that relaxing this predicate would move committed
cells. Reverting only the decay reddens exactly the two new cells and nothing
else.

Reported by the AI reviewer on the pull request.
The first version of these cells paired only has with scalar =, leaving the
position and the count asserted against reference text alone. A single matching
element also made both reduce to 1, which a constant would satisfy.

The array now carries a non-matching leading element and the match twice, so
indexOf is 2 and countEqual is 2, and each has a same-row oracle built from =
over the peeled pair. Those oracles read 2 unchanged on pristine master and on
this branch before the decay commit, where the functions themselves answer 0,
so they are independent of the change they check. Reverting the decay collapses
all three answers to 0 while all three oracles hold.
@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

AI review round 2: the nested-Nullable(Tuple(...)) finding is correct and is fixed

Confirmed by running the reported repro, not by reading the diff. Materialized (the constant folder
answers the literal form without reaching the dispatcher), with each answer paired against scalar =
on the same peeled pair:

Array(Tuple(Nullable(Tuple(Dynamic)))) pristine master branch before branch now
has 0 0 1
indexOf / countEqual 0 / 0 0 / 0 2 / 2
scalar = on the peeled pair (oracle) 1 1 1

The asymmetry described is real: findErasedPath (arrayIndex.h:879) and findVariantAtPath
(:836-840) both decay a Nullable at each level, and hasTypeErasingElement was the only one of
the three that did not, so the gate rejected shapes the machinery below it can serve. Fixed in
a414df6a by the matching decay; the elementwise evaluator already folds each wrapper level's
nullness at its own level, so nothing else was needed. The same holds when the wrapper sits past a
non-erased leading tuple element.

The concern recorded earlier on this branch, that relaxing this predicate would move already-committed
cells, is refuted by measurement: the rest of the test's reference is byte-identical, and reverting
only the decay reddens exactly the new cells and nothing else.

Also acted on: the first version of those cells oracled only has, and a single matching element made
indexOf and countEqual both reduce to 1, which a constant would satisfy. 07166f4b gives the array
a non-matching leading element and the match twice, so the two reduce to 2, each with its own same-row
oracle. Those oracles read 2 on master and on the pre-fix branch, where the functions answer 0, so they
are independent of what they check.

Not fixed here, deliberately

The multi-erased-leaf case (Array(Tuple(Dynamic, Dynamic)), where a blockmate varying in the second
leaf flips another row's answer) is raised again this round. Re-measured at the current head: 1 alone
vs 0 with the sibling, against 0 / 0 on pristine master, so versus master it is unimproved rather than
newly broken, and it needs findErasedPath to enumerate every erased path plus composite-key grouping
whose cardinality is the product of per-leaf alternative counts. That performance envelope deserves its
own review rather than being folded in here. A fix task owns it, and the fixing-PR link will be posted
here when it opens.

The request to add an element-wise oracle to the block-partition cells cannot be met as prescribed: on
those fixtures the needle is itself a materialized erased column whose alternative varies by row, so
arrayExists(x -> x = n, v) throws Code: 386 NO_COMMON_TYPE and produces no output at all. The
working oracle for that shape is reading the row on its own and requiring every block partition to
reproduce it, which is what those cells already do.

Build IDs verified to move per arm and pinned against readelf -n; mutation restored to the same
Build ID. 04706 byte-identical to its committed reference, stderr empty.

Session id: cron:clickhouse-maint-slot-13:20260804-171931

@groeneai

groeneai commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 07166f4

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_asan_ubsan, distributed plan, parallel) / Logical error: Bad cast from type A to B (STID 5793-6360) trunk bug, ColumnNullable reaches SerializationString via MutateTask #112501 (external, open)
Stateless tests (amd_asan_ubsan, distributed plan, parallel) / Server died collateral row of the abort above, one event #112501 (external, open)
Stateless tests (amd_tsan, s3 storage, parallel, 2/3) / Logical error: Bad cast from type A to B (STID 4350-6700) same trunk bug, sibling STID bucket #112501 (external, open)
Stateless tests (amd_tsan, s3 storage, parallel, 2/3) / Server died collateral row of the abort above, one event #112501 (external, open)
Build (arm_release) / Post Hooks CI infra, build_profile_hook.py telemetry INSERT INTO build_time_trace gets LogCluster HTTP 500; enclosing check is success, no build gated a fix task is moved to pending (investigating at full effort - fixing-PR link to follow on this PR)

Not caused by this PR. The diff is confined to src/Functions/array/, src/Analyzer/Passes/ArrayExistsToHasPass.cpp
and two test files; both aborts occur in MergeTreeDataPartWriterOnDisk::initColumnsSubstreamsIfNeeded
-> SerializationString::serializeBinaryBulkWithSizeStream under a background mutation, which this
diff does not reach. Breadth over 30 days on the message phrase plus the serializeBinaryBulkWithSizeStream
frame: 24 distinct PRs and 5 master runs, none of them touching array membership. #112501 rewrites
MutateTask.cpp, the exact frame in the stack.

Session id: cron:our-pr-ci-monitor:20260804-233000

Resolves the one conflict in src/Functions/array/FunctionsMapMiscellaneous.cpp.

Both sides gave FunctionMapToArrayAdapter a context-taking constructor: this
branch to thread a context into the Impl (so the erased-element equality path
can resolve `equals` with the query's comparison settings), and master's
80b20d4 to read `enable_lazy_columns_replication`. The resolution keeps
both initializers in declaration order.

Master's change also generalized FunctionWithLowCardinalityFastPath: `create`
now forwards a context when the base accepts one, and its default constructor
is constrained with `requires std::is_default_constructible_v<Base>`. That
supersedes the `FunctionMapToArrayAdapter() = default` this branch had added
purely so the mixin could default-construct its base, so the defaulted
constructor is dropped. Keeping it would have left master's new
enable_lazy_columns_replication member uninitialized on that path.
Comment thread src/Functions/array/arrayIndex.h Resolved
…e plain

groupRowsByAlternative required the array element type to have an erased path,
so it declined whenever the elements were plain and only the needle was erased.
executeErasedEquality routes such a pair through this machinery too, because the
common type is Dynamic or Variant, so the whole-block attempt could decline on a
needle column holding several alternatives and the call fell through to
executeGeneric. That cast both sides to Dynamic and answered 0, which made a row
whose own pair compares cleanly depend on which rows shared its block.

Either side may now supply the grouping key, and a side that erases nothing
contributes the same key half for every row.

Measured on has/indexOf/countEqual over Array(UInt64) against a Dynamic needle:
before, 4 of 7 rows answered differently depending on the block partition; after,
each row has one answer across every partition, and the values agree with the
same comparisons written over plain non-erased types.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Confirmed, and fixed in 2caa7a6.

Your repro reproduces exactly as described. On the previous head, row 0 answered 1
read alone and 0 in the two-row block. The mechanism is the one you named:
groupRowsByAlternative began with findErasedPath(*element_type) and returned nothing
when it found no path, so a plain Array(UInt64) element type declined the row-group
fallback even though the Dynamic needle is what varies. Either side may now supply the
grouping key, and a side that erases nothing contributes the same key half for every row.

Worth recording that master is not block-dependent here, it is uniformly wrong: it answers
0 for every row. So this was the fix being incomplete on its own new path rather than a
regression against master, which is why the isolated row already answered 1.

Scope of the defect, measured over 12 block partitions of a 7-row table (one block,
max_block_size 1/2/3/5, reversed order, pairs, each row alone):

rows with more than one answer
previous head 4 of 7
2caa7a6 0 of 7

Every answer that changed matches the same comparison written over plain non-erased types,
which takes the ordinary dispatch, and that oracle returns identical values on the previous
head, this head and a master snapshot. Controls unchanged between the two heads: plain
elements with a plain needle, erased elements with a plain needle, erasure on both sides,
a String needle, and empty-array rows. indexOf and countEqual move with has.

04706 gains the plain-element cells, including a Nullable(UInt64) element variant so the
null maps are folded on the grouped path. With the new reference the previous binary fails
those cells and this one passes; the two blocks and row alone arms agree on both, which
is correct since neither was ever block-dependent.

One note on the shape of the fix: my first draft also declined when neither side was erased.
A mutation arm that disabled that branch was byte-identical across the whole matrix, and
tryGetLeastSupertype resolves to LeastSupertypeOnError::Null, so an erasing common type
must come from a raw side and the branch was unreachable. I removed it rather than ship dead
code.

The Array(Tuple(Dynamic, Dynamic)) first-erased-leaf grouping case is tracked separately;
it is about which leaf inside an erased element is keyed, not a plain element with an erased
needle.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger for 2caa7a6

No failures to own on this run.

Run carries real coverage. GitHub: 177 checks, 160 success, 17 skipped, 0 failures. Praktika:
top-level OK, 159 OK, 18 skipped with a reason on every one, and 0 dropped jobs; Config Workflow and Finish Workflow are both OK.

The skips are all reasoned rather than dropped work: not labeled with 'pr-performance' (6),
reused from cache (3), no integration tests updates (3), Not affected by the changed files and not required (2), not labeled with 'ci-toolchain' (2), plus two singletons.

Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=113208&sha=2caa7a6d45119177d1eaa20fa8b4032f37579482&name_0=PR

Session id: cron:our-pr-ci-monitor:20260814-150000

@groeneai groeneai added the groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work label Aug 19, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-regular-function Regular scalar functions: string processing, data conversion, arithmetic, math, comparison, condi... label Sep 4, 2026
Master moved the same constructor seam in FunctionArrayIndex: create() now reads
type_json_skip_null_typed_paths and hands it to a bool constructor, while this
branch passes the context so the erased-equality path can build an `equals`
resolver. Resolved by keeping a single context constructor that derives both -
the resolver as before, and skip_null_typed_paths from the same context, guarded
because a null context is already documented as benign here. The member gets an
in-class initializer because this branch keeps a defaulted default constructor
where master relied on the bool parameter's default argument.

Master's changes to the other touched files are kept as-is: the
stringFamilyPairIsNotEqualityEquivalent guard in ArrayExistsToHasPass, the
float-zero needle guard and the JSON typed-path handling in arrayIndex.h.
`notHas` arrived on master while this branch was open. It builds the internal
`has` resolver on every call, and on this branch that factory needs a context so
the erased-element comparison can be resolved with the query's settings. The
resolver is now built once in create(), the same way the `not` resolver already
was, and held next to it.
executeErasedEqualityConstArray materialized the array for the batch it was
about to process and handed that copy to the fallback when the row-group attempt
declined. The fallback compares a constant array's elements as Fields and a
materialized array's as columns, so a row answered differently depending on how
many rows shared its block: with a 251-element mixed constant array and a UInt8
needle, has() answered 1 over 100 rows and 0 over 300.

The batch now hands the fallback the constant array resized to the batch, which
also drops the replicated copy. The test asserts that the two row counts agree,
and pins notHas as the negation of has, which it now also is under
type_json_skip_null_typed_paths since it resolves has through the context-aware
factory.
@groeneai

groeneai commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator Author

Merged master at 5b66ce4

Master had moved the same constructor seam in FunctionArrayIndex: create() now reads
type_json_skip_null_typed_paths and passes it to a bool constructor, while this branch passes the
context so the erased-equality path can build an equals resolver. Resolved by keeping one context
constructor that derives both, so master's JSON behaviour stays live: with the setting on, a NULL typed
path answers has(json, 'a') = 0 and = 1 with it off, and 04326_json_skip_null_typed_paths passes.

Two things the textual merge could not see:

  • notHas arrived meanwhile and builds an internal has on every call, which on this branch needs a
    context, so it now takes the resolver from create() next to the not one. That also makes it the
    negation it documents: on master, under type_json_skip_null_typed_paths = 1, a NULL typed path gives
    has 0 and notHas 0 as well (measured on today's master), now 0 and 1. Disclosed in the description
    and pinned by a test cell.
  • Re-reviewing the merged tree found a wrong-results bug in my own constant-array batching: when a batch
    declined the row-group path it handed the fallback the materialized copy of the array, and the fallback
    compares a constant array's elements as Fields but a materialized one's as columns. With a 251-element
    mixed constant Array(Dynamic) and a UInt8 needle, has answered 1 over 100 rows and 0 over 300;
    master answers 1 for both. The batch now hands the fallback the constant, which also drops the
    replicated copy. 04706 asserts the two row counts agree.

No other behaviour change in this push. 04706 is 5/5 with randomization on; 04338, 04326, the three
notHas tests and 02576_rewrite_array_exists_to_has all pass.

Session id: cron:clickhouse-maint-slot-20:20260905-141049

Comment thread src/Functions/array/arrayIndex.h Resolved
…er's

`executeErasedEqualityPerRowGroup` asks the pre-existing dispatch for the rows its
grouping leaves undecided, and it materialized every argument before filtering it
down to those rows. For a constant array that changes the answer: the pre-existing
dispatch compares a constant array's elements as `Field`s and a materialized one's
as columns, and for a type-erasing element the two do not agree. A row's answer
therefore depended on which other rows shared its block.

    CREATE TABLE t (id UInt8, n Dynamic(max_types = 1)) ENGINE = Memory;
    INSERT INTO t VALUES (0, 2::UInt64), (1, 1::UInt8);
    SELECT has([1::UInt64::Dynamic], n) FROM t WHERE id = 1;    -- 1
    SELECT id, has([1::UInt64::Dynamic], n) FROM t ORDER BY id; -- row 1 gave 0

`max_types = 1` leaves row 1's `UInt8` in the shared variant, so the grouping
decides row 0 and declines row 1. `n = 1::UInt64::Dynamic` is 1 for that row and
master answers 1 for both readings, so the two-row block was a regression this
branch introduced.

`ColumnConst::filter` already returns a `ColumnConst`, so dropping the
`convertToFullColumnIfConst` before the filter is the whole fix. The batched
constant-array arm then needs no special case of its own: it hands the grouping
the same constant instead of the flattened copy, which stays where it is used.

The mixed-alternative counts move with it. A needle whose alternative the
comparison cannot relate to the elements at all is declined, and a declined row
now keeps the existing dispatch's `Field`-based answer at every block size:
300/150/150, where this branch gave 150/150/0 above a block size of one and
300/150/150 at one. Master gives 300/150/150 throughout.

Co-Authored-By: Claude Opus 5 <[email protected]>
Comment thread src/Functions/array/arrayIndex.h Resolved
groeneai and others added 2 commits September 5, 2026 21:33
`hasContainer` walks bare `Tuple` wrappers only, so a container reached through a
`Nullable(Tuple(...))` wrapper is not held back by the barrier: `tryPeelErased` peels
the alternative, `evaluateElementwiseEquality` decomposes it, and `equals` decides the
leaf. The docstring said "any chain of Tuple wrappers", which reads as though the walk
saw through `Nullable` the way `hasTypeErasingElement` does.

The asymmetry is deliberate. A top-level `Nullable` alternative cannot occur at all,
since `DataTypeVariant` rejects `Nullable` and `LowCardinality(Nullable)`, so reaching
this shape needs an outer bare `Tuple` and `enable_nullable_tuple_type = 1`:

    SET enable_nullable_tuple_type = 1;
    CREATE TABLE t (v Array(Dynamic), n Dynamic) ENGINE = Memory;
    INSERT INTO t SELECT [CAST(tuple(CAST(tuple([1::UInt64]), 'Nullable(Tuple(Array(UInt64)))')), 'Dynamic')],
                          CAST(tuple(CAST(tuple([1::UInt8]),  'Nullable(Tuple(Array(UInt8)))')),  'Dynamic');
    SELECT has(v, n), arrayExists(x -> x = n, v) FROM t;  -- 1, 1

For those rows `equals` answers 1 across element widths, and so does the constant-array
`Field` comparison, while the materialized `compareAt` path answers 0. Stopping at the
hidden container would therefore answer 0 for a materialized array and 1 for a constant
one, and would contradict `=` on the same pair in the same row.

Pins the shape in `04706` for `Array` and `Map` payloads over the materialized,
single-row and constant-array regimes, each paired with that oracle.

Co-Authored-By: Claude Opus 5 <[email protected]>
… them

The cells pairing a constant array against varying needles, and the notHas cell
sharing their carrier, built the array with
arrayMap(x -> x::UInt64::Dynamic, range(...)). The old analyzer does not
constant-fold a call taking a lambda, so under enable_analyzer = 0 the array
arrived materialized (isConstant measured 0 there, 1 with the analyzer on) and
the cells silently measured the materialized path instead of the constant one
they name. The reference, written for the constant path, cannot hold for both.

That failed 3 of 3 reruns on Stateless tests (amd_llvm_coverage, old analyzer,
s3 storage, DBReplicated, parallel, 1/3) at deeee9f: mixed needles gave
150 150 0 for 300 150 150, the batch-count cell 0 0 0 0 for 1 1 2 1, and notHas
0 1 for 1 0.

CAST(range(0::UInt64, 1000::UInt64, N::UInt64) AS Array(Dynamic)) is the same
value, keeps the elements' alternative at UInt64, and folds under both
analyzers, so the constant path stays covered on the old analyzer instead of
being pinned away from it. The reference is unchanged.

The invariants the cells assert already held under the old analyzer: the three
arms agreed with each other, the one-batch and several-batch counts agreed, and
notHas stayed the negation of has. Only the path the cells reached differed.
@groeneai

groeneai commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 0a1e15b

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
Upgrade check (amd_release) / Error message in clickhouse-server.log (see upgrade_error_messages.txt) background mutation retry loop: MutatePlainMergeTreeTask: Code: 47 ... Unknown expression identifier 'b'. Maybe you meant: ['a']. In scope b, b. (UNKNOWN_IDENTIFIER), re-logged about once a second by MergeTreeBackgroundExecutor and then grepped out of the server log by the check. Not caused by this PR: the diff here is array membership over a type-erased element, unrelated to a mutation expression resolving a column the table no longer has #115962 (mine, open)
Mergeable Check, PR praktika aggregators, red only because of the row above #115962 (mine, open)

Same signature over the last 30 days: 35 rows on 32 distinct PRs, 0 on master. Of the 170 check runs at this head 151 succeeded, 18 were skipped as not applicable and 1 failed (the row above); Style check and CH Inc sync are green.

Session id: cron:our-pr-ci-monitor:20260906-100111

Master's ClickHouse#117313 landed in the same file and for the same class of defect: it
brought `has`/`indexOf`/`countEqual` closer to `equals` for native numbers
(`accurate::equalsOp` replacing the hand-rolled comparisons) and for date/time
types that count different units (`executeDifferentDateTimeUnits`, hooked at the
top of `executeArrayImpl`). Both of its insertion points sit right where this
branch adds its own erased-element dispatch, which is why the textual merge
could not place them.

Resolved as a union, with master's block kept where master put it: the
date/time arm stays first after `allowArguments`, this branch's `executeArray` /
`executeArrayAfterErasedEquality` / `tryGetDecayedCommonType` and the
erased-equality machinery follow, and both new includes are kept. The two arms
do not overlap: `dateTimeUnitOf` answers `NotDateTime` for an erased type, so
master's arm declines on every shape this branch handles, and the undecided-row
fallback still reaches it through `executeArrayAfterErasedEquality`.
…rased

`has`, `indexOf` and `countEqual` answered 0 for an erased needle over an
`Array(LowCardinality(T))` while `=` answers 1:

    has(materialize(CAST(['a'], 'Array(LowCardinality(String))')), 'a'::Dynamic)      -> 0
    has(materialize(CAST(['V0'], 'Array(LowCardinality(String))')), toFixedString('V0', 3)::Dynamic) -> 0

with the `arrayExists` oracle answering 1 in both cases, and `indexOf` and `countEqual` agreeing
with `has` rather than with the oracle.

The erased-equality arm declined a LowCardinality element type and left those rows to the dictionary
path, which decides them by the bytes of the needle cast to the dictionary type. That is not the
comparison `=` performs: a `FixedString` needle casts to three bytes where the element holds two,
although the two meet as `String` where the padding is trimmed back off, and
`targetTypeRepresentsValue`, which guards that cast, asks for the meeting type as
`makeNullable(...)`, which an erased type cannot be inside, so it reports even a lossless cast as
having lost the value.

The reason the arm declined was that the dictionary path answered a NULL needle from dictionary slot
0 whether or not that slot is the null one, which equality has no equivalent for. Master has since
declined a NULL needle unless the dictionary can hold one (`fc180a05603c9`), so that answer now
agrees with `=`, and the arm no longer has anything to preserve by standing aside.

The other sign is unchanged, and is now pinned: no common type brings a number and a `String`
element together, so `equals` rejects that pair and
`has(materialize(CAST(['1'], 'Array(LowCardinality(String))')), 1::UInt64::Dynamic)` stays 0 instead
of answering from the needle's spelling as a string. A needle that erases nothing also keeps the
dictionary path, since the arm only takes a pair whose common type erases something.

Two expectations in `04706` move because master changed them, not this branch: after
`fc180a05603c9` a NULL needle no longer matches a dictionary's default slot, so the control cell and
the `mapContainsKey` cell agree with `=` as well.

`enable_analyzer = 1` is dropped from the two rewrite arms and the old analyzer is out of the
comments: the setting is obsolete since v26.9 and can no longer be turned off.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Merged master at 02f33af

The branch was conflicting. Master's #117313 had landed in arrayIndex.h for the same class of
defect (bringing has/indexOf/countEqual closer to equals for native numbers and for date and
time types counting different units), and both of its insertion points sit exactly where this branch
adds its own erased-element dispatch, which is why the textual merge could not place them. Resolved
as a union, with master's date/time arm kept where master put it. The two arms do not overlap:
dateTimeUnitOf answers NotDateTime for an erased type, so master's arm declines on every shape
this branch handles, and the undecided-row fallback still reaches it.

Two things the merge could not see, both found by running the test rather than reading the diff:

1. A LowCardinality element with an erased needle no longer agrees with =. This branch declined
a LowCardinality element type and left those rows to the dictionary path, which decides them by the
bytes of the needle cast to the dictionary type. That is not what = compares, and master's
fc180a05603c9 then tightened the dictionary's representability guard, so
has(materialize(CAST(['a'], 'Array(LowCardinality(String))')), 'a'::Dynamic) answered 0 against an
oracle of 1, and so did indexOf and countEqual. The reason for that decline was the dictionary
path answering a NULL needle from slot 0 whether or not it is the null slot; fc180a05603c9 fixed
that too, so the decline had nothing left to preserve and is gone. The other sign is now pinned as
well: no common type brings a number and a String element together, so equals rejects that pair
and has(materialize(CAST(['1'], 'Array(LowCardinality(String))')), 1::UInt64::Dynamic) stays 0
rather than answering from the needle's spelling as a string. A needle that erases nothing still
takes the dictionary path.

2. The old analyzer is gone from master, so enable_analyzer = 1 is dropped from the two rewrite
arms and out of the comments.

Two 04706 expectations moved because master changed them: after fc180a05603c9 a NULL needle no
longer matches a dictionary's default slot, so the control cell and the mapContainsKey cell agree
with = as well.

Validation (Build ID asserted on every server before every verdict): 04706 plus master's own
05059_array_index_accurate_numeric_comparison and 04881_low_cardinality_default_value_needle,
plus 04338, 04549, 02576, 04326 and 00345: 8/8 OK. A/B against master over 775 stateless
tests in the membership, erased-type, LowCardinality, Dynamic, Variant and accurate-cast families,
same list and same configuration on both arms: 0 tests fail only on this branch; the only tests
failing only on master are the two this PR fixes. Style: 14/15 legs pass locally, the one failure
being settings_changes_history, which cannot run outside CI and which this change does not touch.

One disclosure while measuring: the skip-index divergence already noted for Array(String)
(use_skip_indexes=1 prunes a row the predicate matches when the needle is an erased FixedString)
measures identically for Array(LowCardinality(String)). Same mechanism, same open question about
whether the index should mirror the peeled comparison or decline an erased needle; it is not a new
one.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 02f33af

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) and (arm_binary, parallel) / 05227_storage_settings_unknown_name Not from this PR, which touches array membership over Array(Dynamic). Trunk-wide: the test is mine (added by merged #120898) and three of its expected lines pinned, through a full SHOW CREATE TABLE echo, where an accepted name = DEFAULT query-setting reset is stored; #118423 deliberately moved that. Deterministic, not randomization (the job's own diagnosis reproduces it with and without randomized settings), 801 CIDB rows over 76 pull requests since 05:31Z today, 257 of them on true master #121163 (mine, open)
Finish Workflow / Post Hooks / new_tests_check.py Cascade of the row above: both Bugfix validation (functional tests, *) jobs are recorded DROPPED (Dropped due to previous failure [Stateless tests (amd_debug, parallel)]) and the two integration legs are SKIPPED, no integration tests updates, so none could report OK or XFAIL #121163 (mine, open)
Build profile diff Not from this PR. The job's own read of the CI logs cluster fails, so no binary comparison is produced at all: 332 of 830 runs in 24 hours end error, across 361 distinct pull requests #118708 (mine, open) and #121048 (external, open)

Mergeable Check and PR are rollups of the rows above.

Session id: cron:our-pr-ci-monitor:20260920-160237


const ColumnVariant * needle_variant = nullptr;
ColumnPtr needle_holder;
if (auto needle_path = findErasedPath(*needle_type))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

groupRowsByAlternative still keys the needle side off only the first erased leaf it finds. For a needle like Tuple(Dynamic, Dynamic), two rows that agree on the first field's alternative but differ on the second are still put into one group, so evaluateElementwiseEquality declines on that whole group and every row in it falls back to the old compareAt path.

Repro:

CREATE TABLE t
(
    id UInt8,
    v Array(Tuple(UInt64, UInt64)),
    n Tuple(Dynamic, Dynamic)
)
ENGINE = Memory;

INSERT INTO t VALUES
    (0, [(1::UInt64, 2::UInt64)], (1::UInt8, 2::UInt8)),
    (1, [(1::UInt64, 3::UInt64)], (1::UInt8, 'x'));

SELECT id, has(v, n) FROM t ORDER BY id;

Row 0 should stay 1, but in the two-row block it is forced through the fallback because the grouping key ignores the second erased needle field. The grouping key needs to cover all erased tuple positions on the needle side, not only the first path returned by findErasedPath.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - b0b255a

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
Upgrade check (amd_release) / Error message in clickhouse-server.log infra, not from this diff: Code: 40 ... Checksums of parts don't match in MergeFromLogEntryTask on part all_0_7_2_2, because the check's restart re-draws default_compression_codec and the post-restart merge is then not byte-identical to the replica's #121249 (mine, open)
Performance Comparison (arm_release, master_head, 1/6) / order_by_read_in_order #1 slower verdict against the master_head reference, not from this diff: the same query carries it on 210 distinct PRs and 18 master runs in 7d #121090 (mine, open)
Performance Comparison (arm_release, master_head, 3/6) / join_convert_outer_to_inner #1 same shard-verdict gate: 9 distinct PRs and 3 master runs in 7d, and this diff touches neither joins nor ORDER BY. 173 distinct PRs took a red arm_release master_head shard on a slower verdict in the last 24h #121090 (mine, open)

The red Mergeable Check and PR statuses are praktika rollups: they carry no failure of
their own and go green when the three rows above do.

This head is @alexey-milovidov's master merge b0b255a9 of 2026-09-20T17:28:46Z, not a push of
mine; the dedupped check-run census is 170 green or skipped against the three reds above, and
CH Inc sync is green.

Session id: cron:our-pr-ci-monitor:20260921-000159

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-regular-function Regular scalar functions: string processing, data conversion, arithmetic, math, comparison, condi... groeneai-origin-follow-up PR origin: groeneai's own out-of-scope finding during its PR work pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants