TJX2014 commented on a change in pull request #28534:
URL: https://github.com/apache/spark/pull/28534#discussion_r426973155
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -789,7 +789,7 @@ abstract class ToTimestamp
protected def downScaleFactor: Long
override def inputTypes: Seq[AbstractDataType] =
- Seq(TypeCollection(StringType, DateType, TimestampType), StringType)
+ Seq(TypeCollection(StringType, DateType, TimestampType, LongType ),
StringType)
Review comment:
Yes, `IntegerType` should also be considered.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]