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

Lauri Koobas updated SPARK-32425:
---------------------------------
    Description: 
The following Spark SQL query throws an exception
{code:java}
select sequence(current_timestamp, current_timestamp)
{code}
The error is:
{noformat}
java.lang.ArrayIndexOutOfBoundsException: 1
        at 
scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:78){noformat}
 Essentially a copy of https://issues.apache.org/jira/browse/SPARK-31980#

  was:
The following Spark SQL query throws an exception
{code:java}
select sequence(current_timestamp, current_timestamp)
{code}
The error is:
{noformat}
java.lang.ArrayIndexOutOfBoundsException: 1
        at 
scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:78){noformat}
 


> Spark sequence() fails if start and end of range are identical timestamps
> -------------------------------------------------------------------------
>
>                 Key: SPARK-32425
>                 URL: https://issues.apache.org/jira/browse/SPARK-32425
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 3.0.0
>         Environment: Spark 3.0 on Databricks Runtime 7.1
>            Reporter: Lauri Koobas
>            Priority: Minor
>
> The following Spark SQL query throws an exception
> {code:java}
> select sequence(current_timestamp, current_timestamp)
> {code}
> The error is:
> {noformat}
> java.lang.ArrayIndexOutOfBoundsException: 1
>       at 
> scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:78){noformat}
>  Essentially a copy of https://issues.apache.org/jira/browse/SPARK-31980#



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