LuciferYang commented on code in PR #56540:
URL: https://github.com/apache/spark/pull/56540#discussion_r3420927860
##########
sql/api/src/main/scala/org/apache/spark/sql/types/AbstractDataType.scala:
##########
@@ -160,11 +160,18 @@ private[sql] object AnyTimestampType extends
AbstractDataType with Serializable
override private[sql] def simpleString = "(timestamp or timestamp without
time zone)"
}
+/**
+ * A nanosecond-precision timestamp type (`TIMESTAMP_LTZ(p)` /
`TIMESTAMP_NTZ(p)`, `p` in [7, 9]).
+ */
+private[sql] abstract class AnyTimestampNanoType extends DatetimeType {
+ def precision: Int
Review Comment:
+1
--
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]