[ https://issues.apache.org/jira/browse/SPARK-21884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-21884: ---------------------------------- Description: This issue aims to fix StackOverflowError in branch-2.2. In Apache master branch, it doesn't throw StackOverflowError. {code} 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) {code} was: {code} 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) {code} > Fix StackOverflowError on MetadataOnlyQuery > ------------------------------------------- > > Key: SPARK-21884 > URL: https://issues.apache.org/jira/browse/SPARK-21884 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.2.0 > Reporter: Dongjoon Hyun > > This issue aims to fix StackOverflowError in branch-2.2. In Apache master > branch, it doesn't throw StackOverflowError. > {code} > 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) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org