stevomitric commented on code in PR #57680:
URL: https://github.com/apache/spark/pull/57680#discussion_r3749706629
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala:
##########
@@ -4523,7 +4523,13 @@ case class SubtractTimestamps(
def this(endTimestamp: Expression, startTimestamp: Expression) =
this(endTimestamp, startTimestamp, SQLConf.get.legacyIntervalEnabled)
- override def inputTypes: Seq[AbstractDataType] = Seq(AnyTimestampType,
AnyTimestampType)
+ // Nanosecond-precision timestamps are accepted alongside the microsecond
types. The difference is
+ // always reported on the microsecond grid (a DayTimeIntervalType has
microsecond resolution), so
Review Comment:
Qualified as microsecond-grid
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]