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

EQL: Disallow chained comparisons (#62567) #62601

Merged
merged 1 commit into from
Sep 18, 2020

Commits on Sep 18, 2020

  1. EQL: Disallow chained comparisons (elastic#62567)

    Expressions like `1 = 2 = 3 = 4` or `1 < 2 = 3 >= 4` were treated with
    leftmost priority: ((1 = 2) = 3) = 4 which can lead to confusing
    results. Since such expressions don't make so much change for EQL
    filters we disallow them in the parser to prevent unexpected results
    from their bad usage.
    
    Major DBs like PostgreSQL and Oracle also disallow them in their SQL
    syntax. (counter example would be MySQL which interprets them as we did
    before with leftmost priority).
    
    Fixes: elastic#61654
    (cherry picked from commit 8f94981)
    matriv committed Sep 18, 2020
    Configuration menu
    Copy the full SHA
    5d3bcaf View commit details
    Browse the repository at this point in the history