Skip to content

Commit b78d63d

Browse files
committed
SQL: [TEST] Mute TIME related failing tests
Mute failing tests tracked by: #40717 (cherry picked from commit 23719bb)
1 parent a3f53cf commit b78d63d

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

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

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
// TIME
33
//
44

5-
6-
timeExtractTimeParts
7-
SELECT
8-
SECOND(CAST(birth_date AS TIME)) d,
9-
MINUTE(CAST(birth_date AS TIME)) m,
10-
HOUR(CAST(birth_date AS TIME)) h
11-
FROM "test_emp" WHERE emp_no < 10010 ORDER BY emp_no;
12-
13-
d:i | m:i | h:i
14-
0 |0 |0
15-
0 |0 |0
16-
0 |0 |0
17-
0 |0 |0
18-
0 |0 |0
19-
0 |0 |0
20-
0 |0 |0
21-
0 |0 |0
22-
0 |0 |0
23-
;
5+
// AwaitsFix: https://github.com/elastic/elasticsearch/issues/40717
6+
//timeExtractTimeParts
7+
//SELECT
8+
//SECOND(CAST(birth_date AS TIME)) d,
9+
//MINUTE(CAST(birth_date AS TIME)) m,
10+
//HOUR(CAST(birth_date AS TIME)) h
11+
//FROM "test_emp" WHERE emp_no < 10010 ORDER BY emp_no;
12+
//
13+
// d:i | m:i | h:i
14+
//0 |0 |0
15+
//0 |0 |0
16+
//0 |0 |0
17+
//0 |0 |0
18+
//0 |0 |0
19+
//0 |0 |0
20+
//0 |0 |0
21+
//0 |0 |0
22+
//0 |0 |0
23+
//;
2424

2525
timeAsFilter
2626
SELECT birth_date, last_name FROM "test_emp" WHERE birth_date::TIME = CAST('00:00:00' AS TIME) ORDER BY emp_no LIMIT 5;
@@ -59,15 +59,15 @@ null |100445
5959
0 |904605
6060
;
6161

62-
63-
timeAsHavingFilter
64-
SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME + INTERVAL 10 MINUTES) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) = CAST('00:00:00.000' AS TIME) ORDER BY gender;
65-
66-
minute:i | gender:s
67-
10 | null
68-
10 | F
69-
10 | M
70-
;
62+
// AwaitsFix: https://github.com/elastic/elasticsearch/issues/40717
63+
//timeAsHavingFilter
64+
//SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME + INTERVAL 10 MINUTES) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) = CAST('00:00:00.000' AS TIME) ORDER BY gender;
65+
//
66+
//minute:i | gender:s
67+
//10 | null
68+
//10 | F
69+
//10 | M
70+
//;
7171

7272
timeAsHavingFilterNoMatch
7373
SELECT MINUTE_OF_HOUR(MAX(birth_date)::TIME) as minute, gender FROM test_emp GROUP BY gender HAVING CAST(MAX(birth_date) AS TIME) > CAST('00:00:00.000' AS TIME);

0 commit comments

Comments
 (0)