You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kousuke Saruta (Jira)" <ji...@apache.org> on 2021/09/03 14:29:00 UTC
[jira] [Updated] (SPARK-36639) SQL sequence function with interval
returns unexpected error in latest versions
[ https://issues.apache.org/jira/browse/SPARK-36639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kousuke Saruta updated SPARK-36639:
-----------------------------------
Fix Version/s: 3.1.3
3.2.0
> SQL sequence function with interval returns unexpected error in latest versions
> -------------------------------------------------------------------------------
>
> Key: SPARK-36639
> URL: https://issues.apache.org/jira/browse/SPARK-36639
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 3.0.3, 3.1.2
> Reporter: Ignatiy Vdovichenko
> Priority: Major
> Fix For: 3.2.0, 3.1.3
>
>
> For example this returns {color:#FF0000}java.lang.ArrayIndexOutOfBoundsException: 1 {color}
> {code:java}
> select sequence(
> date_trunc('month', '2021-08-30'),
> date_trunc('month', '2021-08-15'),
> - interval 1 month){code}
> Another cases like - all ok
> {code:java}
> select sequence(
> date_trunc('month', '2021-07-15'),
> date_trunc('month', '2021-08-30'),
> interval 1 month) as x
> , sequence(
> date_trunc('month', '2021-08-30'),
> date_trunc('month', '2021-07-15'),
> - interval 1 month) as y
> , sequence(
> date_trunc('month', '2021-08-15'),
> date_trunc('month', '2021-08-30'),
> interval 1 month) as z{code}
> In version 3.0.0 this works
--
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