Skip to content

Commit 8271338

Browse files
committed
Fix ScanQueryTest
1 parent 6939097 commit 8271338

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/ScanQueryTest.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,16 @@ function testScanQuery()
3838

3939
$table->retrySession(function (\YdbPlatform\Ydb\Session $session){
4040
$session->createTable(
41-
'seasons',
41+
'scan_table',
4242
YdbTable::make()
43-
->addColumn('series_id', 'UINT64')
44-
->addColumn('title', 'UTF8')
45-
->addColumn('episode_id', 'UINT64')
46-
->addColumn('season_id', 'UINT64')
47-
->primaryKey('series_id')
43+
->addColumn('id', 'UINT64')
44+
->primaryKey('id')
4845
);
4946
}, true);
5047

51-
$yql = 'SELECT series_id, season_id, title, first_aired
52-
FROM seasons
53-
WHERE series_id = 1;';
48+
$yql = 'SELECT id
49+
FROM scan_table
50+
WHERE id = 1;';
5451

5552
$scanWithOutParam = $table->scanQuery($yql);
5653
$scanWithExplainParam = $table->scanQuery($yql, ScanQueryMode::MODE_EXPLAIN);

0 commit comments

Comments
 (0)