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

QL: Remove the unnecessary DateTimeFunction.dateTimeFormat() (#68788) #69123

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

palesz
Copy link
Contributor

@palesz palesz commented Feb 17, 2021

Removes the DateTimeFunction.dateTimeFormat() and the
TranslatorHandler.dateTimeFormat() methods that were
called, but had no effect on the translated queries.

One of the examples, when this happens, is when one side of the
BinaryComparison is a function. The BinaryComparison at the
end turns into a ScriptQuery, but in the intermediate steps the
ExpressionTranslators try to translate it to a RangeQuery.

Follows #68783

(cherry-picked from 9ae5753)

…ic#68788)

Removes the `DateTimeFunction.dateTimeFormat()` and the 
`TranslatorHandler.dateTimeFormat()` methods that were
called, but had no effect on the translated queries.

One of the examples, when this happens, is when one side of the
`BinaryComparison` is a function. The `BinaryComparison` at the
end turns into a `ScriptQuery`, but in the intermediate steps the
`ExpressionTranslators` try to translate it to a `RangeQuery`.

Follows elastic#68783
@palesz palesz added :Analytics/SQL SQL querying >refactoring backport Team:QL (Deprecated) Meta label for query languages team v7.12.0 labels Feb 17, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-ql (Team:QL)

@palesz palesz merged commit 31e5af5 into elastic:7.x Feb 18, 2021
@palesz palesz deleted the translator-cleanup-7.x branch February 18, 2021 17:26
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.

2 participants