Skip to content

Replace experimental settings by settings alias in tests - #120273

Merged
rschu1ze merged 10 commits into
masterfrom
tests-use-new-setting-names
Sep 25, 2026
Merged

rschu1ze merged 10 commits into
masterfrom
tests-use-new-setting-names

Conversation

@rschu1ze

@rschu1ze rschu1ze commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #119056

Adjusts tests to the new setting aliases

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Version info

  • Merged into: 26.10.1.672-master (included in 26.10 and later)

… tests

#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: #119056

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@rschu1ze rschu1ze changed the title Use new canonical names for former allow_experimental_* settings in… Replace experimental settings by settings alias in tests Sep 15, 2026
@clickhouse-gh

clickhouse-gh Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [58f7ca0]

Summary: ❌

job_name test_name status info comment
Performance Comparison (arm_release, master_head, 5/6) FAIL Performance dashboard
lazy_materialization_final_limit #1 FAIL dashboard IGNORED

AI Review

Summary

This PR renames test usage of the former allow_experimental_* settings to the canonical names introduced in #119056. The sweep is still incomplete, though: several Delta Lake, correlated-subquery, and join-right-table-sorting tests still use the old aliases, so the current diff does not satisfy its stated "tests/-wide rename" contract.

Findings

⚠️ Majors

  • [tests/integration/test_storage_delta/configs/users.d/enable_writes.xml:4, tests/integration/test_storage_delta/test.py:625, tests/integration/test_database_unity_v2/test.py:48] The Delta Lake write-path migration is still partial. The old-version-only enable_writes_old.xml exception is fine, but these three current-version paths still enable allow_experimental_delta_lake_writes, so part of the write coverage keeps exercising only the alias while the rest of the PR switches Delta tests to allow_delta_lake_writes. Rename these current-version call sites too, or narrow the PR title/description/commit message to a partial sweep.
  • [tests/queries/0_stateless/05023_86045_lambda_argument_capture_alias.sql:60, tests/queries/0_stateless/05023_86045_lambda_argument_capture_alias.sql:63, tests/queries/0_stateless/05056_86045_nested_alias_lambda_argument_capture.sql:5, tests/queries/0_stateless/05137_pr_disable_for_multiple_tables_execution.sql:89, tests/queries/0_stateless/05185_distributed_plan_fallback_contexts_stress.sql:93, tests/queries/0_stateless/05227_nested_correlated_beyond_outer_scope.sql:11] The correlated-subquery rename sweep is still incomplete. These analyzer regressions still opt in via allow_experimental_correlated_subqueries, so part of the correlated-subquery coverage keeps testing only the alias while the renamed files test allow_correlated_subqueries. Migrate these remaining files or scope the PR down to the subset it actually covers.
  • [tests/queries/0_stateless/05054_hash_join_gather.sql:278] The join-right-table-sorting family still has an alias-only path. Arm 9 in 05054_hash_join_gather.sql keeps allow_experimental_join_right_table_sorting = 1, so this PR still leaves one reranged-control query path on the alias even though the renamed companion tests use allow_join_right_table_sorting. Rename this setting too, or explicitly scope the change down.
Final Verdict
  • Status: ⚠️ Request changes
  • Minimum required actions: finish the remaining allow_experimental_* to canonical-name replacements called out above, or narrow the PR title/description/commit message so it no longer promises a complete tests/ sweep.

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Sep 15, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-testing Test content only (no production code). label Sep 15, 2026
instance.query(
f"INSERT INTO {table_name} SELECT number AS a, toString(number + 1) AS b FROM numbers(10, 10)",
settings={"allow_experimental_delta_lake_writes": 1},
settings={"allow_delta_lake_writes": 1},

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.

test_storage_delta still has two current-version write-path uses of allow_experimental_delta_lake_writes: the default profile in tests/integration/test_storage_delta/configs/users.d/enable_writes.xml:4 and test_partition_key_cast_overflow at tests/integration/test_storage_delta/test.py:625. Because node1/node2 and that insert path still pass through the legacy alias, this sweep does not actually prove that the canonical allow_delta_lake_writes name works everywhere this suite exercises Delta writes. If the goal is to migrate tests/ to the canonical name, these remaining uses need to move too; enable_writes_old.xml is the deliberate old-version exception.

@@ -1,5 +1,5 @@
set enable_analyzer = 1;
set allow_experimental_correlated_subqueries = 1;
set allow_correlated_subqueries = 1;

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.

This rename sweep is still incomplete for correlated-subquery coverage: tests/queries/0_stateless/05023_86045_lambda_argument_capture_alias.sql:60-63, tests/queries/0_stateless/05056_86045_nested_alias_lambda_argument_capture.sql:5, and tests/queries/0_stateless/05227_nested_correlated_beyond_outer_scope.sql:11 still use allow_experimental_correlated_subqueries. Since the PR promise is to move tests/ to canonical names, these cases would keep exercising only the alias while the rest of the analyzer coverage uses allow_correlated_subqueries. Please migrate those remaining files too, or scope the PR and commit message down to a partial sweep.

INSERT INTO test_right SELECT number % 10 , number % 10, number % 10 FROM numbers(10000);

SET allow_experimental_join_right_table_sorting = true;
SET allow_join_right_table_sorting = true;

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.

allow_join_right_table_sorting is still only partially migrated here. tests/queries/0_stateless/05054_hash_join_gather.sql:278 still uses allow_experimental_join_right_table_sorting = 1 for the Arm 9 reranged-control case, so this PR leaves one join-right-table-sorting query path exercising the alias even though the PR body and commit message say the tests/ sweep is complete. Please rename that remaining use too, or scope the PR description down to a partial sweep.

"allow_database_unity_catalog": 1,
"allow_experimental_delta_kernel_rs": 1,
"allow_experimental_delta_lake_writes": 1,
"allow_delta_lake_writes": 1,

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.

This still is not a complete allow_delta_lake_writes sweep. tests/integration/test_database_unity_v2/test.py:47-50 still defines DELTA_WRITE_SETTINGS with allow_experimental_delta_lake_writes, so the Unity v2 write path keeps exercising only the alias while this file switches the rest of the Delta coverage to the canonical name. If the contract is to migrate tests/ to canonical names, that suite needs the same rename too, or the PR description and commit message should be scoped down to a partial sweep.

-- { echoOn }

SET allow_experimental_correlated_subqueries = 1;
SET allow_correlated_subqueries = 1;

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 correlated-subquery sweep is still incomplete beyond the files already discussed: tests/queries/0_stateless/05137_pr_disable_for_multiple_tables_execution.sql:89 and tests/queries/0_stateless/05185_distributed_plan_fallback_contexts_stress.sql:93 still set allow_experimental_correlated_subqueries. That leaves two current analyzer paths exercising only the alias even though this PR renames the rest of the correlated-subquery coverage to allow_correlated_subqueries. Please migrate those too, or scope the PR and commit message down to a partial sweep.

@rschu1ze
rschu1ze added this pull request to the merge queue Sep 25, 2026
Merged via the queue into master with commit eeff207 Sep 25, 2026
171 of 173 checks passed
@rschu1ze
rschu1ze deleted the tests-use-new-setting-names branch September 25, 2026 13:36
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 25, 2026
clickgapai added a commit to clickgapai/ClickHouse that referenced this pull request Oct 5, 2026
Master moved the tests to the canonical setting name in ClickHouse#120273, including
line 10 of this file. After merging master, the new block was the only part
of this file still using the alias. Same setting, so behaviour is unchanged.

Requested by @harikrishnan94 in ClickHouse#121574 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-testing Test content only (no production code). 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