Repository navigation
Set query_id in system.trace_log for dictionary auto-reloads - #98784
Merged
mstetsyuk merged 2 commits intoMar 5, 2026
Merged
Conversation
mstetsyuk
marked this pull request as draft
March 4, 2026 20:09
Contributor
mstetsyuk
marked this pull request as ready for review
March 5, 2026 18:33
azat
approved these changes
Mar 5, 2026
1 task
mstetsyuk
deleted the
set-system-trace-log-query-id-for-dictionary-auto-reloads
branch
March 5, 2026 21:43
Member
|
@mstetsyuk PTAL |
Member
Author
|
flaky test fix: #98910 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Make
system.trace_logentries for ClickHouse dictionaries' auto-reloads have non-empty query IDs.Documentation entry for user-facing changes
Note
Low Risk
Low risk: change only reorders when
setCurrentQueryId({})is applied for local dictionary queries to improve logging/tracing, with added test coverage.Overview
Ensures local
ClickHouseDictionarySourceexecutions setcontext_copy->setCurrentQueryId({})before creatingCurrentThread::QueryScope, so internal dictionary reload queries produce non-emptyquery_idvalues usable bysystem.trace_log.Extends
03701_dictionary_logging_internal_queriesto also assert that profiler (trace_log) entries from dictionary auto-reloads have aquery_idmatching the corresponding internalsystem.query_logrecords, and marks the test with tags to skip sanitizer/debug runners.Written by Cursor Bugbot for commit e363fd2. This will update automatically on new commits. Configure here.
Version info
26.3.1.449