Repository navigation
Remove PlainObjectStorage and PlainRewritableObjectStorage - #90580
Merged
Merged
Conversation
Contributor
|
Workflow [PR], commit [9ff5186] Summary: ❌
|
Michicosun
force-pushed
the
remove_plain_rewritable_object_storage
branch
from
November 21, 2025 14:36
93dddce to
f711704
Compare
Michicosun
force-pushed
the
remove_plain_rewritable_object_storage
branch
from
November 21, 2025 15:08
f711704 to
4efade7
Compare
jkartseva
approved these changes
Nov 24, 2025
pull Bot
pushed a commit
to TCeason/ClickHouse
that referenced
this pull request
May 6, 2026
… storage `StorageS3Configuration::fromDisk` (and the Azure parallel) called `assert_cast<const S3ObjectStorage &>(*disk->getObjectStorage())` directly. `assert_cast` checks `typeid` exactly, so any decorator that wraps the underlying `S3ObjectStorage` — most importantly `CachedObjectStorage` for disks created with `wrapWithCache(...)` — caused `Logical error: 'Bad cast from type DB::CachedObjectStorage to DB::S3ObjectStorage'` during argument parsing. Historically this also surfaced as `Bad cast from type DB::PlainObjectStorage<DB::S3ObjectStorage> to DB::S3ObjectStorage` (reported in ClickHouse#89300). The `PlainObjectStorage<>` decorator was removed in ClickHouse#90580, but the same pattern still bites for `CachedObjectStorage`. CIDB shows the cached-disk variant being hit by the BuzzHouse fuzzer (e.g. a `CREATE TABLE ... ENGINE = DeltaLakeS3(...) SETTINGS disk = '...'` query on PR ClickHouse#94148) and by `test_storage_iceberg_disks` runs. Use the existing `IObjectStorage::getUnderlying()` virtual to walk past any decorator layers before the cast. Apply the same fix to the Azure path which has the identical pattern. Add a stateless regression test that exercises `icebergS3` with three disk shapes (`s3_disk` raw, `s3_cache` wrapped, `s3_plain_disk` plain metadata). The test does not need a real iceberg table — it asserts that argument parsing no longer throws a logical error and the query fails with an expected S3/iceberg error code instead. The CI test config now allows-lists those four disks for use with table engines so the data lake disk-validation gate lets the queries through to the real check. Closes ClickHouse#89300
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Continuation of #90538