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

Ensure that conditions are encoded correctly even if the AST is not properly formed #9676

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

jsternberg
Copy link
Contributor

ConditionExpr would output conditions that may not have had parenthesis
in the same place so they would not marshal into a proper expression.
This fixes the condition before it gets encoded.

This is done instead of fixing influxql because the current version of
influxql is not compatible with 1.5 anymore and this version of influxdb
doesn't have a very good way of using a branch. While it would be
possible, this method is a more direct way to fix the problem for 1.5
and then fix it properly for 1.6.

…roperly formed

ConditionExpr would output conditions that may not have had parenthesis
in the same place so they would not marshal into a proper expression.
This fixes the condition before it gets encoded.

This is done instead of fixing influxql because the current version of
influxql is not compatible with 1.5 anymore and this version of influxdb
doesn't have a very good way of using a branch. While it would be
possible, this method is a more direct way to fix the problem for 1.5
and then fix it properly for 1.6.
@ghost ghost assigned jsternberg Apr 3, 2018
@ghost ghost added the review label Apr 3, 2018
@jsternberg jsternberg merged commit 414473e into 1.5 Apr 4, 2018
@ghost ghost removed the review label Apr 4, 2018
@mark-rushakoff mark-rushakoff deleted the js-condition-expr-encode branch January 11, 2019 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants