Skip to content

Add aliases for allow_experimental settings, pt. I - #119056

Merged
rschu1ze merged 5 commits into
masterfrom
alias
Sep 14, 2026
Merged

rschu1ze merged 5 commits into
masterfrom
alias

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Sep 9, 2026 •

Copy link
Copy Markdown
Member

As per a new rule, experimental must no longer occur in settings names. The fact that a setting is experimental (or beta) is already indicated by its tier. Also, not having experimental settings means fewer settings renamings and aliases in the long run.

This PR introduces aliases for existing settings that violated this rule.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/119056]

Version info

  • Merged into: 26.9.1.1453 (included in 26.9 and later)

@rschu1ze rschu1ze changed the title Add aliases for allow_experimental settings, pt. I Add aliases for allow_experimental settings, pt. I Sep 9, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [2139f87]

Summary: ✅


AI Review

Summary

This PR makes a batch of non-allow_experimental aliases the canonical names for several experimental and beta settings, and it updates the touched code paths to use those new names. The alias plumbing itself looks consistent, but the documentation fallout is incomplete: one source-level link is still wrong, and several hand-written English docs surfaces still point users at the old names and anchors.

PR Metadata
  • Changelog category: Not for changelog is not correct. This PR changes the canonical setting names exposed by system.settings, diagnostics, and docs, so it is user-visible and should be Improvement.
  • Changelog entry: required for Improvement and currently missing. Suggested text: Renamed several experimental and beta session settings to canonical names without the \allow_experimental_` prefix; the old names remain supported as aliases.`
Findings

⚠️ Majors

  • [src/Storages/StorageURL.cpp:2752] allow_url_wildcard_from_index_pages is now the canonical name, but this doc link still points at /reference/settings/session-settings/allow-experimental#allow_url_wildcard_from_index_pages. After docs autogeneration the setting will live under the allow_* reference page, so the URL engine docs will link to a missing anchor. Suggested fix: point this at /reference/settings/session-settings/allow#allow_url_wildcard_from_index_pages.
  • [src/Core/Settings.cpp:8229] These canonical-name flips are not reflected in the hand-written docs surfaces that are not autogenerated from Settings.cpp. For example, docs/guides/use-cases/data-warehousing/getting-started/best-practices.mdx:77,243 still links allow_delta_lake_writes to the old allow-experimental anchor, docs/integrations/connectors/data-ingestion/kafka/kafka-clickhouse-connect-sink.mdx:446 still documents allow_experimental_nullable_tuple_type, and both docs/reference/settings/beta-and-experimental-features.mdx and docs/snippets/components/SessionSettingsExplorer/SessionSettingsExplorer.jsx still enumerate only the old names. Those files were updated when allow_delta_kernel_rs became canonical, but they will not self-heal from this source change, so the docs site will keep advertising stale names and some links will stop resolving. Suggested fix: update the hand-written docs and explorer data to the new canonical names and anchors in the same PR.
Final Verdict

⚠️ Needs changes before merge: the setting renames themselves look consistent, but the documentation fallout is incomplete and will leave broken or stale user-facing references.

LLVM Coverage Report

Measured on commit 2139f87.

Metric Baseline Current Δ
Lines 89.00% 89.00% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 81.40% 81.40% +0.00%

Changed lines: Changed C/C++ lines covered: 300/324 (92.59%) · Uncovered code

Full report · Diff report

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 9, 2026
## Wildcards with HTTP index pages {#wildcards-with-http-index-pages}

When [allow_experimental_url_wildcard_from_index_pages](/reference/settings/session-settings/allow-experimental#allow_experimental_url_wildcard_from_index_pages) is enabled, the `URL` table engine can expand wildcards by fetching HTTP index pages and extracting links from them.
When [allow_url_wildcard_from_index_pages](/reference/settings/session-settings/allow-experimental#allow_url_wildcard_from_index_pages) is enabled, the `URL` table engine can expand wildcards by fetching HTTP index pages and extracting links from them.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The canonical setting name here is now allow_url_wildcard_from_index_pages, so its generated reference page moves under /reference/settings/session-settings/allow, not /allow-experimental (that is how the other renamed allow_* settings like allow_delta_kernel_rs are rendered). Keeping the old page path here will leave the URL engine docs with a link whose anchor does not exist after docs autogeneration. Please point this at /reference/settings/session-settings/allow#allow_url_wildcard_from_index_pages.

@rschu1ze
rschu1ze marked this pull request as ready for review September 9, 2026 16:05
@clickhouse-gh clickhouse-gh Bot added the comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). label Sep 9, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 2139f87be with master 0e76c3964 (stripped binary size, per-symbol sizes and ThinLTO time; object sizes against the warmup build of cf56cdec3; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes

programs/clickhouse-stripped: smaller than the master baseline by the known offset between the two builds, so the difference is not shown. A delta that differs from the offset by more than 50% of it is shown, in either direction.

The official master build is compiled with -g and a pull request build is not, and XRay counts debug instructions towards its instrumentation threshold, so master instruments thousands of functions more and its binary is ~0.4% larger no matter what the pull request does.

Compile time of recompiled translation units

49 translation units recompiled, 338 s compile time in total, 49 of them have a recent master baseline.

Job report

Comment thread src/Core/Settings.cpp
Defines a bytes limit for a single inserted data file in delta lake.
)", 0) \
DECLARE_WITH_ALIAS(Bool, allow_experimental_delta_lake_writes, false, R"(
DECLARE_WITH_ALIAS(Bool, allow_delta_lake_writes, false, R"(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These canonical-name flips also need the non-generated docs surfaces updated in the same PR. docs/guides/use-cases/data-warehousing/getting-started/best-practices.mdx:77,243 still links allow_delta_lake_writes to /reference/settings/session-settings/allow-experimental#allow_experimental_delta_lake_writes, docs/integrations/connectors/data-ingestion/kafka/kafka-clickhouse-connect-sink.mdx:446 still documents allow_experimental_nullable_tuple_type, and both docs/reference/settings/beta-and-experimental-features.mdx and docs/snippets/components/SessionSettingsExplorer/SessionSettingsExplorer.jsx still enumerate only the old names. Those files were updated when allow_delta_kernel_rs became canonical, but they are not autogenerated from Settings.cpp, so after this rename the docs site will keep advertising stale names and some of those links will stop resolving.

@rschu1ze
rschu1ze added this pull request to the merge queue Sep 14, 2026
Merged via the queue into master with commit eb882b4 Sep 14, 2026
177 checks passed
@rschu1ze
rschu1ze deleted the alias branch September 14, 2026 10:46
@robot-ch-test-poll2 robot-ch-test-poll2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 14, 2026
alexey-milovidov added a commit that referenced this pull request Sep 14, 2026
…ation tests

These two tests needed an alias whose history is its own, and they used
`enable_analyzer` for it until this branch made that setting obsolete, at which
point the alias stops being exposed. The replacement picked then,
`allow_database_iceberg`, has since stopped being an alias at all: master's
promotion of the `allow_experimental_*` settings to plain names
(#119056) made it the canonical
name and `allow_experimental_database_iceberg` the alias, so the tests were
reading the canonical setting's full documentation.

Querying the other side of that pair would satisfy the reference but falsify the
comment: the alias inherits both of the canonical's records, so its history is
not "distinct from the history of the setting it resolves to". `os_thread_priority`
has the property the comment describes - its own record,
`{"os_thread_priority", 0, 0, "Alias for os_threads_nice_value_query."}`, against
the canonical's `{"os_threads_nice_value_query", 0, 0, "New setting."}` - and,
not being an `allow_experimental_*` name, it is not exposed to the renaming that
broke the previous choice.

The expected strings are recorded from a master build that carries the same
declaration and the same two history records as this branch, verified by
reproducing the canonical setting's rendering that CI reported byte for byte.
huldarchen pushed a commit to huldarchen/ClickHouse that referenced this pull request Sep 18, 2026
Algunenano pushed a commit to Algunenano/ClickHouse that referenced this pull request Sep 25, 2026
… tests

ClickHouse#119056 renamed fourteen
settings and kept the old `allow_experimental_*` names as aliases. This
switches all tests under `tests/` to the new canonical names:

- `allow_experimental_url_wildcard_from_index_pages` -> `allow_url_wildcard_from_index_pages`
- `allow_experimental_kafka_offsets_storage_in_keeper` -> `allow_kafka_offsets_storage_in_keeper`
- `allow_experimental_correlated_subqueries` -> `allow_correlated_subqueries`
- `allow_experimental_geo_types_in_iceberg` -> `allow_geo_types_in_iceberg`
- `allow_experimental_delta_lake_writes` -> `allow_delta_lake_writes`
- `allow_experimental_database_iceberg` -> `allow_database_iceberg`
- `allow_experimental_database_unity_catalog` -> `allow_database_unity_catalog`
- `allow_experimental_database_glue_catalog` -> `allow_database_glue_catalog`
- `allow_experimental_nullable_tuple_type` -> `enable_nullable_tuple_type`
- `allow_experimental_materialized_postgresql_table` -> `enable_materialized_postgresql_table`
- `allow_experimental_funnel_functions` -> `enable_funnel_functions`
- `allow_experimental_unique_key` -> `enable_unique_key`
- `allow_experimental_join_right_table_sorting` -> `allow_join_right_table_sorting`
- `allow_experimental_json_lazy_type_hints` -> `enable_json_lazy_type_hints`

Test `04356_nullable_tuple_type_setting` deliberately exercises the alias,
so it keeps `allow_experimental_nullable_tuple_type` but with the roles of
canonical name and alias swapped. The frozen baseline of
`03999_stateless_settings_history` is left untouched: that test ignores
aliases and its snapshot must never receive new names.

Related: ClickHouse#119056

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-settings Settings & configuration infrastructure (server/user/query settings, profiles). pr-not-for-changelog This PR should not be mentioned in the changelog 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.

2 participants