-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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: Introduce common analyzer base class #65325
Conversation
Extract the analyzer base classes into a common project similar to the Optimizer ones. Extract AddMissingEqualsOnBoolFields a common rule to be used across Close elastic#63695
Pinging @elastic/es-ql (Team:QL) |
@@ -38,7 +38,7 @@ SELECT TRUNCATE(YEAR(TODAY() - INTERVAL 50 YEARS) / 1000) AS result; | |||
|
|||
|
|||
currentDateFilter | |||
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 10; | |||
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 44 YEARS ORDER BY first_name ASC LIMIT 10; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just as it happens an entry in the dataset failed this condition today (21/11/1985) - I've updated the filter to remain the same for another 9 years :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The fix in #65348 should go to 6.8 as well. Should we move forward with that one as well?
Extract the analyzer base classes into a common project similar to the
Optimizer ones.
Extract AddMissingEqualsOnBoolFields a common rule to be used across
Close #63695