Skip to content

Commit eaca6a8

Browse files
committed
Improve error message in getLastSwitchTs()
1 parent dbdc926 commit eaca6a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/RebaseDateTime.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ object RebaseDateTime {
289289
private def getLastSwitchTs(rebaseMap: AnyRefMap[String, RebaseInfo]): Long = {
290290
val latestTs = rebaseMap.values.map(_.switches.last).max
291291
require(rebaseMap.values.forall(_.diffs.last == 0),
292-
s"Differences between Julian and Gregorian calendar after $latestTs are expected " +
293-
"to be zero for available time zones.")
292+
s"Differences between Julian and Gregorian calendar after ${microsToInstant(latestTs)} " +
293+
"are expected to be zero for all available time zones.")
294294
latestTs
295295
}
296296
// The switch time point after which all diffs between Gregorian and Julian calendars

0 commit comments

Comments
 (0)