- 
                Notifications
    
You must be signed in to change notification settings  - Fork 727
 
UI-QUERY-EXCLUDE for metadata queries #28155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| 
          
 ⚪  ⚪  Ya make output | Test bloat | Test bloat 
 🟢  
 *please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation  | 
    
| 
          
 ⚪  
 🟢  
 *please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation  | 
    
| 
          
 🟢   | 
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds /*UI-QUERY-EXCLUDE*/ comments to SQL queries to mark them as internal queries that should be excluded from UI query logging or monitoring.
- Adds UI exclusion marker to metadata manager's SELECT query builder
 - Adds UI exclusion marker to data source table accessor's snapshot fetching query
 
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description | 
|---|---|
| ydb/services/metadata/manager/table_record.cpp | Adds /*UI-QUERY-EXCLUDE*/ comment to the BuildSelectQuery method | 
| ydb/services/metadata/ds_table/accessor_snapshot_base.cpp | Adds /*UI-QUERY-EXCLUDE*/ comment to the snapshot fetching query builder | 
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| sb << "--!syntax_v1\n"; | ||
| sb << "/*UI-QUERY-EXCLUDE*/" << Endl; | ||
| sb << "DECLARE $ids AS List<" << BuildColumnsSchemaTuple() << ">;" << Endl; | ||
| sb << "SELECT * FROM `" + tablePath + "`" << Endl; | 
    
      
    
      Copilot
AI
    
    
    
      Nov 1, 2025 
    
  
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The /*UI-QUERY-EXCLUDE*/ comment is only added to BuildSelectQuery, but similar query-building methods in the same file (BuildUpsertQuery, BuildInsertQuery, BuildDeleteQuery, BuildUpdateQuery) don't have this marker. Consider whether these other internal metadata queries should also be excluded from UI visibility for consistency.
Changelog entry
The goal is to remove spam like
SELECT * FROM .metadata/initialization/migrationsfrom UI Top QueriesChangelog category
Description for reviewers
...