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

fix: detect misquoted tag values and return an error (#22754) #22785

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

davidby-influx
Copy link
Contributor

SHOW TAG KEYS FROM "foo" where bar="misquoted" is
erroneous, because the tag value must be enclosed
in single, not double, quotes. Although this
correctly returns no tag keys, it is very
inefficient and has cause out-of-memory failures
at a customer. This fix short-circuits the query.

closes #22755

(cherry picked from commit af9e89a)

Closes #22757

SHOW TAG KEYS FROM "foo" where bar="misquoted" is
erroneous, because the tag value must be enclosed
in single, not double, quotes. Although this
correctly returns no tag keys, it is very
inefficient and has cause out-of-memory failures
at a customer. This fix short-circuits the query.

closes #22755

(cherry picked from commit af9e89a)
@davidby-influx davidby-influx self-assigned this Oct 27, 2021
@davidby-influx davidby-influx requested a review from lesam October 27, 2021 18:47
@davidby-influx davidby-influx merged commit 88afa92 into master Oct 28, 2021
@davidby-influx davidby-influx deleted the DSB_bad_quote_master branch October 28, 2021 04:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants