Skip to content

Do not run 04952_projection_argumentless_function_json in a Replicated database - #125377

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:tag-04952-no-replicated-database
Oct 12, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:tag-04952-no-replicated-database

Conversation

@groeneai

@groeneai groeneai commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #123323

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

...

Description

04952_projection_argumentless_function_json fails on every master run of Stateless tests (amd_llvm_coverage, s3 storage, DBReplicated, parallel, 3/3) since 2026-10-11 (report). In a Replicated database the CREATE TABLE it sends with --dialect clickhouse_json becomes a DDL entry that is executed with the session dialect, so its SQL text goes to the JSON AST parser: Failed to parse JSON for AST deserialization ... unexpected byte, '/' (#123323).

This tags the test no-replicated-database with the same reason line as 05233_ast_json_select_argumentless_function_dialect, as was done for 05142_http_dictionary_hide_header_values_json. The tags go away with the fix of #123323.

Validated on a one-node DBReplicated server (master 371b23a4): the test failed 5/5 with the CI error before the tag and is skipped after it; it passes 50/50 with random settings in the default mode. The other 40 untagged clickhouse_json tests pass in DBReplicated mode, and none of them runs a DDL entry with this dialect.


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

Version info

  • Merged into: 26.10.1.2223-master (included in 26.10 and later)

…d database

In a `Replicated` database the `CREATE TABLE` sent with `--dialect clickhouse_json`
is enqueued as a DDL log entry whose query is SQL text, but the entry is executed
with the session's `dialect = 'clickhouse_json'`, so the DDL worker hands
`/* ddl_entry=... */ CREATE ...` to the JSON AST parser and the test fails with
`Failed to parse JSON for AST deserialization: ... unexpected byte, '/'`
(issue ClickHouse#123323). It fails on every master run of the DBReplicated coverage lane
since ClickHouse#125180 stopped hiding it; random-settings lanes mask it.

Tag the test `no-replicated-database` with the same reason line as
`05233_ast_json_select_argumentless_function_dialect`, as was done for
`05142_http_dictionary_hide_header_values_json`. The tags are to be removed
together when ClickHouse#123323 is fixed.

Related: ClickHouse#123323

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-request PR origin: a maintainer pinged or directed groeneai labels Oct 12, 2026
@groeneai

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

Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review of the diff (0 findings).

No findings to adjudicate: the diff is the two-line no-replicated-database tag with the reason line already used by 05233_ast_json_select_argumentless_function_dialect, and no other untagged clickhouse_json test runs DDL through that dialect against the server.

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are terminal per finding.

Session id: cron:clickhouse-review-slot-8:20261012-095300

@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. One-node DBReplicated server on master 371b23a4, clickhouse-test 04952_projection_argumentless_function_json --replicated-database --no-random-settings --no-random-merge-tree-settings: FAIL 5/5 with the CI error (Failed to parse JSON for AST deserialization ... unexpected byte, '/' on /* ddl_entry=... */ CREATE TABLE ...).
b Root cause explained? In a Replicated database the CREATE TABLE sent with --dialect clickhouse_json is stored as a DDL entry with SQL text but executed with the session dialect, so the SQL goes to the JSON AST parser. Product bug #123323.
c Fix matches root cause? This PR is the requested test-disabling half: it removes the test from the one mode the bug hits (no-replicated-database, reason linked to #123323). The product fix is tracked in #123323.
d Test intent preserved / new tests added? Test body and reference unchanged; it still runs in every other mode (50/50 OK with random settings). No new test: tag-only change.
e Both directions demonstrated? DBReplicated: FAIL 5/5 before the tag, SKIPPED (Reason: replicated-database) after it, 20/20 with random settings. Default mode: OK before and after.
f Fix is general across code paths? All 41 untagged tests using clickhouse_json checked in DBReplicated mode: the other 40 pass, and system.query_log shows 04952 is the only one that runs a DDL entry with this dialect.
g Fix generalizes across inputs (params/datatypes/wrappers)? N/A (no source change). Checked with and without random settings in both modes.
h Backward compatible? (maintainer-approved exception only) N/A, test-only change.
i Invariants and contracts preserved? The tag uses the runner's # Tags: line and the same reason line as 05233_ast_json_select_argumentless_function_dialect, so the tags added for #123323 are removed together when it is fixed.

Session id: cron:clickhouse-impl-slot-40:20261012-093900

@clickhouse-gh

clickhouse-gh Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [6004d24]

Summary: ✅


AI Review

Summary

This PR disables tests/queries/0_stateless/04952_projection_argumentless_function_json.sh in Replicated-database mode by adding the no-replicated-database tag and linking it to the already-open product bug #123323. I reviewed the current diff, the full test body, the related tagged clickhouse_json tests, and the prior PR discussion; I did not find a correctness, scope, or metadata problem that warrants a new inline review comment.

Final Verdict

✅ No blockers or majors. The change is narrowly scoped to the known Replicated-database failure mode and is consistent with the existing mitigation pattern used for the other clickhouse_json DDL tests affected by #123323.

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-testing Test content only (no production code). labels Oct 12, 2026
@alexey-milovidov alexey-milovidov self-assigned this Oct 12, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 12, 2026
Merged via the queue into ClickHouse:master with commit f209d53 Oct 12, 2026
177 checks passed
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 12, 2026
@clickhouse-gh clickhouse-gh Bot added comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. and removed comp-testing Test content only (no production code). labels Nov 22, 2026
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-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. groeneai-origin-request PR origin: a maintainer pinged or directed groeneai pr-ci 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.

3 participants