Skip to content

Mark log_query_plans as experimental - #132608

Merged
Manerone merged 2 commits into
masterfrom
manerone-log-query-plans-experimental
Nov 18, 2026
Merged

Manerone merged 2 commits into
masterfrom
manerone-log-query-plans-experimental

Conversation

@Manerone

@Manerone Manerone commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

log_query_plans stores the executed query plan with per-step statistics in system.query_log.query_plan. It was added with the BETA tier, but the stored format is still going to change: #132477 masks the plan and declines some plans, and a follow-up will remove result values from the plan, keeping only the plan and its statistics. This moves log_query_plans and its companion log_query_plans_max_size to the EXPERIMENTAL tier. query_plan_max_step_description_length keeps its tier, because EXPLAIN and the analyzer use it too.

The setting is not in any release yet, so there is no changelog entry.

Related: #123059
Related: #132477

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

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

Version info

  • Merged into: 26.11.1.2715-master (included in 26.11 and later)

The format of the plan stored in `system.query_log.query_plan` is still
changing (masking, removal of result values), so the settings move from
`BETA` and production to the `EXPERIMENTAL` tier.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [00a4aaf]

Summary: ✅


AI Review

Summary

Reviewed PR #132608 at 00a4aafb46df84bc661cf674c08054bf6d88e73d. The change marks log_query_plans and log_query_plans_max_size as EXPERIMENTAL while the stored plan format evolves. No actionable findings. Review was static; no local build or tests were run.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Nov 18, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-logging Logging/monitoring/observability (logs, metrics, tracing, instrumentation). label Nov 18, 2026
@Fgrtue Fgrtue self-assigned this Nov 18, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 00a4aafb4 with master 4564d472d (stripped binary size, per-symbol sizes and ThinLTO time; 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

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

Job report

@Manerone
Manerone added this pull request to the merge queue Nov 18, 2026
Merged via the queue into master with commit f3e79c3 Nov 18, 2026
381 of 382 checks passed
@Manerone
Manerone deleted the manerone-log-query-plans-experimental branch November 18, 2026 13:13
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Nov 18, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Nov 18, 2026
…w-defer-plan-optimization

Since ClickHouse#130552 a DEFINER view read by its definer is not sealed, so the views of
the clone cases in 05257 now have another definer: the default user still reads
them sealed with the plan visible. ReadFromSealedViewStep takes the comment on
getBuiltChildPlans that ClickHouse#132608 added to the class in StorageView.cpp, and
[[nodiscard]] for modernize-use-nodiscard (ClickHouse#126158).

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

Labels

comp-logging Logging/monitoring/observability (logs, metrics, tracing, instrumentation). 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.

3 participants