[ 
https://issues.apache.org/jira/browse/SPARK-29855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon reassigned SPARK-29855:
------------------------------------

    Assignee: Kent Yao

> typed literals with negative sign with proper result or exception
> -----------------------------------------------------------------
>
>                 Key: SPARK-29855
>                 URL: https://issues.apache.org/jira/browse/SPARK-29855
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 3.0.0
>            Reporter: Kent Yao
>            Assignee: Kent Yao
>            Priority: Major
>
> {code:java}
> -- !query 83
> select -integer '7'
> -- !query 83 schema
> struct<7:int>
> -- !query 83 output
> 7
> -- !query 86
> select -date '1999-01-01'
> -- !query 86 schema
> struct<DATE '1999-01-01':date>
> -- !query 86 output
> 1999-01-01
> -- !query 87
> select -timestamp '1999-01-01'
> -- !query 87 schema
> struct<TIMESTAMP('1999-01-01 00:00:00'):timestamp>
> -- !query 87 output
> 1999-01-01 00:00:00
> {code}
> the integer should be -7 and the date and timestamp results are confusing 
> which should throw exception.



--
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