Skip to content

Commit 43730c4

Browse files
authored
fix(Bigtable): always set rowsLimit to 1 for readRow requests (#8384)
1 parent f3c0c6c commit 43730c4

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/conformance-tests-bigtable-emulator.yaml renamed to .github/workflows/conformance-tests-bigtable-proxy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ on:
1919
- main
2020
paths:
2121
- 'Bigtable/**'
22-
- '.github/workflows/conformance-tests-bigtable-emulator.yaml'
22+
- '.github/workflows/conformance-tests-bigtable-proxy.yaml'
2323
pull_request:
2424
paths:
2525
- 'Bigtable/**'
26-
- '.github/workflows/conformance-tests-bigtable-emulator.yaml'
26+
- '.github/workflows/conformance-tests-bigtable-proxy.yaml'
2727
workflow_dispatch:
28-
name: Run Bigtable Conformance Tests With Emulator
28+
name: Run Bigtable Conformance Tests With Proxy
2929
jobs:
3030
conformance:
3131
runs-on: ubuntu-latest

Bigtable/src/Table.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ public function readRows(array $options = [])
345345
public function readRow($rowKey, array $options = [])
346346
{
347347
return $this->readRows(
348-
['rowKeys' => [$rowKey]] + $options + $this->options
348+
[
349+
'rowKeys' => [$rowKey],
350+
'rowsLimit' => 1,
351+
] + $options + $this->options
349352
)
350353
->readAll()
351354
->current();

0 commit comments

Comments
 (0)