Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add read filter option #214

Open
ndajr opened this issue Jun 19, 2024 · 0 comments
Open

Add read filter option #214

ndajr opened this issue Jun 19, 2024 · 0 comments
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@ndajr
Copy link

ndajr commented Jun 19, 2024

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

Example:

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.

@ndajr ndajr added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

1 participant