Repository navigation
Add aliases for allow_experimental settings, pt. II - #119949
Conversation
|
Workflow [PR], commit [a494131] Summary: ✅
AI ReviewSummaryThis PR renames 14 feature settings, retains the previous names as input aliases, updates their consumers and documentation, and preserves the persistent Iceberg table-setting alias. The earlier persistence and documentation findings are addressed. One acknowledged compatibility regression remains; no additional inline findings were identified. Findings❌ Blockers
Tests
Final VerdictStatus: ❌ Block. Preserve the renamed settings across supported mixed-version connections and cover that behavior with a focused regression. The dismissed finding is retained here only; no reply or duplicate inline comment was posted. |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units137 translation units recompiled, 1406 s compile time in total, 137 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.06 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. Symbol sizes
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Algunenano
left a comment
There was a problem hiding this comment.
Changes look good (automatic). Note that with the recent migration to inline settings history I think we don't need to add history for aliases, since they share it with the main definition, so we should not need to add something like: {"enable_database_materialized_postgresql", false, false, "Added an alias for setting allow_experimental_database_materialized_postgresql."},. Just rename it and add the alias.
If we do need to add it, we probably should improve the style check instead
|
The PR kept running into conflicts. I'm re-doing it locally again. I'll keep the history changes in mind, tnx. |
Tests fail unfortunately. I'll restore the history within this PR. Let's do a sweep over all settings and their history to remove history entries for aliases in one go --> separate PR. |
Apply the setting renames from ClickHouse#119949 on top of current master. "experimental" must no longer occur in setting names (the tier already indicates this). The old names are kept as aliases via `DECLARE_WITH_ALIAS`, and each renamed setting gets a 26.10 history record: - `allow_experimental_database_materialized_postgresql` -> `enable_database_materialized_postgresql` - `allow_experimental_database_hms_catalog` -> `enable_database_hms_catalog` - `allow_experimental_kusto_dialect` -> `enable_kusto_dialect` - `allow_experimental_prql_dialect` -> `enable_prql_dialect` - `allow_experimental_polyglot_dialect` -> `enable_polyglot_dialect` - `allow_experimental_cleanup_old_data_files_compaction` -> `enable_cleanup_old_data_files_compaction` - `allow_experimental_expire_snapshots` -> `allow_expire_snapshots` - `allow_experimental_ytsaurus_table_engine` -> `enable_ytsaurus_table_engine` - `allow_experimental_ytsaurus_table_function` -> `enable_ytsaurus_table_function` - `allow_experimental_ytsaurus_dictionary_source` -> `enable_ytsaurus_dictionary_source` - `allow_experimental_paimon_storage_engine` -> `enable_paimon_storage_engine` - `allow_experimental_object_storage_queue_hive_partitioning` -> `enable_object_storage_queue_hive_partitioning` - `allow_experimental_database_paimon_rest_catalog` -> `enable_database_paimon_rest_catalog` - `allow_experimental_eval_table_function` -> `enable_eval_table_function` The settings history now lives inline in `Settings.cpp`, so the records were added there instead of `SettingsChangesHistory.cpp`. Usages that appeared on master after the PR branch point were renamed as well. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Apply the setting renames from #119949 on top of current master. "experimental" must no longer occur in setting names (the tier already indicates this). The old names are kept as aliases via `DECLARE_WITH_ALIAS`, and each renamed setting gets a 26.10 history record: - `allow_experimental_database_materialized_postgresql` -> `enable_database_materialized_postgresql` - `allow_experimental_database_hms_catalog` -> `enable_database_hms_catalog` - `allow_experimental_kusto_dialect` -> `enable_kusto_dialect` - `allow_experimental_prql_dialect` -> `enable_prql_dialect` - `allow_experimental_polyglot_dialect` -> `enable_polyglot_dialect` - `allow_experimental_cleanup_old_data_files_compaction` -> `enable_cleanup_old_data_files_compaction` - `allow_experimental_expire_snapshots` -> `allow_expire_snapshots` - `allow_experimental_ytsaurus_table_engine` -> `enable_ytsaurus_table_engine` - `allow_experimental_ytsaurus_table_function` -> `enable_ytsaurus_table_function` - `allow_experimental_ytsaurus_dictionary_source` -> `enable_ytsaurus_dictionary_source` - `allow_experimental_paimon_storage_engine` -> `enable_paimon_storage_engine` - `allow_experimental_object_storage_queue_hive_partitioning` -> `enable_object_storage_queue_hive_partitioning` - `allow_experimental_database_paimon_rest_catalog` -> `enable_database_paimon_rest_catalog` - `allow_experimental_eval_table_function` -> `enable_eval_table_function` The settings history now lives inline in `Settings.cpp`, so the records were added there instead of `SettingsChangesHistory.cpp`. Usages that appeared on master after the PR branch point were renamed as well. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Dear @Algunenano, you haven't been active on this PR for 30 days. You will be unassigned. Will you continue working on it? If so, please feel free to reassign yourself. |
Conflict resolutions: - `enable_kusto_dialect`: keep the `BETA` tier from master and the alias from this PR. - Keep the new settings from master (`iceberg_orphan_files_min_retention_seconds`, `promql_max_points_per_series`, `promql_push_down_label_matchers`) next to the renamed ones. - Keep master's updated descriptions and code (`max_query_size_for_query_text`, YTsaurus header check) with the new setting names. - The alias history entries are now in 26.11, because the renames land in 26.11. - Tests added on master that use the old names are switched to the new names. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…p_old_data_files_compaction` `enable_cleanup_old_data_files_compaction` of `DataLakeStorageSettings` is stored in the table definition, so its previous name `allow_experimental_cleanup_old_data_files_compaction` is kept as an alias (added in the previous merge commit), and the definitions written by older versions still load. `ALTER TABLE ... MODIFY SETTING` and `RESET SETTING` on an Iceberg table can use either name. `isSameSetting` now also resolves the aliases of `DataLakeStorageSettings`, so modifying the setting under its other name replaces the existing entry of the definition instead of adding a second one. Add a test which loads a definition written with the previous name. Co-Authored-By: Claude Opus 5.5 <[email protected]>
| {"26.11", false, false, "Added an alias for setting `allow_experimental_database_hms_catalog`."}, \ | ||
| {"25.5", false, false, "Allow experimental database engine DataLakeCatalog with catalog_type = 'hive'"}) \ | ||
| DECLARE(Bool, allow_experimental_kusto_dialect, false, R"( | ||
| DECLARE_WITH_ALIAS(Bool, enable_kusto_dialect, false, R"( |
There was a problem hiding this comment.
❌ Blocker: preserve the old serialized names for older peers
The alias preserves the old spelling on input, but BaseSettings::write emits the canonical name, and Connection::sendQuery does not translate it for older peers. For example, a client built from this PR running clickhouse-client --allow_experimental_kusto_dialect=1 --dialect=kusto --query 'print 1' against a pre-rename server now sends enable_kusto_dialect, even though the command uses the old option. That server skips the unknown setting, leaves allow_experimental_kusto_dialect disabled, and rejects the query with SUPPORT_IS_DISABLED.
This affects the other renamed settings through the same native serialization path as well. Please retain the old serialized names for older peers, or keep the old canonical names and introduce the new spellings as aliases. Add a focused new-client/old-server regression; retaining an input alias alone does not preserve this compatibility.
There was a problem hiding this comment.
🕵 The incompatibility is real, but it is not specific to this PR. Every setting renamed with an alias has worked this way: pt. I (#119056, already merged), allow_experimental_analyzer -> enable_analyzer, allow_experimental_time_time64_type -> enable_time_time64_type, insert_distributed_sync -> distributed_foreground_insert, and others. In each case BaseSettings::write sends the canonical name, and Connection::sendQuery does not translate it based on server_revision. So a new client that sets a renamed, non-IMPORTANT setting against an older server has always had the setting ignored. For the gates renamed here, that surfaces as an explicit SUPPORT_IS_DISABLED error rather than silently wrong results, and the fix on the user's side is to set the setting server-side or in a profile.
There are two ways to avoid this, and both are larger, cross-cutting design decisions rather than part of this rename:
- add revision-aware down-translation of aliased names in the native protocol, which would apply to all aliased settings;
- keep the old canonical names, which contradicts the goal of removing
experimentalfrom setting names.
The PR is approved with the current approach, so I'm leaving this thread open for a maintainer to decide whether such a mechanism should be added in a separate change.
Continuation of #119056
"experimental" must no longer occur in setting names (the tier already indicates this). This PR renames
allow_experimental_database_materialized_postgresql->enable_database_materialized_postgresqlallow_experimental_database_hms_catalog->enable_database_hms_catalogallow_experimental_kusto_dialect->enable_kusto_dialectallow_experimental_prql_dialect->enable_prql_dialectallow_experimental_polyglot_dialect->enable_polyglot_dialectallow_experimental_cleanup_old_data_files_compaction->enable_cleanup_old_data_files_compactionallow_experimental_expire_snapshots->allow_expire_snapshotsallow_experimental_ytsaurus_table_engine->enable_ytsaurus_table_engineallow_experimental_ytsaurus_table_function->enable_ytsaurus_table_functionallow_experimental_ytsaurus_dictionary_source->enable_ytsaurus_dictionary_sourceallow_experimental_paimon_storage_engine->enable_paimon_storage_engineallow_experimental_object_storage_queue_hive_partitioning->enable_object_storage_queue_hive_partitioningallow_experimental_database_paimon_rest_catalog->enable_database_paimon_rest_catalogallow_experimental_eval_table_function->enable_eval_table_functionChangelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/119949]
Version info
26.11.1.1315-master(included in26.11and later)