Skip to content

Cherry pick #107251 to 26.3: Feature: Support additional storage classes in S3 - #112773

Merged
robot-clickhouse-ci-1 merged 14 commits into
backport/26.3/107251from
cherrypick/26.3/107251
Aug 1, 2026
Merged

robot-clickhouse-ci-1 merged 14 commits into
backport/26.3/107251from
cherrypick/26.3/107251

Conversation

@robot-ch-test-poll

Copy link
Copy Markdown
Contributor

Original pull-request #107251

Do not merge this PR manually

This pull-request is a first step of an automated backporting.
It contains changes similar to calling git cherry-pick locally.
If you intend to continue backporting the changes, then resolve all conflicts if any.
Otherwise, if you do not want to backport them, then just close this pull-request.

The check results does not matter at this step - you can safely ignore them.

Troubleshooting

If the conflicts were resolved in a wrong way

If this cherry-pick PR is completely screwed by a wrong conflicts resolution, and you want to recreate it:

  • delete the pr-cherrypick label from the PR
  • delete this branch from the repository

You also need to check the Original pull-request for pr-backports-created label, and delete if it's presented there

The PR source

The PR is created in the CI job

adityaksolves and others added 13 commits June 11, 2026 22:38
The `storage_class_name` validation list now also accepts
`REDUCED_REDUNDANCY` and `STANDARD_IA`, but the `s3` table function and
`S3` table engine docs still listed only `STANDARD` and
`INTELLIGENT_TIERING`. Update both docs to the final supported set and
note that only classes allowing immediate retrieval are supported
(archival classes such as `GLACIER` are rejected).

Addresses the AI review "Request changes" finding on
#107251

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The test only checked rejected values, so reverting the allow-list to
the old `STANDARD` / `INTELLIGENT_TIERING` set would still pass. Add
`SELECT count()` reads with `STANDARD`, `REDUCED_REDUNDANCY`,
`STANDARD_IA` and `INTELLIGENT_TIERING`, which pass validation and read
the fixture instead of throwing `INVALID_SETTING_VALUE`. This exercises
the read path without depending on a successful S3 upload.

Addresses the AI review "Request changes" finding on
#107251

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The `S3` engine description registered in `registerStorageObjectStorage.cpp`
is exposed directly through `system.table_engines` and `SHOW TABLE ENGINES`,
so it is a user-facing documentation surface. It still advertised only
`STANDARD` and `INTELLIGENT_TIERING`; align it with the new allow-list
(`STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA`, `INTELLIGENT_TIERING`) and
the two Markdown docs, noting that archival classes such as `GLACIER` are
not supported.

Addresses the AI review finding on
#107251

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ge-classes

Feature: Support additional storage classes in S3
@robot-ch-test-poll robot-ch-test-poll added pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only! do not test disable testing on pull request labels Jul 31, 2026
Merge `backport/26.3/107251` into the cherry-pick branch and resolve the
conflicts by reconciling the feature with the `26.3` code base:

* `src/IO/S3RequestSettings.cpp`: keep the `26.3` accessors
  (`impl->storage_class_name`, `std::unordered_set<String>`) and apply the
  expanded storage class allow-list and the new error message text.
* `docs/en/engines/table-engines/integrations/s3.md` and
  `docs/en/sql-reference/table-functions/s3.md`: keep the `26.3` text and
  update only the `storage_class_name` description.
* `src/Storages/ObjectStorage/registerStorageObjectStorage.cpp`: `26.3` has
  no embedded documentation block, so the master-side documentation edit
  does not apply there.

The resulting tree differs from the base branch only by the feature itself:
the allow-list, the error message, and the new stateless test
`03000_s3_storage_class_validation`.
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 merged commit e4a7292 into backport/26.3/107251 Aug 1, 2026
1 check passed
@robot-clickhouse-ci-1
robot-clickhouse-ci-1 deleted the cherrypick/26.3/107251 branch August 1, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not test disable testing on pull request pr-cherrypick Cherry-pick of merge-commit before backporting. Do not use manually - automated use only!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants