Skip to content

Added a new sdk method DescribeSystemView and a corresponded Grpc service #20603

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

Merged
merged 1 commit into from
Jul 30, 2025

Conversation

n00bcracker
Copy link
Collaborator

Added dedicated method to describe system views via cpp sdk.
Before these changes describing system views was as describing table, but many options and attributes related to ordinal tables were inaccessible for system view, so DescribeTable method was redundant.

@n00bcracker n00bcracker linked an issue Jul 3, 2025 that may be closed by this pull request

This comment was marked as outdated.

@n00bcracker n00bcracker force-pushed the support_sysview_cpp_sdk branch from 15434ee to 16def4c Compare July 4, 2025 08:11

This comment was marked as outdated.

This comment was marked as outdated.

@ydb-platform ydb-platform deleted a comment from github-actions bot Jul 4, 2025
@ydb-platform ydb-platform deleted a comment from github-actions bot Jul 4, 2025
@n00bcracker n00bcracker marked this pull request as ready for review July 4, 2025 11:30
@n00bcracker n00bcracker requested review from a team as code owners July 4, 2025 11:30
@Gazizonoki Gazizonoki requested a review from pnv1 July 4, 2025 15:26
@n00bcracker n00bcracker force-pushed the support_sysview_cpp_sdk branch 2 times, most recently from 48308d9 to b78a9db Compare July 4, 2025 21:33
@ydb-platform ydb-platform deleted a comment from github-actions bot Jul 4, 2025
@ydb-platform ydb-platform deleted a comment from github-actions bot Jul 4, 2025

This comment was marked as outdated.

This comment was marked as outdated.

@n00bcracker n00bcracker force-pushed the support_sysview_cpp_sdk branch from b78a9db to 44a655a Compare July 21, 2025 10:16

This comment was marked as outdated.

This comment was marked as outdated.

@n00bcracker n00bcracker force-pushed the support_sysview_cpp_sdk branch from 44a655a to d406f44 Compare July 29, 2025 07:47
@n00bcracker n00bcracker force-pushed the support_sysview_cpp_sdk branch from d406f44 to 8342825 Compare July 29, 2025 09:02
Copy link

github-actions bot commented Jul 29, 2025

2025-07-29 09:03:18 UTC Pre-commit check linux-x86_64-release-asan for 0b6eee2 has started.
2025-07-29 09:03:44 UTC Artifacts will be uploaded here
2025-07-29 09:08:32 UTC ya make is running...
🟡 2025-07-29 11:42:00 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
17254 16858 0 103 268 25

🟢 2025-07-29 11:43:40 UTC Build successful.
🟡 2025-07-29 11:44:08 UTC ydbd size 3.9 GiB changed* by +1.9 MiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: a9da60a merge: 0b6eee2 diff diff %
ydbd size 4 226 234 240 Bytes 4 228 199 952 Bytes +1.9 MiB +0.047%
ydbd stripped size 1 463 831 160 Bytes 1 464 557 208 Bytes +709.0 KiB +0.050%

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

Copy link

github-actions bot commented Jul 29, 2025

2025-07-29 09:04:42 UTC Pre-commit check linux-x86_64-relwithdebinfo for 0b6eee2 has started.
2025-07-29 09:05:22 UTC Artifacts will be uploaded here
2025-07-29 09:09:56 UTC ya make is running...
🟡 2025-07-29 11:10:26 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
39788 37010 0 6 2742 30

2025-07-29 11:14:00 UTC ya make is running... (failed tests rerun, try 2)
🟢 2025-07-29 11:26:57 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
466 (only retried tests) 392 0 0 49 25

🟢 2025-07-29 11:27:06 UTC Build successful.
🟡 2025-07-29 11:27:25 UTC ydbd size 2.2 GiB changed* by +984.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: a9da60a merge: 0b6eee2 diff diff %
ydbd size 2 403 771 024 Bytes 2 404 778 752 Bytes +984.1 KiB +0.042%
ydbd stripped size 502 349 096 Bytes 502 497 832 Bytes +145.2 KiB +0.030%

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

@@ -1806,6 +1811,9 @@ class TSession {
TAsyncDescribeExternalTableResult DescribeExternalTable(const std::string& path,
const TDescribeExternalTableSettings& settings = {});

TAsyncDescribeSystemViewResult DescribeSystemView(const std::string& path,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А почему это метод на сессии? Ему же Session Id не нужен.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DescribeExternalTable тоже не использует SessionId, сделал по аналогии.
Подскажи, а куда тогда поместить этот метод?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Хм, тогда и там значит неправильно сделано. С моей точки зрения, все такие методы должны быть на клиенте а не на сессии. Хотя ради консистентости можно и так оставить

@n00bcracker n00bcracker merged commit 2b8366c into ydb-platform:main Jul 30, 2025
15 checks passed
@n00bcracker n00bcracker deleted the support_sysview_cpp_sdk branch July 30, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support a new SysView pathtype in cpp SDK and cli
3 participants