Repository navigation
Replace experimental settings by settings alias in tests - #120273
Conversation
… 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]>
allow_experimental_* settings in…|
Workflow [PR], commit [58f7ca0] Summary: ❌
AI ReviewSummaryThis PR renames test usage of the former Findings
Final Verdict
|
| 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}, |
There was a problem hiding this comment.
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; | |||
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
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)
Follow-up to #119056
Adjusts tests to the new setting aliases
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/120273]
Version info
26.10.1.672-master(included in26.10and later)