Skip to content

Commit

Permalink
docs(Bigtable): add rowFilter change to MIGRATING.md (#7498)
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer authored Jul 3, 2024
1 parent 6a8df91 commit b54bcad
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Bigtable/MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,25 @@ Update your `google/cloud-bigtable` dependency to `^2.0`:

## Changes

### Filter Option change

The `rowFilter` option for `Table::readRows` is now called `filter`:

```php
use Google\Cloud\Bigtable\BigtableClient;
use Google\Cloud\Bigtable\V2\RowFilter;

// Only retrieve the most recent version of the cell.
$rowFilter = (new RowFilter())->setCellsPerColumnLimitFilter(1);

$bigtable = new BigtableClient(['projectId' => $projectId]);
$table = $bigtable->table($instanceId, $tableId);

$row = $table->readRow($key, [
'filter' => $rowFilter
]);
```

### Retry Options changes

The `retries` parameter in the following RPC calls is changed to `retrySettings.maxRetries`:
Expand Down

0 comments on commit b54bcad

Please sign in to comment.