Kent Yao created SPARK-29822:
--------------------------------

             Summary: Cast error when there are spaces between signs and values
                 Key: SPARK-29822
                 URL: https://issues.apache.org/jira/browse/SPARK-29822
             Project: Spark
          Issue Type: Bug
          Components: SQL
    Affects Versions: 3.0.0
            Reporter: Kent Yao


With the latest string to literal optimization, some interval strings can not 
be cast when there are some spaces between signs and unit values.

How to reproduce, 
{code:java}
select cast(v as interval) from values ('+ 1 second') t(v);
select cast(v as interval) from values ('- 1 second') t(v);
{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

Reply via email to