Increase the interval filtering for CURRENT_DATE/TODAY tests (#40999)

(cherry picked from commit a5911330aecee90da5401e468b9976f66a2556f0)
This commit is contained in:
Andrei Stefan 2019-04-10 08:33:34 +03:00 committed by Andrei Stefan
parent bb6f060f74
commit 0157ebf947
2 changed files with 19 additions and 19 deletions

View File

@ -35,21 +35,21 @@ SELECT TRUNCATE(YEAR(TODAY() - INTERVAL 50 YEARS) / 1000) AS result;
;
currentDateFilter-Ignore
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 25 YEARS ORDER BY first_name ASC LIMIT 10;
currentDateFilter
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 10;
first_name
-----------------
Kazuhito
Kenroku
Lillian
Mayumi
Mingsen
Sailaja
Saniya
Shahaf
Suzette
Tuval
Alejandro
Amabile
Anneke
Anoosh
Arumugam
Basil
Berhard
Berni
Bezalel
Bojan
;
currentDateFilterScript

View File

@ -2400,17 +2400,17 @@ SELECT TODAY() AS result;
// end::todayFunction
;
filterToday-Ignore
filterToday
// tag::filterToday
SELECT first_name FROM emp WHERE hire_date > TODAY() - INTERVAL 25 YEARS ORDER BY first_name ASC LIMIT 5;
SELECT first_name FROM emp WHERE hire_date > TODAY() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 5;
first_name
------------
Kazuhito
Kenroku
Lillian
Mayumi
Mingsen
Alejandro
Amabile
Anneke
Anoosh
Arumugam
// end::filterToday
;