Skip to content

Commit

Permalink
feat(bigtable): Resolving conformance test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
bhshkh committed May 31, 2024
1 parent 6ecd689 commit 0a65527
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,17 +451,14 @@ func (t *Table) readRows(ctx context.Context, arg RowSet, f func(Row) bool, mt *
// ReadRow is a convenience implementation of a single-row reader.
// A missing row will return nil for both Row and error.
func (t *Table) ReadRow(ctx context.Context, row string, opts ...ReadOption) (Row, error) {
method := "cloud.google.com/go/bigtable.ReadRow"
metricsTracer, opRecorder := t.getOperationRecorder(ctx, method, true)
defer opRecorder()

var r Row

opts = append([]ReadOption{LimitRows(1)}, opts...)
err := t.readRows(ctx, SingleRow(row), func(rr Row) bool {
err := t.ReadRows(ctx, SingleRow(row), func(rr Row) bool {
r = rr
return true
}, metricsTracer, opts...)
return r, metricsTracer.recordAndConvertErr(err)
}, opts...)
return r, err
}

// decodeFamilyProto adds the cell data from f to the given row.
Expand Down

0 comments on commit 0a65527

Please sign in to comment.