Skip to content

Conversation

@azevaykin
Copy link
Collaborator

Changelog entry

The goal is to remove spam like SELECT * FROM .metadata/initialization/migrations from UI Top Queries

Changelog category

  • Not for changelog (changelog entry is not required)

Description for reviewers

...

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

2025-11-01 15:53:55 UTC Pre-commit check linux-x86_64-relwithdebinfo for 34ddad5 has started.
2025-11-01 15:54:01 UTC Artifacts will be uploaded here
2025-11-01 15:55:23 UTC ya make is running...
🟡 2025-11-01 17:18:24 UTC Some tests failed, follow the links below. Going to retry failed tests...

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39119 36303 0 3 2791 22

2025-11-01 17:18:36 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-11-01 17:28:16 UTC Tests successful.

Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
47 (only retried tests) 34 0 0 0 13

🟢 2025-11-01 17:28:18 UTC Build successful.
🟢 2025-11-01 17:28:34 UTC ydbd size 2.3 GiB changed* by +880 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 88f362b merge: 34ddad5 diff diff %
ydbd size 2 428 979 184 Bytes 2 428 980 064 Bytes +880 Bytes +0.000%
ydbd stripped size 516 073 320 Bytes 516 073 576 Bytes +256 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

2025-11-01 15:54:00 UTC Pre-commit check linux-x86_64-release-asan for 34ddad5 has started.
2025-11-01 15:54:07 UTC Artifacts will be uploaded here
2025-11-01 15:55:28 UTC ya make is running...
🟡 2025-11-01 17:54:58 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
15527 15078 0 190 228 31

🟢 2025-11-01 17:55:09 UTC Build successful.
🟢 2025-11-01 17:55:32 UTC ydbd size 3.8 GiB changed* by +848 Bytes, which is < 100.0 KiB vs main: OK

ydbd size dash main: 5dbd26c merge: 34ddad5 diff diff %
ydbd size 4 068 332 720 Bytes 4 068 333 568 Bytes +848 Bytes +0.000%
ydbd stripped size 1 510 297 480 Bytes 1 510 297 736 Bytes +256 Bytes +0.000%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 1, 2025

🟢 2025-11-01 15:55:35 UTC The validation of the Pull Request description is successful.

Copy link
Contributor

Copilot AI left a 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.

Comment on lines 224 to 227
sb << "--!syntax_v1\n";
sb << "/*UI-QUERY-EXCLUDE*/" << Endl;
sb << "DECLARE $ids AS List<" << BuildColumnsSchemaTuple() << ">;" << Endl;
sb << "SELECT * FROM `" + tablePath + "`" << Endl;
Copy link

Copilot AI Nov 1, 2025

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.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant