cloud-fan commented on issue #24342: [SPARK-27438][SQL] Parse strings with timestamps by to_timestamp() in microsecond precision URL: https://github.com/apache/spark/pull/24342#issuecomment-484050718 > I would prefer to introduce a simple expression for parsing strings to timestamps in microsecond precision, and expose it as a function We can keep the new expression internal, and change `ParseToTimestamp` to ``` def this(left: Expression, format: Expression) = { this(left, Option(format), TheNewExpression(left, format)) } def this(left: Expression) = this(left, None, Cast(left, TimestampType)) ```
---------------------------------------------------------------- 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] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
