You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Max Gekk (Jira)" <ji...@apache.org> on 2021/04/22 09:55:00 UTC
[jira] [Commented] (SPARK-35187) Failure on minimal interval
literal
[ https://issues.apache.org/jira/browse/SPARK-35187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17327231#comment-17327231 ]
Max Gekk commented on SPARK-35187:
----------------------------------
[~angerszhuuu] Would you like to fix this?
> Failure on minimal interval literal
> -----------------------------------
>
> Key: SPARK-35187
> URL: https://issues.apache.org/jira/browse/SPARK-35187
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Max Gekk
> Priority: Major
>
> If the sign '-' inside of interval string, everything is fine after https://github.com/apache/spark/commit/bb5459fb26b9d0d57eadee8b10b7488607eeaeb2:
> {code:sql}
> spark-sql> SELECT INTERVAL '-178956970-8' YEAR TO MONTH;
> -178956970-8
> {code}
> but the sign outside of interval string is not handled properly:
> {code:sql}
> spark-sql> SELECT INTERVAL -'178956970-8' YEAR TO MONTH;
> Error in query:
> Error parsing interval year-month string: integer overflow(line 1, pos 16)
> == SQL ==
> SELECT INTERVAL -'178956970-8' YEAR TO MONTH
> ----------------^^^
> {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