Repository navigation
Take the format settings of object storage tables from the server, not the creating session - #126987
Conversation
…t the creating session `createStorageObjectStorage` built a table's format settings from the session that created it, plus the `SETTINGS` clause. The definition does not keep the session's settings, so once the table was loaded again (`ATTACH`, server startup) it read, wrote and inferred its structure with the server's settings instead. Now the format settings always come from the server's settings plus the `SETTINGS` clause, as for `File` and `URL`. This covers every engine created there: `S3`, `AzureBlobStorage`, `HDFS`, `GCS`, `COSN`, `OSS` and the data lake engines. Related: ClickHouse#126789 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
@PedroTadim, this is the fix for #126789 that you assigned to me, done as you suggested: the format settings come from the global context plus the table's |
|
Workflow [PR], commit [ba5306b] Summary: ✅
AI ReviewSummaryPR #126987, reviewed at Missing context / blind spots
Final VerdictStatus: ✅ Approve. No code changes requested; regression-test execution remains pending in CI. |
…the `SETTINGS` clause Object storage tables take their format settings from the server and their `SETTINGS` clause, not from the session that creates them, so `--output_format_parquet_row_group_size` given to the creating client no longer applies and the files are written with a single row group. This made `05339_iceberg_top_k_query_condition_cache` fail on master after ClickHouse#126987, which was reverted in ClickHouse#127378. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Edited by the nightly changelog CI job following .claude/skills/edit-changelog/SKILL.md. Changelog-revert: 125569 116724 Revert "Verify the server certificate hostname on outbound TLS connections" Changelog-revert: 125763 120058 Revert "Filter `PartsSplitter` layers on the key columns the sorting expression computed" Changelog-revert: 125827 125763 Revert "Revert "Filter `PartsSplitter` layers on the key columns the sorting expression computed"" Changelog-revert: 126138 125569 Revert "Revert "Verify the server certificate hostname on outbound TLS connections"" Changelog-revert: 126955 126145 Revert "Apply primary key pruning before read-time skip indexes on parallel replicas followers" Changelog-revert: 127378 126987 Revert "Take the format settings of object storage tables from the server, not the creating session" Changelog-deleted-entry: 126145 [Performance Improvement] [section] * With parallel replicas and `use_skip_indexes_on_data_read` (the default), follower replicas now evaluate skip indexes only over the primary key ranges of each part instead of the whole part, so they read about as much skip index data as the initiator. Closes [#124628](#124628). [#126145](#126145) ([Groene AI](https://github.com/groeneai)). Changelog-deleted-entry: 126987 [Backward Incompatible Change] [raw] * Tables with the `S3`, `AzureBlobStorage`, `HDFS` and data lake engines take format settings (e.g. `format_csv_delimiter`) from the server's settings and the table's `SETTINGS` clause, as `File` and `URL` do, and no longer from the session that creates them. Before, the session's values applied only until the table was loaded again, e.g. on server restart. To keep a format setting, state it in the table's `SETTINGS` clause. [#126987](#126987) ([Vadim Lopatin](https://github.com/buggins)).
Closes: #126789
An object storage table took its format settings from the session that created it, plus its
SETTINGSclause. The definition does not keep the session's settings, so after the table was loaded again (ATTACH, server startup) it read, wrote and inferred its structure with the server's settings instead: a table created afterSET format_csv_delimiter = ';'read its;-separated file until the next restart and failed to parse it after.As discussed in the issue, the format settings now always come from the server's settings plus the
SETTINGSclause, as forFileandURL. The change is increateStorageObjectStorage, so it covers every engine created there:S3,AzureBlobStorage,HDFS,GCS,COSN,OSSand the data lake engines.S3QueueandAzureQueuealready used the server's settings.The test checks
S3(MinIO) andAzureBlobStorage(Azurite): a session setting does not apply, even in the creating session, and a setting in theSETTINGSclause applies before and afterDETACH/ATTACH.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Tables with the
S3,AzureBlobStorage,HDFSand data lake engines take format settings (e.g.format_csv_delimiter) from the server's settings and the table'sSETTINGSclause, asFileandURLdo, and no longer from the session that creates them. Before, the session's values applied only until the table was loaded again, e.g. on server restart. To keep a format setting, state it in the table'sSETTINGSclause.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/126987]
Version info
26.11.1.518-master(included in26.11and later)