File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed
datafusion/sqllogictest/test_files/spark/datetime Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -97,4 +97,23 @@ SELECT last_day('2016-02-07'::DATE);
97
97
query D
98
98
SELECT last_day(null::DATE);
99
99
----
100
- NULL
100
+ NULL
101
+
102
+
103
+ statement error Failed to coerce arguments to satisfy a call to 'last_day' function
104
+ select last_day('foo');
105
+
106
+
107
+ statement error Failed to coerce arguments to satisfy a call to 'last_day' function
108
+ select last_day(123);
109
+
110
+
111
+ statement error 'last_day' does not support zero arguments
112
+ select last_day();
113
+
114
+ statement error Failed to coerce arguments to satisfy a call to 'last_day' function
115
+ select last_day(last_day('2016-02-07'::string, 'foo'));
116
+
117
+ statement error Failed to coerce arguments to satisfy a call to 'last_day' function
118
+ select last_day(last_day('2016-02-31'::string));
119
+
You can’t perform that action at this time.
0 commit comments