-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[feature request] SHOW TAG VALUES should accept regex #4532
Comments
Should we also modify this to support |
@jsternberg I would say yes, this should support the full equals, not-equals, matches, and not-matches operators, just like the Is there a tradeoff, other than more complex code, for supporting all of them? Does it impact the query speed? |
It shouldn't affect the query speed although there's another ticket for improving
I would lean towards no personally. |
I agree support for Filtering tag values with a
Although I imagine that may be significantly harder to implement and similar results could be obtained by running a |
@jsternberg any limitations will end up frustrating someone, but since the workaround for that is to just run two queries and consolidate the results I can live with I would be okay with |
…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.
The PR has been modified to support all of those now. In the future, we might want to support |
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
…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.
Right now the syntax is
SHOW TAG VALUES WITH KEY IN (<tag_key1>, <tag_key2>,...)
which is not congruent with our other queries and doesn't support regular expressions.How about
SHOW TAG VALUES WHERE KEY [=,=~,!=,!~] <tag_key_regex>
The text was updated successfully, but these errors were encountered: