Skip to content

Fix JSON_EXISTS/JSON_VALUE/JSON_QUERY LOGICAL_ERROR on Dynamic input with LowCardinality path elements - #109944

Merged
Avogar merged 4 commits into
ClickHouse:masterfrom
groeneai:fix-json-dynamic-multipath-107585
Jul 24, 2026
Merged

Avogar merged 4 commits into
ClickHouse:masterfrom
groeneai:fix-json-dynamic-multipath-107585

Conversation

@groeneai

@groeneai groeneai commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Description

Closes: #110345 (single-element tuple(toLowCardinality('$.a')) variant, same family).
Related: #106877 (introduced this on master), #106461.

Master-only regression: #106877 merged into master on 2026-07-09, after the latest published release lines, so this is not misbehavior in an official stable release.

Found by the AST fuzzer (STID 4811-66fc). Reproducer:

SELECT JSON_EXISTS(CAST('{"a": 1, "b": 0}', 'Dynamic'), tuple('$.a', toLowCardinality('$.b')));

aborted in debug/sanitizer builds with:

Logical error: 'Cannot convert nested result of function JSON_EXISTS with type UInt8 to the expected result type Tuple(UInt8, UInt8): Illegal type Tuple(UInt8, UInt8) of argument of function toUInt8'

CI report (Stress test amd_tsan): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=107585&sha=d74d9153a382&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29

Root cause. #106877 made JSON_* functions declare a concrete result type over Dynamic arguments via getReturnTypeForDynamic. On the normal (non-Dynamic) path the framework strips Nullable/LowCardinality from arguments before getReturnTypeImpl, but on the Dynamic path the adaptor has not stripped them yet, so raw wrapped path elements (e.g. LowCardinality(String), or a Nullable(Tuple(...)) from a scalar subquery) were not recognized as multi-path. The declared type collapsed to the scalar case while actual execution (on stripped arguments) produced the multi-path Tuple(UInt8, ...). FunctionDynamicAdaptor could not reconcile declared vs executed and aborted with LOGICAL_ERROR.

Fix. Normalize the path argument (removeNullable(recursiveRemoveLowCardinality(...)), mirroring exactly what the framework strips before execution) inside getReturnTypeForDynamic for each JSON_* impl, so the declared Dynamic return type matches what execution produces. The shared isMultiPathType/buildReturnType helpers operate on raw types, matching MultiPathExecutor::buildPlan. Regression coverage in 04325_sql_json_functions_with_dynamic_input (literal tuple, LowCardinality leaves, top-level scalar-subquery Nullable(Tuple), nested-wrapped rejected consistently on both paths, JSON_VALUE/JSON_QUERY, Array).

Version info

  • Merged into: 26.8.1.85 (included in 26.8 and later)

@groeneai

groeneai commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. SELECT JSON_EXISTS(CAST('{"a":1,"b":0}','Dynamic'), tuple('$.a', toLowCardinality('$.b'))) aborts every time (exit 134) on master; returns (1,1) with the fix.
b Root cause explained? #106877 declares concrete result types over Dynamic via getReturnTypeForDefaultImplementationForDynamic(const DataTypes&), which sees RAW arg types. The normal path strips LowCardinality before getReturnTypeImpl; the Dynamic path does not, so isMultiPathType/buildReturnType tested leaves with isString and did not recognize a LowCardinality(String) path element -> declared scalar Nullable(UInt8) vs executed multi-path Tuple(UInt8,UInt8) -> adaptor cannot reconcile -> LOGICAL_ERROR.
c Fix matches root cause? Yes. removeLowCardinality on leaves in isMultiPathType/buildReturnType makes the Dynamic path recognize LowCardinality(String) leaves exactly as the normal (framework-stripped) path.
d Test intent preserved / new tests added? New cases appended to 04325_sql_json_functions_with_dynamic_input (type + value assertions for Tuple/Array/single-path with LowCardinality elements, all three functions). No assertion weakened.
e Demonstrated both directions? Yes. Test aborts (exit 134) without the fix, passes with it (A/B on identical source via patch).
f Fix general, not a narrow patch? Covers all three JSON functions (isMultiPathType/buildReturnType are shared helpers) and all leaf positions (Tuple, nested, Array).
g Generalizes across type wrappers / inputs? Matrix verified over Dynamic: Tuple(String,LC(String)), Tuple(LC,LC), Array(LC(String)), single LC(String) — each now matches the normal String path; plain (non-LC) paths unchanged.
h Backward compatible? Yes. Only corrects the declared type on the Dynamic path to match the executed type; no format/setting/default change. #106877 itself is not yet in a stable release.
i Invariants preserved? Yes. Restores the adaptor's invariant that the declared result type equals the executed nested result type on Dynamic arguments.

Session id: cron:clickhouse-worker-slot-5:20260709-221300

@groeneai

groeneai commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator Author

cc @Avogar — this fixes a LOGICAL_ERROR introduced by #106877 (JSON_* return concrete types over Dynamic) when a multi-path argument contains a LowCardinality(String) element. The Dynamic result-type path sees raw arg types, so isMultiPathType/buildReturnType missed LC leaves; fix strips LowCardinality on leaves to match the normal path.

@Avogar Avogar self-assigned this Jul 9, 2026
@PedroTadim PedroTadim added the can be tested Allows running workflows for external contributors label Jul 10, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [367cd4b]

Summary: ❌

job_name test_name status info comment
Integration tests (arm_binary, distributed plan, 4/4) FAIL
test_prometheus_before_tables/test.py::test_prometheus_with_handlers_starts_after_tables_are_loaded FAIL cidb, issue ISSUE CREATED
Upgrade check (amd_release) FAIL
Changed settings are not reflected in the settings changes history (see changed_settings.txt) FAIL cidb IGNORED
New settings are not reflected in settings changes history (see new_settings.txt) FAIL cidb IGNORED
Error message in clickhouse-server.log (see upgrade_error_messages.txt) FAIL cidb IGNORED

AI Review

Summary

This PR fixes the Dynamic-only return-type mismatch in JSON_EXISTS, JSON_VALUE, and JSON_QUERY by normalizing the path argument in getReturnTypeForDynamic the same way the normal execution path strips wrappers before executeImpl. On the current 367cd4bf head, that keeps declaration and execution aligned for the LowCardinality and top-level Nullable(Tuple/Array) cases that previously triggered LOGICAL_ERROR, and the added 04325 coverage exercises the original repros plus the previously reported nested wrapped-path edge case. I did not find any new actionable correctness or metadata issues in the current diff.

Final Verdict

✅ No new findings. The two earlier bot threads are addressed in the current code and both are now resolved.

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Jul 10, 2026
@groeneai
groeneai force-pushed the fix-json-dynamic-multipath-107585 branch from 0ad3249 to d02f0d4 Compare July 10, 2026 08:55
@groeneai

Copy link
Copy Markdown
Collaborator Author

Follow-up push (head d02f0d4) generalizes the fix: the earlier version only stripped LowCardinality on leaves and still aborted when the multi-path argument arrived wrapped in Nullable, which is the common case for a scalar subquery (SELECT tuple('$.a','$.b')) (type Nullable(Tuple(String,String))).

Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. SELECT JSON_EXISTS(CAST('{"a":1,"b":2}','Dynamic'), (SELECT tuple('$.a','$.b$.b$.b$.b'))) and SELECT DISTINCT JSON_EXISTS('2299-12-31'::Dynamic, (SELECT tuple('$.b'))) abort every time on the pre-fix binary.
b Root cause explained? The Dynamic result-type path (getReturnTypeForDefaultImplementationForDynamic) receives raw arg types, whereas the normal path strips Nullable/LowCardinality before getReturnTypeImpl. A scalar subquery wraps the path tuple in Nullable; isMultiPathType(Nullable(Tuple)) returned false, so the Dynamic path declared a scalar UInt8/String while nested execution (on the stripped arg) produced Tuple(UInt8,...) → declared vs executed mismatch → adaptor LOGICAL_ERROR.
c Fix matches root cause? Yes. unwrapPathType strips Nullable+LowCardinality (both nesting orders) in isMultiPathType/buildReturnType, so the Dynamic path recognizes the same multi-path structure the normal path does and declares the matching type.
d Test intent preserved / new tests added? Existing assertions unchanged. Added a new section to 04325 covering scalar-subquery Nullable(Tuple)/Nullable(Array), single- and multi-element, for all three functions.
e Demonstrated in both directions? Yes. Baseline (build 233e75) aborts (RC 134) on the two repros; fixed binary (build e34a42) returns (1,0) / (0). Full 8-case input matrix passes.
f Fix is general, not a narrow patch? Yes. Both helpers (isMultiPathType, buildReturnType) and their recursive leaf checks are normalized through the same unwrapPathType; covers Tuple and Array paths and both wrapper nesting orders.
g Fix generalizes across inputs (params, datatypes, wrappers)? Verified matrix: literal tuple, LowCardinality leaf, scalar-subquery Nullable(Tuple) (1- and 2-element), scalar-subquery Nullable(Array), JSON_VALUE/JSON_QUERY, single-string path — all reconcile.
h Backward compatible? Yes. Return-type-only correction on the Dynamic path; no setting default, on-disk/wire format, or behavior change for existing (non-aborting) queries.
i Invariants and contracts preserved? Yes. Upholds the FunctionDynamicAdaptor contract that the declared return type equals the nested-execution result type. No column-structure, ownership, or concurrency invariant touched.

Session id: cron:clickhouse-worker-slot-2:20260710-083600

Comment thread src/Functions/FunctionSQLJSON.h Resolved
…path arg

STID 4811-66fc (AST fuzzer). ClickHouse#106877 declared concrete result types over
Dynamic input via getReturnTypeForDefaultImplementationForDynamic, but the
Dynamic path received the raw path-argument type while the normal path only
sees the type after the framework has stripped wrappers.

The framework normalizes the second argument before executeImpl/buildPlan
exactly one way: LowCardinality is removed recursively
(defaultImplementationForLowCardinalityColumns), while Nullable is removed
only at the top level (createBlockWithNestedColumns keeps any Nullable nested
inside a Tuple/Array). Mirror that in the return-type helpers via
normalizePathArgument, and recurse with the same bare-String/Tuple/Array
acceptance the runtime plan uses, so the declared return type always agrees
with what the plan accepts and produces. Nested wrapped path nodes (e.g. a
scalar subquery producing Nullable(Tuple(...)) nested inside an outer tuple)
are rejected as non-path types, identically on the normal and Dynamic paths.

Related: ClickHouse#106877, ClickHouse#106461.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai
groeneai force-pushed the fix-json-dynamic-multipath-107585 branch from d02f0d4 to 73f3a77 Compare July 10, 2026 09:53
@groeneai

Copy link
Copy Markdown
Collaborator Author

Good catch. Fixed in 73f3a77 by taking your second option: the return-type helpers now strip wrappers exactly the way the framework strips them before executeImpl/buildPlan, instead of unwrapping every nested node.

Concretely, normalizePathArgument applies recursiveRemoveLowCardinality (matches defaultImplementationForLowCardinalityColumns, which strips LowCardinality recursively) then removeNullable at the top level only (matches createBlockWithNestedColumns, which leaves any Nullable nested inside a Tuple/Array intact). It is applied once at the entry (isMultiPathType/buildReturnType); the recursion then accepts only bare String/Tuple/Array, the same set buildPlan accepts. So a nested wrapped node such as Nullable(Tuple(...)) is no longer classified as multi-path, and declaration == execution on every path.

Your repro now behaves identically on the Dynamic and the normal path:

SELECT JSON_EXISTS('{"a": 1, "b": 2, "c": 3}'::Dynamic, tuple((SELECT tuple('$.a', '$.b')), '$.c'));
-- ILLEGAL_TYPE_OF_ARGUMENT: ... illegal type: Tuple(Nullable(Tuple(String, String)), String)
SELECT JSON_EXISTS('{"a": 1, "b": 2, "c": 3}',           tuple((SELECT tuple('$.a', '$.b')), '$.c'));
-- ILLEGAL_TYPE_OF_ARGUMENT: ... illegal type: Tuple(Nullable(Tuple(String, String)), String)

Regression coverage added to 04325_sql_json_functions_with_dynamic_input: the nested wrapped case (JSON_EXISTS/JSON_VALUE, both paths) as { serverError ILLEGAL_TYPE_OF_ARGUMENT }, plus a nested plain-Array path node which stays valid (a scalar Array subquery is not Nullable). Verified the previously-fixed top-level cases (literal tuple, LowCardinality leaves, top-level scalar-subquery Nullable(Tuple), single-element subquery, Array paths) and deeply-nested valid structures still pass.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — 73f3a77

Every failure below has an owner: a fixing PR (ours 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
Stress test (amd_msan) / Hung check failed, possible deadlock found deadlock #108212 (ours, merged) / #105905 (ours, merged)
CH Inc sync — CH Inc sync (private, not actionable)

Not PR-caused: this PR only touches src/Functions/FunctionSQLJSON.h + the 04325 regression test. The msan hung-check is the chronic stress-deadlock family (323 hits / 206 unrelated PRs / 82 master in 30d), unrelated to the JSON-functions fix.

Session id: cron:our-pr-ci-monitor:20260710-140000

@groeneai

Copy link
Copy Markdown
Collaborator Author

@Avogar could you take a look when you have a moment? This fixes the master-wide JSON_EXISTS Tuple(UInt8, UInt8) LOGICAL_ERROR (STID 4811-66fc) from #106877, which alexey-milovidov flagged as blocking other PRs (#110074). CI is clean; the bot's nested-wrapped-path review is addressed at head 73f3a77.

…regression

SELECT JSON_EXISTS(CAST('{"a":1}','Dynamic'), tuple(toLowCardinality('$.a')))
is the exact fuzzer-minimized repro from ClickHouse#110345, the single-element case of
the LowCardinality tuple-path family already fixed by normalizePathArgument
(recursiveRemoveLowCardinality). Covered here for direct traceability.

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

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — c3d6927

Every failure below has an owner: a fixing PR (ours or external). Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Integration tests (amd_tsan, 3/6) / test_replicated_database::test_replicated_table_structure_alter flaky #110030 (ours, open)
CH Inc sync - CH Inc sync (private, not actionable by us)

The IT failure is the chronic flaky test_replicated_table_structure_alter (280 PRs / 527 hits / 58 master in 30d), unrelated to this PR's diff (FunctionSQLJSON.h + the 04325 regression test); it is owned by our open fixing PR #110030. Finish Workflow and Mergeable Check are green.

Session id: cron:our-pr-ci-monitor:20260715-010000

@Avogar Avogar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The fix is in the wrong place. We should fix it in getReturnTypeForDynamic, smth like:

static DataTypePtr getReturnTypeForDynamic(const DataTypes & arguments, bool)
{
    if (arguments.size() >= 2)
    {
       /// The SQL JSON functions use default implementation for Nullable/LowCardinality, but in case of Dynamic adaptor they are not executed yet, so we need to remove Nullable and LowCardinality here.
        auto path = removeNullable(recursiveRemoveLowCardinality(arguments[1]));
        if (isMultiPathType(path))
            return buildReturnType(path, std::make_shared<DataTypeUInt8>());
    }
    return std::make_shared<DataTypeUInt8>();
}

But with better phrased comment

…eForDynamic

Per review: confine the wrapper stripping to the Dynamic return-type helpers
(getReturnTypeForDynamic), where the framework has not yet removed
Nullable/LowCardinality, instead of altering the shared isMultiPathType/
buildReturnType helpers. The shared helpers now operate on raw types, matching
MultiPathExecutor::buildPlan and the normal (non-Dynamic) path where the
framework strips wrappers before we are called.

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

Copy link
Copy Markdown
Collaborator Author

Done in 1f36c82. Moved the removeNullable(recursiveRemoveLowCardinality(...)) stripping into each impl's getReturnTypeForDynamic (the Dynamic path, where the framework has not yet stripped the wrappers) and reverted isMultiPathType/buildReturnType to operate on raw types, matching MultiPathExecutor::buildPlan and the normal path.

Verified declared == executed across the input matrix on both paths (literal tuple, LC leaves, top-level scalar-subquery Nullable(Tuple), Array, JSON_VALUE/JSON_QUERY); the bot's nested-wrapped tuple((SELECT tuple('$.a','$.b')), '$.c') still throws ILLEGAL_TYPE_OF_ARGUMENT identically on Dynamic and normal input.

@Avogar Avogar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Changes isMultiPathType -> isMultiPathTypeImple and buildReturnType -> buildReturnTypeImpl now seems not needed, revert them.

Also, clean up boated comments, they are too big and mostly useless

@groeneai

Copy link
Copy Markdown
Collaborator Author

Agreed on both. Reverting the isMultiPathType/buildReturnType *Impl split (the rename was only scaffolding for the earlier shared-helper approach; after moving the stripping into getReturnTypeForDynamic the originals are unchanged from master) and trimming the comments down to the essentials. Pushing shortly.

Per review: isMultiPathType/buildReturnType no longer need the *Impl split
now that the Nullable/LowCardinality stripping lives in getReturnTypeForDynamic
via normalizeDynamicPathArgument, so restore the originals unchanged from
master. Trim the oversized comments.

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

Copy link
Copy Markdown
Collaborator Author

Done in 367cd4b:

  • Reverted the isMultiPathType/buildReturnType *Impl split. isMultiPathType and buildReturnType are now byte-identical to master again; the only remaining helper is normalizeDynamicPathArgument (removeNullable(recursiveRemoveLowCardinality(...))), called from the three getReturnTypeForDynamic per your sketch.
  • Trimmed the comments down to the one non-obvious point (top-level Nullable only, matching what executeImpl receives).

Verified on a debug build: original repros return (1,0)/(0), the nested-wrapped case throws ILLEGAL_TYPE_OF_ARGUMENT identically on the normal and Dynamic paths, and 04325 is byte-identical to its reference.

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog and removed pr-bugfix Pull request with bugfix, not backported by default labels Jul 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 86.20% 86.30% +0.10%
Functions 92.00% 92.00% +0.00%
Branches 78.30% 78.40% +0.10%

Changed lines: Changed C/C++ lines covered: 18/19 (94.74%) · Uncovered code

Full report · Diff report

@alexey-milovidov alexey-milovidov mentioned this pull request Jul 24, 2026
1 task done
@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger — 367cd4b

Every failure below has an owner: a fixing PR, or a full-effort fix task whose fixing-PR link will be posted here when it opens. None are caused by this PR (getReturnTypeForDynamic Nullable/LowCardinality normalization + comment trim).

Check / test Reason Owner / fixing PR
Integration tests (arm_binary, distributed plan, 4/4) / test_prometheus_before_tables::test_prometheus_with_handlers_starts_after_tables_are_loaded flaky (1 master, 3 unrelated PRs, 30d) a fix task is created (investigating at full effort; fixing-PR link to follow here)
Upgrade check (amd_release) / New settings are not reflected in settings changes history trunk regression (join_runtime_filter_min_probe_rows placed in the 26.7 section, not 26.8) #111671 (ours, open)
Upgrade check (amd_release) / Changed settings are not reflected in the settings changes history trunk regression (same as above) #111671 (ours, open)
Upgrade check (amd_release) / Error message in clickhouse-server.log (system.metric_log exceeds max_query_size) trunk regression (fresh 2026-07-23; system.metric_log CREATE metadata > 262144 bytes) a fix task is created (investigating at full effort; fixing-PR link to follow here)

Session id: cron:our-pr-ci-monitor:20260724-020000

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the Upgrade-check system.metric_log max_query_size Error leak (Failed to mark the rotated system log table as readonly ... QUERY_IS_TOO_LARGE): #111703 (external, open). It disables max_query_size for the internal system-log rotation ALTER in SystemLog::addSettingsForQuery. Not caused by this PR (FunctionSQLJSON change); fresh trunk regression, 0 master / 59 distinct PRs, first seen 2026-07-23 17:28 UTC, exclusively system.metric_log_0.

@Avogar
Avogar added this pull request to the merge queue Jul 24, 2026
Merged via the queue into ClickHouse:master with commit a2752fa Jul 24, 2026
175 of 178 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 24, 2026
@clickgapai

Copy link
Copy Markdown
Contributor

Hi @groeneai @Avogar — while reviewing this PR I found the following:

Could you review the test PR and add the can be tested label if it looks good?
Happy to discuss — close anything that's wrong or already addressed.

@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the test_prometheus_before_tables line on the CI finish ledger above: #112044

Mechanism, since the ledger reason ("flaky") does not say much: the failure was not an ordering bug in the server but a readiness race in the test helper. The integration harness reports an instance as started as soon as a bare sock.connect((ip, 9000)) succeeds, but the socket is bound and listening before the Listening for ... lines are written, so the test's one-shot grep -n -m1 'Application: Listening for Prometheus' could run before the line existed, exit 1, and fail before its assertion ran. On the failing run here the harness wait returned 291 ms before the line was written. The fix waits for the line in the shared helper, which also covers the two Application: Loaded metadata greps in the same module (they had about 5 ms of margin on that run).

That also closes #111782.

@groeneai

Copy link
Copy Markdown
Collaborator Author

@alexey-milovidov could you apply v26.7-must-backport here? This never reached 26.7 and the LOGICAL_ERROR is still aborting there: Stress test (amd_tsan) earlier today, https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116924&sha=d377364a0009b999952d0a3b1dcd4123bb0b48e9&name_0=BackportPR&name_1=Stress%20test%20%28amd_tsan%29. Every hit of that signature since 2026-08-03 is on 26.7; on master the last one was 2026-07-24 01:11Z, before this merged, and none since.

src/Functions/FunctionSQLJSON.h at 26.7 is byte-identical to its blob at a7902ec5, the commit right before this merge, so 26.7 carries the pre-fix file. master and 26.8 both carry the fixed one. 26.7 does have getReturnTypeForDynamic, so the defect is reachable there from a single statement, and that statement is line 28 of 26.7's own 04325_sql_json_functions_with_dynamic_input.sql:

SELECT JSON_EXISTS('{"a": 1, "b": 2}'::Dynamic, tuple('$.a', '$.b'));

26.6 and 26.3 have no getReturnTypeForDynamic at all, so they are unaffected. That is why the version-specific label rather than pr-must-backport.

The cherry-pick is clean: all three files this PR touched are byte-identical at 26.7 and at a7902ec5. The label expands to 26.7 and 26.8, and ReleaseBranch.pre_check skips 26.8 because the merge commit is already an ancestor there, so it should yield exactly one 26.7 backport.

zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…ultipath-107585

Fix JSON_EXISTS/JSON_VALUE/JSON_QUERY LOGICAL_ERROR on Dynamic input with LowCardinality path elements
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 pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Logical error in FunctionDynamicAdaptor: JSON_EXISTS over Dynamic with LowCardinality inside tuple path

5 participants