gengliangwang commented on a change in pull request #33115:
URL: https://github.com/apache/spark/pull/33115#discussion_r659868597



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/types/AbstractDataType.scala
##########
@@ -217,3 +217,14 @@ private[sql] abstract class FractionalType extends 
NumericType {
   private[sql] val fractional: Fractional[InternalType]
   private[sql] val asIntegral: Integral[InternalType]
 }
+
+private[sql] object AnyTimestampType extends AbstractDataType with 
Serializable {

Review comment:
       So we should have such a new type for types of the same category, like 
`NumericType` and `IntegralType`.
   If the data types are of different category, it's fine to use 
`TypeCollection`

##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/types/AbstractDataType.scala
##########
@@ -217,3 +217,14 @@ private[sql] abstract class FractionalType extends 
NumericType {
   private[sql] val fractional: Fractional[InternalType]
   private[sql] val asIntegral: Integral[InternalType]
 }
+
+private[sql] object AnyTimestampType extends AbstractDataType with 
Serializable {

Review comment:
       So we should have such a new type for types of the same category, like 
`NumericType` and `IntegralType`.
   If the data types are of different categories, it's fine to use 
`TypeCollection`




-- 
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]

Reply via email to