Skip to content

Commit

Permalink
feat: add estimated physical file sizes to ReadAPI v1 (#6384)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 542350532
Source-Link: googleapis/googleapis@a4ff1c2
Source-Link: googleapis/googleapis-gen@b5b5fe5
Copy-Tag: eyJwIjoiQmlnUXVlcnlTdG9yYWdlLy5Pd2xCb3QueWFtbCIsImgiOiJiNWI1ZmU1ZGNkNGJjZTE1YjdiOTAzNWI5MjU0NTJlZTdjYWY0ODliIn0=
  • Loading branch information
gcf-owl-bot[bot] authored Jun 22, 2023
1 parent 1345455 commit 8079404
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 20 deletions.
Binary file modified BigQueryStorage/metadata/V1/Stream.php
Binary file not shown.
50 changes: 50 additions & 0 deletions BigQueryStorage/src/V1/ReadSession.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 20 additions & 20 deletions BigQueryStorage/src/V1/ReadSession/TableReadOptions.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions BigQueryStorage/tests/Unit/V1/BigQueryReadClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ public function createReadSessionTest()
$name = 'name3373707';
$table = 'table110115790';
$estimatedTotalBytesScanned = 452788190;
$estimatedTotalPhysicalFileSize = 938325754;
$estimatedRowCount = 1745583577;
$traceId = 'traceId1270300245';
$expectedResponse = new ReadSession();
$expectedResponse->setName($name);
$expectedResponse->setTable($table);
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
$expectedResponse->setTraceId($traceId);
$transport->addResponse($expectedResponse);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ public function createReadSessionTest()
$name = 'name3373707';
$table = 'table110115790';
$estimatedTotalBytesScanned = 452788190;
$estimatedTotalPhysicalFileSize = 938325754;
$estimatedRowCount = 1745583577;
$traceId = 'traceId1270300245';
$expectedResponse = new ReadSession();
$expectedResponse->setName($name);
$expectedResponse->setTable($table);
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
$expectedResponse->setTraceId($traceId);
$transport->addResponse($expectedResponse);
Expand Down Expand Up @@ -297,12 +299,14 @@ public function createReadSessionAsyncTest()
$name = 'name3373707';
$table = 'table110115790';
$estimatedTotalBytesScanned = 452788190;
$estimatedTotalPhysicalFileSize = 938325754;
$estimatedRowCount = 1745583577;
$traceId = 'traceId1270300245';
$expectedResponse = new ReadSession();
$expectedResponse->setName($name);
$expectedResponse->setTable($table);
$expectedResponse->setEstimatedTotalBytesScanned($estimatedTotalBytesScanned);
$expectedResponse->setEstimatedTotalPhysicalFileSize($estimatedTotalPhysicalFileSize);
$expectedResponse->setEstimatedRowCount($estimatedRowCount);
$expectedResponse->setTraceId($traceId);
$transport->addResponse($expectedResponse);
Expand Down

0 comments on commit 8079404

Please sign in to comment.