googleapis / googleapis/cloud-bigtable-cbt-cli

Add read filter option

Open
#214 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Go
Stars
15
Forks
42
PR merge metrics
No merged PRs in 30d

Description

I would like to use the `read` command with a `filter` option filter rows based a cell value using `bigtable.ValueFilter`.

Example:
```go
if filter := parsed["filter"]; filter != "" {
filters = append(filters, bigtable.ValueFilter(filter))
}
```

Usage:
`cbt read user-table prefix=user columns=login filter="^active.*" count=1`

This would be quite useful for analysis and troubleshooting purposes.

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.