Skip to content

Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE - #105579

Merged
evillique merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fix-parser-create-table-to-inner-uuid-crash
Jun 5, 2026
Merged

evillique merged 1 commit into
ClickHouse:masterfrom
groeneai:groeneai/fix-parser-create-table-to-inner-uuid-crash

Conversation

@groeneai

@groeneai groeneai commented May 21, 2026 •

Copy link
Copy Markdown
Collaborator

ParserCreateTableQuery::parseImpl raises BAD_ARGUMENTS when a TO INNER UUID clause is paired with a non SharedSet / SharedJoin engine, but the throw's format argument unconditionally dereferenced storage->engine->name. The same condition that triggered the throw also covers the case where storage or storage->engine is null (for example, CREATE TABLE t TO INNER UUID '...' (cols) ORDER BY id without any ENGINE clause), so evaluating the format args crashed the process with signal 11.

ParserCreateTableQuery::parseImpl is the same parser used server-side by executeQueryImpl for queries arriving over HTTP and the native protocol, so the crash is not limited to the client. Sending the malformed CREATE TABLE ... TO INNER UUID over HTTP or native TCP crashes the server (SIGSEGV), making this a user-reachable denial-of-service for any user with CREATE TABLE rights.

Captures the engine name into a local with an explicit fallback before raising the exception, and fixes the message grammar.

Adds a stateless regression test covering both the null engine and wrong engine cases.

Source

Found while exercising TO INNER UUID paths in #105068 (the short-ATTACH silent-drop guard). Noted as a separate finding in #105068 (comment) ("While exercising TO INNER UUID paths I noticed a pre-existing crash in the same function...") and tracked as a separate fix here because it predates and is independent of #105068. Reproduced on origin/master at commit 3dadc439d799.

Minimal repro:

clickhouse-client -q "CREATE TABLE t TO INNER UUID '00000000-0000-0000-0000-000000000001' (id UInt32) ORDER BY id;"

Pre-patch: signal 11 in client; same query over HTTP / native TCP also crashes the server. Post-patch: Code: 36. DB::Exception: Storage engine (no engine) does not support inner UUID. (BAD_ARGUMENTS) on all three paths.

Changelog category (leave one):

  • Critical Bug Fix (crash, LOGICAL_ERROR, data loss, RBAC)

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

Fix a server crash (SIGSEGV) reachable by any user with CREATE TABLE rights when sending CREATE TABLE ... TO INNER UUID '...' without an ENGINE clause over HTTP or the native protocol. The same bug also crashed the client. The parser now reports a proper BAD_ARGUMENTS error instead of dereferencing a null pointer.

Documentation entry for user-facing changes

  • Documentation is unchanged: bug fix; existing behavior on supported engines is preserved.

Version info

  • Merged into: 26.6.1.411 (included in 26.6 and later)
  • Backported to: 26.5.2.36, 26.3.20.8, 25.8.25.14

@groeneai

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate

a) Deterministic repro? Yes. Issuing CREATE TABLE t TO INNER UUID '00000000-0000-0000-0000-000000000001' (id UInt32) ORDER BY id against a debug build crashes the client with signal 11 every time. Stack lands at ParserCreateQuery.cpp:1073:19 inside DB::ParserCreateTableQuery::parseImpl, with LoggingFormatStringHelpers.h:123 evaluating the format arg.

b) Root cause? Lines 1068-1069 read:

if (!storage || !storage->engine || (storage->engine->name != "SharedSet" && storage->engine->name != "SharedJoin"))
    throw Exception(ErrorCodes::BAD_ARGUMENTS, "Storage engine {} does not inner UUID", storage->engine->name);

The throw's format argument storage->engine->name is evaluated unconditionally, but the throw is reached only when one of storage or storage->engine is null. Format args evaluation segfaults before the exception is raised.

c) Fix matches root cause? Yes. The fix computes the engine name into a local with a null-guarded fallback ("(no engine)") before raising the exception. Same throw, same error code, no null deref.

d) Test intent preserved + new test added? Added tests/queries/0_stateless/04272_create_table_to_inner_uuid_without_engine.sql. Covers both: (1) TO INNER UUID with no ENGINE (the crashing case), (2) TO INNER UUID with a non SharedSet / SharedJoin engine (the existing handled case). Both must produce clientError BAD_ARGUMENTS.

e) Demonstrated in both directions?

  • Unpatched binary: signal 11 segfault on the first CREATE TABLE from the test.
  • Patched binary: 20/20 passes via tests/clickhouse-test --test-runs 20 04272_create_table_to_inner_uuid_without_engine.

f) General fix, not a narrow patch? Searched src/Parsers/ for similar if (!ptr ...) throw Exception(..., ptr->...) patterns where the throw's format arg can dereference a pointer the condition just rejected. The pattern on line 1068 is the only instance involving storage->engine->name. No symmetric sites need the same change.

Session: cron:clickhouse-ci-task-worker:20260521-183000

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @evillique @alexey-milovidov could you review this? It fixes a client-side signal 11 nullptr deref in ParserCreateTableQuery::parseImpl when CREATE TABLE ... TO INNER UUID '...' is issued without an ENGINE clause. The throw's format arg dereferenced storage->engine->name even though the condition that triggered the throw allowed those pointers to be null.

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

clickhouse-gh Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [0b07d9f]

Summary: ❌

job_name test_name status info comment
AST fuzzer (amd_debug, targeted) ERROR
AST fuzzer (amd_debug, targeted, old_compatibility) ERROR

AI Review

Summary

This PR makes the TO INNER UUID validation in ParserCreateTableQuery::parseImpl null-safe by formatting the BAD_ARGUMENTS message from a guarded engine name, and adds a stateless regression test for the missing-engine and unsupported-engine cases. The change is narrow, matches the reported failure mode, and I did not find any code issue that needs an inline review comment.

Missing context / blind spots
  • ⚠️ The latest PR workflow was still running when reviewed: Code Review, Bugfix validation (functional tests), Build (arm_tidy), and Fast test were pending after the 2026-06-01 rebase. Completion of those jobs would close the CI validation gap.
Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label May 22, 2026
@nikitamikhaylov

Copy link
Copy Markdown
Member

@groeneai Where did you find this? The link is missing. Also, investigate the CI failures.

@groeneai

groeneai commented May 22, 2026 •

Copy link
Copy Markdown
Collaborator Author

@nikitamikhaylov thanks for the review. Both items addressed:

Source

Found while exercising TO INNER UUID paths in #105068 (short-ATTACH silent-drop guard). Noted as a separate finding here: #105068 (comment) ("While exercising TO INNER UUID paths I noticed a pre-existing crash in the same function..."). The bug predates and is independent of #105068, so I split it out into this small PR. PR description updated to include this link.

Minimal repro on origin/master at 3dadc439d799:

clickhouse-client -q "CREATE TABLE t TO INNER UUID '00000000-0000-0000-0000-000000000001' (id UInt32) ORDER BY id;"

Pre-patch: signal 11 in client. Post-patch: Code: 36. DB::Exception: Storage engine (no engine) does not support inner UUID. (BAD_ARGUMENTS).

CI failures investigation

Commit 01208875. PR diff is 3 lines in src/Parsers/ParserCreateQuery.cpp plus a new stateless test file. None of the 11 red checks touch parser code or the new test.

Per-check breakdown:

Check Failure Cross-PR (7d) Attribution
Integration tests (amd_llvm_coverage, 3/5) test_mysql_protocol/test.py::test_mysql_dotnet_client 579 hits / 91 PRs / 88 master chronic, tracked under investigation on #104435
Integration tests (amd_asan_ubsan, db disk, old analyzer, 2/6) same test_mysql_dotnet_client same same
Integration tests (arm_binary, distributed plan, 3/4) same same same
Integration tests (amd_tsan, 2/6) same same same
Integration tests (amd_msan, 2/6) same same same
AST fuzzer (amd_debug, targeted) Client failure in QueryAnalyzer::resolveExpressionNodeList (recursion through resolveFunction -> resolveExpressionNode) 64 hits / 40 PRs / 0 master chronic PR-only flake; "tests found by coverage: 0" so the targeted run falls back to broad fuzzing of unrelated analyzer code
AST fuzzer (amd_debug, targeted, old_compatibility) same recursion family in QueryAnalyzer::resolve -> QueryAnalysisPass::run 41 hits / 29 PRs / 0 master same
Finish Workflow cascade from above n/a wrapper
Mergeable Check cascade n/a wrapper
CH Inc sync internal mirror n/a not blocking
PR wrapper rollup n/a wrapper

All 5 integration failures are the single chronic test_mysql_dotnet_client flake. Both AST fuzzer hits are in src/Analyzer/Resolve/* (the diff does not touch any analyzer code) and the "targeted" variants run on the diff lines with Total unique tests: 0 (0 direct-narrow, 0 indirect-narrow, 0 broad), so the run degrades to broad fuzzing that hits chronic analyzer recursion bugs.

Happy to rebase to pick up any landing fix for test_mysql_dotnet_client if it lands in the next day or two. Otherwise the PR is ready to merge once an approving review lands.

@nikitamikhaylov

Copy link
Copy Markdown
Member

@groeneai rebase on the current master.

@groeneai
groeneai force-pushed the groeneai/fix-parser-create-table-to-inner-uuid-crash branch from 0120887 to 0318e73 Compare May 26, 2026 04:02
@groeneai

Copy link
Copy Markdown
Collaborator Author

@nikitamikhaylov rebased on current master (544f6da6dc6c). New HEAD: 0318e73223f5. Branch is 1 commit ahead of master, no conflicts. CI re-running.

Session: cron:clickhouse-ci-task-worker:20260526-040000

@evillique evillique self-assigned this Jun 1, 2026
@evillique

Copy link
Copy Markdown
Member

@groeneai rebase on the current master

`ParserCreateTableQuery::parseImpl` raises `BAD_ARGUMENTS` when a
`TO INNER UUID` clause is paired with a non `SharedSet` / `SharedJoin`
engine, but the throw's format argument unconditionally dereferenced
`storage->engine->name`. The same condition that triggered the throw
also covers the case where `storage` or `storage->engine` is null
(for example, `CREATE TABLE t TO INNER UUID '...' (cols) ORDER BY id`
without any `ENGINE` clause), so evaluating the format args crashed
the client with signal 11.

Capture the engine name into a local with an explicit fallback
before raising the exception, and fix the message grammar
("does not support inner UUID").

Adds a stateless regression test covering both the null engine
case and the wrong engine case.
@groeneai
groeneai force-pushed the groeneai/fix-parser-create-table-to-inner-uuid-crash branch from 0318e73 to 0b07d9f Compare June 1, 2026 12:33
@groeneai

groeneai commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator Author

@evillique rebased on current master. New HEAD: 0b07d9f2e61d. CI rerunning.

@clickhouse-gh

clickhouse-gh Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 84.40% 84.40% +0.00%
Functions 91.40% 91.40% +0.00%
Branches 77.00% 77.00% +0.00%

Changed lines: Changed C/C++ lines covered by tests: 4/6 (66.67%) | Lost baseline coverage: none · Uncovered code

Full report · Diff report

@evillique

Copy link
Copy Markdown
Member

@groeneai, investigate the CI failures and find whether the issues in them are fixed somewhere already, or do they need separate fixes.

@groeneai

groeneai commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator Author

@evillique investigated the CI failures on rebased HEAD 0b07d9f2e61d. Only two CI jobs are red, both failing for the same reason that is not a regression from this PR.

Job Failure 30d cross-PR (CIDB) Root cause Already-fixed-by Needs separate fix?
AST fuzzer (amd_debug, targeted) clickhouse-client exits with Code 36 BAD_ARGUMENTS at ParserCreateQuery.cpp:1076 ("Storage engine MergeTree does not support inner UUID") 30+ PRs failed this job in 14d, many unrelated (fix-replxx-crash, keeper_ttl, ast-json-serialization, coordinator-mode-mismatch, reset-session, skip_unavailable_shards_mode) Targeted fuzzer pulls this PR's new test 04272_create_table_to_inner_uuid_without_engine.sql into its corpus, mutates the queries, and the mutated queries re-enter the new BAD_ARGUMENTS path. ast_fuzzer_job.py lines 292-303 treat any fuzzer exit code not in (0, 137, 143, 227) as ERROR, including legitimate user-facing error codes like BAD_ARGUMENTS. Has failed identically on every HEAD of this PR since the first CI run on 2026-05-22 (commit 01208875bb33) No fix PR open. Same false-positive class affects every PR that adds a new client-side parser exception No - chronic targeted-fuzzer instrumentation limitation, not a bug in this PR
AST fuzzer (amd_debug, targeted, old_compatibility) Same: Code 36 BAD_ARGUMENTS at ParserCreateQuery.cpp:1076 after Got boring AST Same family as above; identical failure on every HEAD since 2026-05-22 Same root cause Same Same

The four non-targeted variants (AST fuzzer (amd_debug), (amd_msan), (amd_tsan), (arm_asan_ubsan)) all pass on 0b07d9f2e61d, confirming no real fuzzer-detected issue. The diff is 3 lines in src/Parsers/ParserCreateQuery.cpp plus the new test file - it cannot trigger any other failure class.

@evillique

Copy link
Copy Markdown
Member

@groeneai As per our policy, we unfortunately can't merge the PRs with any red checks on them. Could you please fix the tests in question in a separate PR?

@groeneai

groeneai commented Jun 5, 2026

Copy link
Copy Markdown
Collaborator Author

@evillique - filed a separate PR addressing the two failing AST fuzzer red checks: #106523.

Root cause traced: this PR's new test file 04272_create_table_to_inner_uuid_without_engine.sql contains a -- { clientError BAD_ARGUMENTS } hint on a parser-time throw. The targeted AST fuzzer feeds the file to clickhouse-client --query-fuzzer-runs=1000, which auto-enables ignore_error=true. In ClientBase::analyzeMultiQueryText, the !parsed_query + ignore_error branch was skipping the failing query but never clearing client_exception / have_error — so the parser exception stayed pinned and surfaced as the process exit code (36 BAD_ARGUMENTS). The praktika ast_fuzzer_job.py runner treats any exit code outside (0, 137, 143, 227) as ERROR, so the job went red.

PR #106523 clears client_exception and have_error exactly at the ignore_error skip site (one localized 2-line change in ClientBase.cpp) so the skip is honest and the exit code reflects the rest of the run, plus a stateless regression test (04318) that fails pre-fix (exit: 36) and passes post-fix (exit: 0). The fix is general - benefits any current or future test with parse-time client-error hints fed to the targeted fuzzer corpus, not just this PR's test file.

Once #106523 lands on master, the AST fuzzer red checks here will turn green on the next CI rerun. Happy to discuss alternative shapes if a different approach is preferred.

@evillique
evillique added this pull request to the merge queue Jun 5, 2026
Merged via the queue into ClickHouse:master with commit 2bf187c Jun 5, 2026
163 of 166 checks passed
@clickgapai

Copy link
Copy Markdown
Contributor

Hi @groeneai @evillique — a couple of suggestions to make this PR easier for reviewers and the changelog reader.

Description (currently incomplete):

  • Why: The body and changelog describe this as a 'client crash' / 'signal 11 in client'. The same parser runs server-side: sending the query over HTTP/native crashes the SERVER (verified: HTTP request returned empty reply and the server stopped accepting connections). The real impact is a server DoS reachable by any user with CREATE TABLE rights, which the description understates.

  • Suggested addition:

    Note: the crash is not limited to the client. ParserCreateTableQuery::parseImpl runs server-side for queries sent over the HTTP/native protocol, so the same malformed CREATE TABLE ... TO INNER UUID crashes the server (SIGSEGV), making this a user-reachable denial-of-service rather than a client-only crash.

Ignore this if the current title/body is intentional.

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 5, 2026
@evillique evillique added the pr-must-backport Pull request should be backported intentionally. Use this label with great care! label Jun 5, 2026
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Jun 5, 2026
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
Cherry pick #105579 to 25.8: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
Cherry pick #105579 to 26.3: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
Cherry pick #105579 to 26.4: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
Cherry pick #105579 to 26.5: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
robot-clickhouse added a commit that referenced this pull request Jun 5, 2026
@robot-ch-test-poll robot-ch-test-poll added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Jun 5, 2026
alexey-milovidov added a commit that referenced this pull request Jun 5, 2026
Backport #105579 to 26.5: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
alexey-milovidov added a commit that referenced this pull request Jun 5, 2026
Backport #105579 to 26.4: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
evillique added a commit that referenced this pull request Jun 5, 2026
Backport #105579 to 25.8: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
murphy-4o pushed a commit to hanfei1991/ClickHouse that referenced this pull request Jun 6, 2026
When a query in a multi-query batch fails to parse, the local
ClientBase::parseQuery on the is_interactive || ignore_error branch
catches the parser exception, sets client_exception, and returns
nullptr. Without ignore_error, analyzeMultiQueryText's outer try/catch
takes over and the test-hint logic in the PARSING_EXCEPTION stage
clears the exception when the failure was expected.

With ignore_error true, the !parsed_query branch instead skipped past
the offending query and returned CONTINUE_PARSING, but never reset
client_exception or have_error. The pinned exception then surfaced as
the process exit code in Client::main, even though the run had
explicitly elected to ignore parse errors.

This affects --query-fuzzer-runs, which auto-enables ignore_error in
Client::processOptions: targeted-fuzzer runs over a corpus that
includes any test with a parse-time clientError hint exit Code 36
BAD_ARGUMENTS for example, which reads as a CI failure even though the
fuzzer behaved correctly.

Reset have_error and client_exception when the loop elects to skip the
failing query, so the skip is honest and the exit code reflects the
rest of the run. PARSING_EXCEPTION already clears current_exception
through the rethrow / TestHint path, so this only affects the
ignore_error skip.

Adds a stateless regression test exercising the
clickhouse-client --query-fuzzer-runs <file with parse-time error>
shape that the targeted AST fuzzer in CI uses.

CI report (PR-only checks failing):
https://s3.amazonaws.com/clickhouse-test-reports/PRs/105579/0b07d9f2e61d8742d1889c96d8530b37186594cd/ast_fuzzer_amd_debug_targeted/job.log
Related: ClickHouse#105579
@groeneai

groeneai commented Jun 6, 2026

Copy link
Copy Markdown
Collaborator Author

@clickgapai confirmed. The same parser (ParserCreateTableQuery::parseImpl) is invoked server-side from executeQuery for both HTTP and native protocol queries, so the merged fix covers all three paths (client, server-HTTP, server-TCP).

Verified locally on commit 0b07d9f2e61d:

Path Pre-fix Post-fix
clickhouse-client (parses locally) signal 11 Code: 36 BAD_ARGUMENTS
HTTP POST / (server parses) server SIGSEGV at ParserCreateQuery.cpp:1074:19, address 0x57, server stops accepting connections HTTP 400, Code: 36 BAD_ARGUMENTS, server alive
native TCP (server parses) same server SIGSEGV Code: 36 BAD_ARGUMENTS, server alive

Server-side stack at the crash (pre-fix, HTTP path):

3. tryGetFormattedArgs ... (formatting null-deref of storage->engine->name)
6. ParserCreateTableQuery::parseImpl @ ParserCreateQuery.cpp:1074:19
8. ParserCreateQuery::parseImpl @ ParserCreateQuery.cpp:2029:20
12. ParserQuery::parseImpl @ ParserQuery.cpp:84:36
14. tryParseQuery @ parseQuery.cpp:321:35
17. executeQueryImpl @ executeQuery.cpp:1194:23
19. HTTPHandler::processQuery @ HTTPHandler.cpp:644:5

So ParserCreateTableQuery::parseImpl runs on the same code path on both sides; the fix is a single-source change and the server-DoS scenario is fixed by the same diff.

The merge is in (2bf187c31d10). @evillique do you want a follow-up to (a) re-edit the changelog entry to include the server-DoS framing and/or (b) escalate the changelog category to Critical Bug Fix? Happy to either edit the description in place or open a tiny CHANGELOG.md follow-up PR if a category change is warranted; deferring the call to you since you merged it.

Session: cron:clickhouse-ci-task-worker:20260606-195100

@clickgapai

Copy link
Copy Markdown
Contributor

Thanks for the verification, @groeneai. That's exactly the coverage I was hoping for — good to see all three paths (client-side parse, HTTP server-side, native protocol) are now protected by the same fix.

The table you posted is particularly useful: it shows the fix converts what was a hard crash (SIGSEGV, server down) into a clean error response (HTTP 400, BAD_ARGUMENTS) that keeps the server alive. That's the right behavior.

One clarification on the root cause: the nullptr dereference happens because storage->engine->name is accessed after the condition that checks storage == nullptr || storage->engine == nullptr has already been true. The throw statement itself doesn't guard that dereference, so it crashes before the error message can be formatted.

The fix correctly moves the dereference inside a guarded block, so we only access engine->name when it's safe.

Thanks for running the full test matrix — that's solid validation.

@evillique

Copy link
Copy Markdown
Member

@groeneai, escalate the changelog category to Critical Bug Fix and mention the server crash in the changelog entry.

@groeneai

groeneai commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

@evillique done. Updated the PR description (#105579 body):

  • Changelog category changed to Critical Bug Fix (crash, LOGICAL_ERROR, data loss, RBAC).
  • Changelog entry rewritten to lead with the server crash and the user-reachable DoS framing, with the client crash as a secondary note.
  • Body now also explains that ParserCreateTableQuery::parseImpl is the same parser invoked server-side by executeQueryImpl for HTTP and native TCP, so HTTP / native / client all crashed pre-fix and all return BAD_ARGUMENTS post-fix (verified locally on 2026-06-06, see comment 4640220982 above).

tests/ci/changelog.py reads the live PR body for scraping (line 313), so the next 26.6 changelog regen will pick up the new category and entry text. The current CHANGELOG.md on master only covers up to 26.5 and does not yet include this entry, so no CHANGELOG.md follow-up PR is needed.

Session: cron:clickhouse-ci-task-worker:20260608-215800

evillique added a commit that referenced this pull request Aug 19, 2026
Backport #105579 to 26.3: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…5579

Backport ClickHouse#105579 to 26.4: Fix nullptr deref in CREATE TABLE TO INNER UUID without ENGINE
bytehalo-infra added a commit to sentioxyz/ClickHouse that referenced this pull request Sep 25, 2026
OTHER: `CREATE TABLE … TO INNER UUID` without ENGINE -> crash (any user with CREATE).
Effect in the production build a394e92: wrong/failing (the upstream test fails on it and passes on official 26.8.8.8; evidence/fix_ci_20260925/upstream_repro/residual/105579.PROD263.txt).
Upstream patch unchanged, with its test(s): 04272_create_table_to_inner_uuid_without_engine.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-bugfix Pull request with bugfix, not backported by default pr-must-backport Pull request should be backported intentionally. Use this label with great care! pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR 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.

8 participants