Repository navigation
Move TimeSeries and PromQL settings to the private preview tier and rename them to enable_* - #118124
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
Workflow [PR], commit [8722a21] Summary: ✅
AI ReviewSummaryThis PR renames the Findings
Tests
Final VerdictStatus: Minimum required actions: enforce LLVM Coverage ReportMeasured on commit 8722a21.
Changed lines: Changed C/C++ lines covered: 394/410 (96.10%) · Uncovered code |
- `enable_time_series_aggregate_functions` description starts with a capital letter (`01324_settings_documentation`). - The `TimeSeries` engine docs and the Prometheus interface page name the `enable_time_series_table` setting in inline code instead of linking to an anchor that the generated settings pages do not have yet (docs link check). - `04415_docs_web_ui_mdx_components_stripped` expects the `PrivatePreviewBadge` of the `TimeSeries` engine documentation instead of `ExperimentalBadge`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=daefa5b3d4cc9d5c4170729f8c18691cdfcdebde&name_0=PR&name_1=Fast%20test PR: #118124 Co-Authored-By: Claude Fable 5.1 <[email protected]>
| { | ||
| if (!settings[Setting::allow_experimental_time_series_table]) | ||
| throw Exception(ErrorCodes::SUPPORT_IS_DISABLED, "Support for PromQL dialect is disabled (turn on setting 'allow_experimental_time_series_table')"); | ||
| if (!settings[Setting::enable_time_series_table]) |
There was a problem hiding this comment.
This only renames the gate on the raw dialect=promql path. The same private-preview surface is still reachable through prometheusQuery / prometheusQueryRange (StoragePrometheusQuery::getConfiguration), timeSeriesSelector (StorageTimeSeriesSelector::getConfiguration), and the Prometheus HTTP API (PrometheusHTTPProtocolAPI::executePromQLQuery) without consulting enable_time_series_table.
That breaks the contract this PR is advertising: a user who already has a TimeSeries table can still execute PromQL with enable_time_series_table = 0, just not through this one parser entrypoint. Please move the check into shared TimeSeries/PromQL setup code, or reject those alternate entrypoints explicitly too.
| /** timeSeries* aggregate functions (private preview). */ \ | ||
| DECLARE_WITH_ALIAS(Bool, enable_time_series_aggregate_functions, false, R"( | ||
| Enables the `timeSeries*` aggregate functions for Prometheus-like time series resampling, rate, and delta calculation. | ||
| )", PRIVATE_PREVIEW, allow_experimental_time_series_aggregate_functions, allow_experimental_ts_to_grid_aggregate_function) \ |
There was a problem hiding this comment.
This is the first use of the new two-alias path, but the renamed time-series tests now exercise only enable_time_series_aggregate_functions. That leaves no focused proof that both legacy spellings still resolve to the same setting; the existing alias tests only cover the one-alias case.
Please add a small regression test that sets allow_experimental_time_series_aggregate_functions and allow_experimental_ts_to_grid_aggregate_function and verifies they both update enable_time_series_aggregate_functions / system.settings.alias_for.
…w_feature_tier` The test used `allow_experimental_time_series_table` as its example of an experimental setting. That setting is in the private preview tier now, so `allow_feature_tier = 1` no longer rejects it. Use `allow_experimental_funnel_functions` instead, as the test itself asks when an example setting changes tier. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=81fa223449b9f871afd301c197c1c179246ef9f4&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29 PR: #118124 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
A stray test-run artifact slipped into this PR: |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Compile time of recompiled translation units14 translation units recompiled, 81 s compile time in total, 14 of them have a recent master baseline. |
The settings `allow_experimental_time_series_table`, `time_series_prefer_recent_samples_table`, `allow_experimental_time_series_aggregate_functions`, `promql_database`, `promql_table` and `promql_evaluation_time` (with their aliases) move from `EXPERIMENTAL` to `PRIVATE_PREVIEW`. Default values do not change. The `TimeSeries` engine documentation uses `PrivatePreviewBadge` instead of `ExperimentalBadge`, and the error messages of `StorageTimeSeries` and the `timeSeries*` aggregate functions no longer call the feature experimental. Test `03257_setting_tiers` now expects the private preview tier to be non-empty for `system.settings`, and `03413` no longer needs to exclude `time_series_prefer_recent_samples_table` from the experimental tier check. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ries_*` `allow_experimental_time_series_table` becomes `enable_time_series_table` and `allow_experimental_time_series_aggregate_functions` becomes `enable_time_series_aggregate_functions`. The old names stay as aliases, as does the older `allow_experimental_ts_to_grid_aggregate_function`. `DECLARE_WITH_ALIAS` used to accept a single alias. The alias-map generator in `BaseSettings.h` now accepts one or two aliases, so a setting renamed twice keeps both of its previous names. Code, error messages, built-in documentation, tests, performance tests, CI configs and the Prometheus interface documentation use the new names. The old names stay on the `allow_*` style-check ignore list because they still appear in `Settings.cpp` as aliases. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The Python tests already reference `configs/enable_time_series_table.xml`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
- `enable_time_series_aggregate_functions` description starts with a capital letter (`01324_settings_documentation`). - The `TimeSeries` engine docs and the Prometheus interface page name the `enable_time_series_table` setting in inline code instead of linking to an anchor that the generated settings pages do not have yet (docs link check). - `04415_docs_web_ui_mdx_components_stripped` expects the `PrivatePreviewBadge` of the `TimeSeries` engine documentation instead of `ExperimentalBadge`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=daefa5b3d4cc9d5c4170729f8c18691cdfcdebde&name_0=PR&name_1=Fast%20test PR: #118124 Co-Authored-By: Claude Fable 5.1 <[email protected]>
The `TimeSeries` engine is in private preview now, not experimental. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…w_feature_tier` The test used `allow_experimental_time_series_table` as its example of an experimental setting. That setting is in the private preview tier now, so `allow_feature_tier = 1` no longer rejects it. Use `allow_experimental_funnel_functions` instead, as the test itself asks when an example setting changes tier. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=81fa223449b9f871afd301c197c1c179246ef9f4&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29 PR: #118124 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ter` Tests, a performance test and the documentation strings of the new `timeSeriesSumToGrid`, `timeSeriesAvgToGrid` and `timeSeriesCountToGrid` functions were added on `master` with `allow_experimental_time_series_table` and `allow_experimental_time_series_aggregate_functions`; switch them to `enable_time_series_table` and `enable_time_series_aggregate_functions`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
628f70b to
57facab
Compare
…s `master` The performance comparison applies a test's `<settings>` to both the patched and the reference server, and the reference `master` binary does not know `enable_time_series_table` and `enable_time_series_aggregate_functions` yet, so every `TimeSeries`/PromQL performance test failed at the settings stage: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=57facab8d0418f0545c61c3fca37048c4124a6c6&name_0=PR&name_1=Performance%20Comparison%20(arm_release%2C%20master_head%2C%201%2F6) Use the `allow_experimental_time_series_*` aliases there for now, as was done for the JSON, Variant and Dynamic renames; a follow-up can switch them once this change is in `master`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The merge of `master` introduced a duplicate include in `MergeTreeIndexConditionText.cpp`, which fails `readability-duplicate-include`. Apply the one-line fix already proposed in the related PR so this branch can run its remaining CI jobs. Related: #118661 Related: #118124 CI: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=118124&sha=bafedbbcc64a7a2e201917484f6abc5961633a02&name_0=PR&name_1=Build%20%28arm_tidy%29
Verify that both earlier aggregate setting names update `enable_time_series_aggregate_functions`, enable the aggregate functions, and report the correct `system.settings.alias_for`. Check the table setting alias and the tier of every promoted setting as well. Related: #118124
Keep existing tests and config files on the retained setting aliases. They already exercise both legacy aggregate names, so remove the redundant new test and the mechanical renames. Record only the two new setting names in `SettingsChangesHistory` and use `__VA_OPT__` for the optional second alias. Related: #118124
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
PromQL Compliance ReportBaseline: S3 master
Note: score is unchanged vs baseline. |
The master merge brought in the `TimeSeries` private-preview work (#118124), which added `getASCreateQuery`: because the columns of a `TimeSeries` table are always generated, an `AS <other table>` source that is not itself a `TimeSeries` table is now rejected with `INCORRECT_QUERY`, and that happens before the external `SAMPLES`/`TAGS` target is resolved. `05099_reattach_tables_access` asserts the opposite order - that `CREATE TABLE ts ENGINE = TimeSeries SAMPLES missing_samples AS src` fails with `UNKNOWN_TABLE` on the missing target - so with a `MergeTree` source the statement now stops one step earlier and the check reported `FAIL (unexpected error: ... Cannot CREATE a TimeSeries table AS ... because it is not a TimeSeries table)`. Make the source a `TimeSeries` table. The `AS` clause then passes and the statement fails on the missing target again, so the check keeps testing what it is for: the target is resolved before any source table is read, and the source must not be detached on the way. Verified against a server built from this branch - the statement returns `TimeSeries: Target table ... doesn't exist. (UNKNOWN_TABLE)` and the trace carries no `DETACH TABLE` for the source. Also switch the three uses to `enable_time_series_table`, the name the setting was renamed to; `allow_experimental_time_series_table` still works, but only as an alias.
Related: #113481
Related: #118661
Move the
TimeSeriesengine,promqldialect andtimeSeries*aggregate functions to private preview. Rename the two gates toenable_time_series_tableandenable_time_series_aggregate_functions, preserving defaults and all previous names as aliases.BaseSettings.haccepts an optional second alias to retain both legacy aggregate setting names. Existing tests and configs continue exercising the aliases. The branch includes the one-line duplicate-include fix from the related PR to unblockBuild (arm_tidy).Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The
TimeSeriestable engine, the PromQL dialect and thetimeSeries*aggregate functions are moved from the experimental tier to the private preview tier. Settingsallow_experimental_time_series_tableandallow_experimental_time_series_aggregate_functionsare renamed toenable_time_series_tableandenable_time_series_aggregate_functions; the old names remain as aliases.Workflow [PR]
Sync PR [sync-upstream/pr/118124]
Version info
26.9.1.972(included in26.9and later)