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

Support regex selection in SHOW TAG VALUES for the key #6564

Merged
merged 1 commit into from
Jun 13, 2016

Conversation

jsternberg
Copy link
Contributor

Fixes #4532.

@jsternberg jsternberg modified the milestone: 1.0.0 May 5, 2016
@jsternberg jsternberg force-pushed the js-4532-show-tag-values-with-regex branch 2 times, most recently from c4c06c1 to 4ed83c9 Compare May 10, 2016 17:19
@jsternberg jsternberg added this to the 1.0.0 milestone May 10, 2016
@jsternberg jsternberg force-pushed the js-4532-show-tag-values-with-regex branch 4 times, most recently from da63d1b to 6b4f087 Compare May 17, 2016 13:25
@jsternberg jsternberg force-pushed the js-4532-show-tag-values-with-regex branch 2 times, most recently from 99d97bb to 74bf6af Compare May 25, 2016 16:47
@jwilder jwilder modified the milestones: 1.0.0 beta, 1.0.0 May 26, 2016
@jsternberg jsternberg force-pushed the js-4532-show-tag-values-with-regex branch 3 times, most recently from 9d89076 to 810150e Compare June 13, 2016 13:27
// SetLiteral represents a set literal.
type SetLiteral struct {
Vals []string
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be a ListLiteral if we're not ensuring uniqueness?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted this to eventually be an actual set to implement something else, but I think it's reasonable to rename this to ListLiteral until that change is actually done.

@benbjohnson
Copy link
Contributor

Minor naming comment otherwise lgtm

…VALUES

This adds support for using regex expressions in SHOW TAG VALUES when
selecting the key. Also supporting the `!=` operation for the
comparison. Now you can do any of the following:

    SHOW TAG VALUES WITH KEY != "region"
    SHOW TAG VALUES WITH KEY =~ /region/
    SHOW TAG VALUES WITH KEY !~ /region/

It also adds a new SetLiteral AST node that will potentially be used in
the future to allow set operations for other comparisons in the future.

Fixes #4532.
@jsternberg jsternberg force-pushed the js-4532-show-tag-values-with-regex branch from 810150e to 9837de7 Compare June 13, 2016 15:04
@corylanou
Copy link
Contributor

+1

@jsternberg jsternberg merged commit 3247202 into master Jun 13, 2016
@jsternberg jsternberg deleted the js-4532-show-tag-values-with-regex branch June 13, 2016 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants