Skip to content

Commit f0cc631

Browse files
committed
UT style improve
1 parent fdfd75c commit f0cc631

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/DateExpressionsSuite.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)