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

Dongjoon Hyun closed SPARK-21884.
---------------------------------
    Resolution: Duplicate

This is fixed at SPARK-21477 in master branch.

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to