File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1147,13 +1147,14 @@ class DateExpressionsSuite extends SparkFunSuite with ExpressionEvalHelper {
11471147 }
11481148 }
11491149
1150- test(" [SPARK-31710][SQL] Adds TIMESTAMP_SECONDS,..." ) {
1150+ test(" SPARK-31710:Adds TIMESTAMP_SECONDS, " +
1151+ " TIMESTAMP_MILLIS and TIMESTAMP_MICROS functions" ) {
11511152 checkEvaluation(SecondsToTimestamp (Literal (1230219000 )), 1230219000L * MICROS_PER_SECOND )
11521153 checkEvaluation(SecondsToTimestamp (Literal (- 1230219000 )), - 1230219000L * MICROS_PER_SECOND )
11531154 checkEvaluation(SecondsToTimestamp (Literal (null , IntegerType )), null )
11541155 checkEvaluation(MillisToTimestamp (Literal (1230219000123L )), 1230219000123L * MICROS_PER_MILLIS )
1155- checkEvaluation(MillisToTimestamp (Literal ( - 1230219000123L )),
1156- - 1230219000123L * MICROS_PER_MILLIS )
1156+ checkEvaluation(MillisToTimestamp (
1157+ Literal ( - 1230219000123L )), - 1230219000123L * MICROS_PER_MILLIS )
11571158 checkEvaluation(MillisToTimestamp (Literal (null , IntegerType )), null )
11581159 checkEvaluation(MicrosToTimestamp (Literal (1230219000123123L )), 1230219000123123L )
11591160 checkEvaluation(MicrosToTimestamp (Literal (- 1230219000123123L )), - 1230219000123123L )
You can’t perform that action at this time.
0 commit comments