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

Fix StackOverflowError on MetadataOnlyQuery

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.2.0
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None

      Description

      This issue aims to fix StackOverflowError in branch-2.2. In Apache master branch, it doesn't throw StackOverflowError.

      scala> spark.version
      res0: String = 2.2.0
      
      scala> sql("CREATE TABLE t_1000 (a INT, p INT) USING PARQUET PARTITIONED BY (p)")
      res1: org.apache.spark.sql.DataFrame = []
      
      scala> (1 to 1000).foreach(p => sql(s"ALTER TABLE t_1000 ADD PARTITION (p=$p)"))
      
      scala> sql("SELECT COUNT(DISTINCT p) FROM t_1000").collect
      java.lang.StackOverflowError
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1522)
      

        Issue Links

          Activity

          Hide
          apachespark Apache Spark added a comment -

          User 'dongjoon-hyun' has created a pull request for this issue:
          https://github.com/apache/spark/pull/19094

          Show
          apachespark Apache Spark added a comment - User 'dongjoon-hyun' has created a pull request for this issue: https://github.com/apache/spark/pull/19094
          Hide
          dongjoon Dongjoon Hyun added a comment -

          This is fixed at SPARK-21477 in master branch.

          Show
          dongjoon Dongjoon Hyun added a comment - This is fixed at SPARK-21477 in master branch.
          Hide
          apachespark Apache Spark added a comment -

          User 'gatorsmile' has created a pull request for this issue:
          https://github.com/apache/spark/pull/19101

          Show
          apachespark Apache Spark added a comment - User 'gatorsmile' has created a pull request for this issue: https://github.com/apache/spark/pull/19101

            People

            • Assignee:
              Unassigned
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development