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 fd5e76e commit e15a217Copy full SHA for e15a217
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala
@@ -872,6 +872,6 @@ object DateTimeUtils extends SparkDateTimeUtils {
872
* @return The number of nanoseconds past midnight on that day.
873
*/
874
def getNanosInADay(micros: Long): Long = {
875
- toJulianDay(micros)._2
+ localTimeToNanos(microsToLocalDateTime(micros).toLocalTime)
876
}
877
0 commit comments