Skip to content

Commit 8079404

Browse files
feat: add estimated physical file sizes to ReadAPI v1 (#6384)
PiperOrigin-RevId: 542350532 Source-Link: googleapis/googleapis@a4ff1c2 Source-Link: googleapis/googleapis-gen@b5b5fe5 Copy-Tag: eyJwIjoiQmlnUXVlcnlTdG9yYWdlLy5Pd2xCb3QueWFtbCIsImgiOiJiNWI1ZmU1ZGNkNGJjZTE1YjdiOTAzNWI5MjU0NTJlZTdjYWY0ODliIn0=
1 parent 1345455 commit 8079404

5 files changed

Lines changed: 76 additions & 20 deletions

File tree

49 Bytes
Binary file not shown.

BigQueryStorage/src/V1/ReadSession.php

Lines changed: 50 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BigQueryStorage/src/V1/ReadSession/TableReadOptions.php

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BigQueryStorage/tests/Unit/V1/BigQueryReadClientTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,14 @@ public function createReadSessionTest()
7474
$name = 'name3373707';
7575
$table = 'table110115790';
7676
$estimatedTotalBytesScanned = 452788190;
77+
$estimatedTotalPhysicalFileSize = 938325754;
7778
$estimatedRowCount = 1745583577;
7879
$traceId = 'traceId1270300245';
7980
$expectedResponse = new ReadSession();
8081
$expectedResponse->setName($name);
8182
$expectedResponse->setTable($table);
8283
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
84+
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
8385
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
8486
$expectedResponse->setTraceId($traceId);
8587
$transport->addResponse($expectedResponse);

BigQueryStorage/tests/Unit/V1/Client/BigQueryReadClientTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,14 @@ public function createReadSessionTest()
7777
$name = 'name3373707';
7878
$table = 'table110115790';
7979
$estimatedTotalBytesScanned = 452788190;
80+
$estimatedTotalPhysicalFileSize = 938325754;
8081
$estimatedRowCount = 1745583577;
8182
$traceId = 'traceId1270300245';
8283
$expectedResponse = new ReadSession();
8384
$expectedResponse->setName($name);
8485
$expectedResponse->setTable($table);
8586
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
87+
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
8688
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
8789
$expectedResponse->setTraceId($traceId);
8890
$transport->addResponse($expectedResponse);
@@ -297,12 +299,14 @@ public function createReadSessionAsyncTest()
297299
$name = 'name3373707';
298300
$table = 'table110115790';
299301
$estimatedTotalBytesScanned = 452788190;
302+
$estimatedTotalPhysicalFileSize = 938325754;
300303
$estimatedRowCount = 1745583577;
301304
$traceId = 'traceId1270300245';
302305
$expectedResponse = new ReadSession();
303306
$expectedResponse->setName($name);
304307
$expectedResponse->setTable($table);
305308
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
309+
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
306310
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
307311
$expectedResponse->setTraceId($traceId);
308312
$transport->addResponse($expectedResponse);

0 commit comments

Comments
 (0)