Skip to content

Commit 0157ebf

Browse files
committed
Increase the interval filtering for CURRENT_DATE/TODAY tests (#40999)
(cherry picked from commit a591133)
1 parent bb6f060 commit 0157ebf

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

x-pack/plugin/sql/qa/src/main/resources/date.csv-spec

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,21 @@ SELECT TRUNCATE(YEAR(TODAY() - INTERVAL 50 YEARS) / 1000) AS result;
3535
;
3636

3737

38-
currentDateFilter-Ignore
39-
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 25 YEARS ORDER BY first_name ASC LIMIT 10;
38+
currentDateFilter
39+
SELECT first_name FROM test_emp WHERE hire_date > CURRENT_DATE() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 10;
4040

4141
first_name
4242
-----------------
43-
Kazuhito
44-
Kenroku
45-
Lillian
46-
Mayumi
47-
Mingsen
48-
Sailaja
49-
Saniya
50-
Shahaf
51-
Suzette
52-
Tuval
43+
Alejandro
44+
Amabile
45+
Anneke
46+
Anoosh
47+
Arumugam
48+
Basil
49+
Berhard
50+
Berni
51+
Bezalel
52+
Bojan
5353
;
5454

5555
currentDateFilterScript

x-pack/plugin/sql/qa/src/main/resources/docs/docs.csv-spec

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,17 +2400,17 @@ SELECT TODAY() AS result;
24002400
// end::todayFunction
24012401
;
24022402

2403-
filterToday-Ignore
2403+
filterToday
24042404
// tag::filterToday
2405-
SELECT first_name FROM emp WHERE hire_date > TODAY() - INTERVAL 25 YEARS ORDER BY first_name ASC LIMIT 5;
2405+
SELECT first_name FROM emp WHERE hire_date > TODAY() - INTERVAL 35 YEARS ORDER BY first_name ASC LIMIT 5;
24062406

24072407
first_name
24082408
------------
2409-
Kazuhito
2410-
Kenroku
2411-
Lillian
2412-
Mayumi
2413-
Mingsen
2409+
Alejandro
2410+
Amabile
2411+
Anneke
2412+
Anoosh
2413+
Arumugam
24142414
// end::filterToday
24152415
;
24162416

0 commit comments

Comments
 (0)