-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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: Remove (was Deprecate) =
in favor of ==
for equality checks
#62650
Comments
Pinging @elastic/es-ql (:Query Languages/EQL) |
As a note for consideration: Neither the Python nor the ES implementation document Python: https://eql.readthedocs.io/en/latest/query-guide/basic-syntax.html#conditions Unless usage is high, we could potentially treat this as a bug and just remove it. |
Agreed. Usage of We should continue to leave a single And of course, in both cases, I think we should continue to accept both forms in the grammar, but take the usual approach of raising a custom error message to say it's no longer supported. Here are the usage numbers rules in our Endgame rules repo, but we tend to conform to the same convention and have PR review, so ours will be biased towards
|
I agree with completely removing the single equals (
|
I also prefer to completely remove the |
What do you have in mind. |
Thanks for the feedback folks. Considering it's an undocumented behavior (and thus without any guarantees) used in 1.5% of the cases, let's move ahead with removing @matriv can you please look at it? Thanks |
=
in favor of ==
for equality checks=
in favor of ==
for equality checks
=
in favor of ==
for equality checks=
in favor of ==
for equality checks
Since `=` is rarely used and is undocumented we its support for equality comparisons keeping `==` as the only option. `=` is now only used for assignements like in `maxspan=10m`. Closes: elastic#62650
Since `=` is rarely used and is undocumented we its support for equality comparisons keeping `==` as the only option. `=` is now only used for assignments like in `maxspan=10m`. Closes: #62650
A topic that was raised in #61883 (comment) is deprecating usage of
=
when doing equality checks.EQL does use
=
for assignments so using it for equality checks instead of==
is potentially confusing (is it an assignment or an equality check?).It would be good to get some numbers on the usage to see how often this occurs.
Based on that we can decide whether to go with a safe route (deprecation-only with removal later down the road) or straight removal.
The text was updated successfully, but these errors were encountered: