googleapis / googleapis/google-cloud-go

bigtable: easier full table scans

Open
#6,796 0 comments 0 reactions 1 assignee Claimed by @sushanb View on GitHub
api: bigtable type: feature request
Dominant language
Go
Stars
4.5k
Forks
1.6k
Avg merge
1d 13h
Merged PRs (30d)
109

Description

# Issue

Currently, to do a full table scan (read all rows), you need to write code like so:

```
table := client.Open("mytable")

// This filter is a RowSet that specifies all the rows in the table
filter := bigtable.InfiniteRange(string([]byte{}))

ctx := context.Background()
t.ReadRows(ctx, filter, func(r bigtable.Row) {
// Do something with the returned rows
})
```

# Proposed solution

Add a method like `table.GetAllRows()` that would return an array of `bigtable.Row` objects, without needing to specify a filter. (Or even an `All` filter.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.