File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
106106 }
107107 }
108108 }
109+ checkEvaluation(DayOfYear (Literal .create(null , DateType )), null )
109110 }
110111
111112 test(" Year" ) {
@@ -274,6 +275,7 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
274275 checkEvaluation(LastDay (Literal (Date .valueOf(" 2015-12-05" ))), Date .valueOf(" 2015-12-31" ))
275276 checkEvaluation(LastDay (Literal (Date .valueOf(" 2016-01-06" ))), Date .valueOf(" 2016-01-31" ))
276277 checkEvaluation(LastDay (Literal (Date .valueOf(" 2016-02-07" ))), Date .valueOf(" 2016-02-29" ))
278+ checkEvaluation(LastDay (Literal .create(null , DateType )), null )
277279 }
278280
279281 test(" next_day" ) {
You can’t perform that action at this time.
0 commit comments