We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89dfef0 commit 68dc4a9Copy full SHA for 68dc4a9
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
@@ -885,6 +885,6 @@ object DateTimeUtils extends SparkDateTimeUtils {
885
* @return The number of nanoseconds past midnight on that day.
886
*/
887
def getNanosInADay(micros: Long): Long = {
888
- toJulianDay(micros)._2
+ localTimeToNanos(microsToLocalDateTime(micros).toLocalTime)
889
}
890
0 commit comments