Repository navigation
Backport #108674 to 26.3: Do not validate DataLakeCatalog auth_header or build catalog on ATTACH - #108893
Conversation
… or build catalog on ATTACH
|
Workflow [BackportPR], commit [ca3ae21] Summary: ✅ |
`CHECK DATABASE` does not exist in the 26.3 SQL grammar (it was introduced in
26.4 together with the `IDatabase::checkDatabase` mechanism that
`InterpreterCheckQuery` calls). As a result both `CHECK DATABASE baddb` and
`CHECK DATABASE ${FORBIDDEN_DB}` failed with `SYNTAX_ERROR`, so the expected
`Unexpected format of auth header` and `is forbidden` lines were never produced
and the test failed with a result diff.
Trigger the lazy catalog construction with a `SELECT` against the database
instead. `getCatalog` is built (and the malformed or forbidden `auth_header`
rejected) before any table is resolved, so the referenced table need not exist.
Unlike `CHECK DATABASE`, this path propagates the error on every branch, so it
keeps the test's intent (the error is reported lazily on first use) without
depending on the `checkDatabase` infrastructure that 26.3 lacks.
Verified against the 26.3 build from the failing CI run, running the test
server with the `forbidden_headers.xml` config: the output now matches the
reference exactly.
PR: #108893
CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=108893&sha=54084a194a35e4c9787b837baa6cfb9b9a7e1d1a&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%202%2F2%29
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Fixed the failing Root cause: the backported test used The source backport itself is correct: Fix: trigger the lazy catalog construction with a Verification: downloaded the |
Original pull-request #108674
Cherry-pick pull-request #108792
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.3.17.11