Extend the interval date comparison (#65348) (#65358)

(cherry picked from commit acfb463892fdaf3f0deb679122b5e402c7b56418)
This commit is contained in:
Andrei Stefan 2020-11-23 15:24:36 +02:00 committed by GitHub
parent 7fbdcb5e00
commit 866a6afcdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -37,9 +37,8 @@ SELECT TRUNCATE(YEAR(TODAY() - INTERVAL 50 YEARS) / 1000) AS result;
;
// AwaitsFix https://github.com/elastic/elasticsearch/issues/65336
currentDateFilter-Ignore
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 10;
currentDateFilter
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 45 YEARS ORDER BY first_name ASC LIMIT 10;
first_name
-----------------