You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Aman Omer (Jira)" <ji...@apache.org> on 2019/11/04 05:47:00 UTC
[jira] [Commented] (SPARK-29636) Can't parse '11:00 BST' or
'2000-10-19 10:23:54+01' signatures to timestamp
[ https://issues.apache.org/jira/browse/SPARK-29636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16966414#comment-16966414 ]
Aman Omer commented on SPARK-29636:
-----------------------------------
For queries (similar to query 2) which is not supported for timestamp, spark should throw some error like postgreSQL.
cc [~maxgekk]
Query-
{code:java}
SELECT CAST('Random Text' as TIMESTAMP);{code}
Result: NULL
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org