Skip to content

Commit 900d86a

Browse files
fix after review
1 parent b8336da commit 900d86a

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/examples.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
jobs:
1212
main:
1313
name: Examples
14+
concurrency:
15+
group: examples-${{ github.ref }}-${{ matrix.ydb-version }}
16+
cancel-in-progress: true
1417
runs-on: ubuntu-22.04
1518
strategy:
1619
fail-fast: false

tests/integration/basic_example_it/basic_example.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static std::string JoinPath(const std::string& basePath, const std::string& path
2525
return prefixPathSplit;
2626
}
2727

28-
RunArgs GetRunArgs() {
28+
TRunArgs GetRunArgs() {
2929

3030
std::string database = std::getenv("YDB_DATABASE");
3131
std::string endpoint = std::getenv("YDB_ENDPOINT");
@@ -451,7 +451,7 @@ static TStatus ScanQuerySelect(TTableClient client, const std::string& path, std
451451
if (!streamPart.IsSuccess()) {
452452
eos = true;
453453
if (!streamPart.EOS()) {
454-
return resultScanQuery;
454+
return streamPart;
455455
}
456456
continue;
457457
}
@@ -461,7 +461,7 @@ static TStatus ScanQuerySelect(TTableClient client, const std::string& path, std
461461
vectorResultSet.push_back(rs);
462462
}
463463
}
464-
return resultScanQuery;
464+
return TStatus(EStatus::SUCCESS, NYql::TIssues());
465465
}
466466

467467
///////////////////////////////////////////////////////////////////////////////

tests/integration/basic_example_it/basic_example.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
using namespace NYdb;
1111
using namespace NYdb::NTable;
1212

13-
struct RunArgs {
13+
struct TRunArgs {
1414
TDriver driver;
1515
std::string path;
1616
};
@@ -26,7 +26,7 @@ NYdb::TParams GetTablesDataParams();
2626

2727
void CreateTables(TTableClient client, const std::string& path);
2828
void ThrowOnError(const TStatus& status);
29-
RunArgs GetRunArgs();
29+
TRunArgs GetRunArgs();
3030
TStatus FillTableDataTransaction(TSession session, const std::string& path);
3131
std::string SelectSimple(TTableClient client, const std::string& path);
3232
void UpsertSimple(TTableClient client, const std::string& path);

0 commit comments

Comments
 (0)