-
Notifications
You must be signed in to change notification settings - Fork 723
Unit test for SELECT no PK and LIMIT #26555
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
🟢 |
⚪
🟢 |
⚪
🟢 |
sts.SetColumnShardReaderClassName("SIMPLE"); | ||
sts.AppConfig.MutableTableServiceConfig()->SetAllowOlapDataQuery(true); | ||
TKikimrRunner kikimr(sts); | ||
auto db = kikimr.GetTableClient(); |
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.
GetTableClient()
выполняет запросы через устаревший TableService
. Сейчас наш единый сервис для DDL/DML/другие является QueryService
, которым можно воспользоваться через GetQueryClient()
.
Примеры:
|
||
// Then | ||
result.GetIssues().PrintTo(Cerr); | ||
UNIT_ASSERT(result.IsSuccess()); |
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.
UNIT_ASSERT_C(result.IsSuccess(), result.GetIssues().ToString());
INSERT INTO `/Root/KV` (id, vn) VALUES (1, 11); | ||
)"), TTxControl::BeginTx().CommitTx()).ExtractValueSync(); | ||
result.GetIssues().PrintTo(Cerr); | ||
UNIT_ASSERT(result.IsSuccess()); |
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.
UNIT_ASSERT_C(result.IsSuccess(), result.GetIssues().ToString());
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.
Кажется, данные тесты должны лежать в этой папке:
https://github.com/ydb-platform/ydb/tree/main/ydb/core/kqp/ut/olap
Changelog entry
C++ unit test for
SELECT vn FROM
table
LIMIT 1;on table with PK(id) and data column vn with COLUMN store
Changelog category
Description for reviewers
Simple test for SyncPointLimitControl bag when data source comes without PK