Skip to content

Commit 019d6b2

Browse files
TJX2014bart-samwel
andauthored
Update sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
Co-authored-by: Bart Samwel <43783444+bart-samwel@users.noreply.github.com>
1 parent 7d562f4 commit 019d6b2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ abstract class ToTimestamp
810810
case "milli" => MICROS_PER_MILLIS
811811
case "micro" => 1L
812812
case o => throw new IllegalArgumentException(
813-
"current param is '" + o + "'" + ";param must be 'milli' or 'micro' when use Long type time")
813+
"format must be 'milli' or 'micro' when converting from Long type; specified format is '" + o + "'")
814814
}
815815

816816
override def eval(input: InternalRow): Any = {
@@ -2281,4 +2281,3 @@ case class SubtractDates(left: Expression, right: Expression)
22812281
})
22822282
}
22832283
}
2284-

0 commit comments

Comments
 (0)