Skip to content

Commit 919cc06

Browse files
Improve test
1 parent 8bdfb36 commit 919cc06

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

datafusion/sqllogictest/test_files/functions.slt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,8 @@ SELECT
10291029
query TIT
10301030
SELECT str, n, substring_index(str, '.', n) AS c FROM
10311031
(VALUES
1032-
ROW(NULL)
1032+
ROW(NULL),
1033+
ROW('abcd')
10331034
) AS strings(str),
10341035
(VALUES
10351036
ROW(1),
@@ -1039,6 +1040,10 @@ SELECT str, n, substring_index(str, '.', n) AS c FROM
10391040
) AS occurrences(n)
10401041
ORDER BY str, n;
10411042
----
1043+
abcd -2 abcd
1044+
abcd -1 abcd
1045+
abcd 1 abcd
1046+
abcd 2 abcd
10421047
NULL -2 NULL
10431048
NULL -1 NULL
10441049
NULL 1 NULL

0 commit comments

Comments
 (0)