You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2019/11/12 14:54:00 UTC
[jira] [Resolved] (SPARK-29855) typed literals with negative sign
with proper result or exception
[ https://issues.apache.org/jira/browse/SPARK-29855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-29855.
----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 26479
[https://github.com/apache/spark/pull/26479]
> 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
> Fix For: 3.0.0
>
>
> {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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org