[ https://issues.apache.org/jira/browse/SPARK-29636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16963680#comment-16963680 ]
Maxim Gekk commented on SPARK-29636: ------------------------------------ 1. The output is different because Spark uses the session local time zone while converting timestamps to strings 2. It seems this format is not supported, see https://github.com/apache/spark/blob/4cfce3e5d03b0badb4e9685499be2ab0fca5747a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/DateTimeUtils.scala#L204-L211 . The seconds field as well as hour and minute one is mandatory. > Can't parse '11:00 BST' or '2000-10-19 10:23:54+01' signatures to timestamp > --------------------------------------------------------------------------- > > Key: SPARK-29636 > URL: https://issues.apache.org/jira/browse/SPARK-29636 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 3.0.0 > Reporter: Dylan Guedes > Priority: Major > > Currently, Spark can't parse a string such as '11:00 BST' or '2000-10-19 > 10:23:54+01' to timestamp: > {code:sql} > spark-sql> select cast ('11:00 BST' as timestamp); > NULL > Time taken: 2.248 seconds, Fetched 1 row(s) > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org