Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32425

Spark sequence() fails if start and end of range are identical timestamps

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 3.0.0
    • None
    • SQL
    • None
    • Spark 3.0 on Databricks Runtime 7.1

    Description

      The following Spark SQL query throws an exception

      select sequence(current_timestamp, current_timestamp)
      

      The error is:

      java.lang.ArrayIndexOutOfBoundsException: 1
      	at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:78)

       Essentially a copy of https://issues.apache.org/jira/browse/SPARK-31980#

      Attachments

        Activity

          People

            Unassigned Unassigned
            laurikoobas Lauri Koobas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: