mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Increase the interval filtering for CURRENT_DATE/TODAY tests (#40999)
(cherry picked from commit a5911330aecee90da5401e468b9976f66a2556f0)
This commit is contained in:
parent
bb6f060f74
commit
0157ebf947
@ -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
|
||||
|
@ -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
|
||||
;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user