Skip to content

Fix 05316_secret_arguments_declared_by_engines with Replicated database - #124928

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix-05316-dbreplicated
Oct 9, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:fix-05316-dbreplicated

Conversation

@Algunenano

@Algunenano Algunenano commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

In a Replicated database the DDL worker executes CREATE DICTIONARY again as a secondary query, so system.query_log has two matching rows and the test prints 0 2 instead of 0 1. It fails in Stateless tests (arm_binary, s3 storage, DBReplicated, parallel, 1/2) on every PR since the test was merged. Count only the initial query.

Related: #123364

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):

...


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

Version info

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

…tabase

In a `Replicated` database the DDL worker executes `CREATE DICTIONARY` again as a
secondary query, so `system.query_log` has two matching rows. Count only the initial query.

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

clickhouse-gh Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [351f549]


AI Review

Summary

This PR narrows the final system.query_log assertion in tests/queries/0_stateless/05316_secret_arguments_declared_by_engines.sh to is_initial_query, which is the right way to make the test stable under Replicated databases. The extra matching row comes from the replicated DDL worker re-executing CREATE DICTIONARY as a secondary query; that path still rebuilds query_for_logging from the parsed AST, so the masking coverage is not meaningfully weakened by ignoring the replayed row here. I did not find any blocking or major issues.

Final Verdict

✅ Looks correct to merge.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Oct 9, 2026
@azat azat self-assigned this Oct 9, 2026
@Algunenano
Algunenano enabled auto-merge October 9, 2026 14:21
@azat

azat commented Oct 9, 2026

Copy link
Copy Markdown
Member

Interesting, why it did not fail in the initial PR?

@Algunenano

Algunenano commented Oct 9, 2026 •

Copy link
Copy Markdown
Member Author

Interesting, why it did not fail in the initial PR?

Yes. It did fail in the original PR, but CI reported the failure as OK.

The PR did fail. In #123364 the only DBReplicated job was the LLVM coverage one. On all 6 runs there, from 5a6b3555e14 to eb4ed1b6fb7, the test failed with "result differs with reference". The coverage job then ran its "Failure reproducibility check" ("Failed 0 out of 3 reruns") and marked the test OK. Master's coverage job hides it the same way today.

In "parallel" we merged 37fc3b0, which changed the Replicated run to use arm_binary (not coverage) which reports the errors properly

@Algunenano

Copy link
Copy Markdown
Member Author

Passing in replicated database. Merging

@Algunenano
Algunenano added this pull request to the merge queue Oct 9, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Oct 9, 2026
…85293

Conflicts resolved:
- InterpreterCreateQuery.cpp: master's XGBoost layout gate (ClickHouse#109999), then
  the empty SQL SECURITY default kept to view shapes, since
  supportSQLSecurity() now also accepts dictionaries.

Picks up ClickHouse#124928 (05316_secret_arguments_declared_by_engines under
DatabaseReplicated).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 9, 2026
qoega added a commit to qoega/ClickHouse that referenced this pull request Oct 11, 2026
Bring in the Parquet query-condition-cache fix and the replicated query-log test correction.

Related: ClickHouse#124991
Related: ClickHouse#124928
Related: ClickHouse#124490
valerypetrov added a commit to valerypetrov/ClickHouse that referenced this pull request Oct 12, 2026
Both reds on the previous run are master-side: 05316_secret_arguments_declared_by_engines is fixed on master by ClickHouse#124928, and the azure sequential job hit its time limit with no failed test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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

comp-sql-syntax SQL/grammar parsing, AST nodes, syntax-level features. 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