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

Sean Owen resolved SPARK-17306.
-------------------------------
       Resolution: Fixed
         Assignee: Sean Owen
    Fix Version/s: 2.1.0
                   2.0.1

Resolved by https://github.com/apache/spark/pull/15002 (based on 
https://github.com/apache/spark/pull/14976)

> QuantileSummaries doesn't compress
> ----------------------------------
>
>                 Key: SPARK-17306
>                 URL: https://issues.apache.org/jira/browse/SPARK-17306
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Sean Zhong
>            Assignee: Sean Owen
>             Fix For: 2.0.1, 2.1.0
>
>
> compressThreshold was not referenced anywhere
> {code}
> class QuantileSummaries(
>     val compressThreshold: Int,
>     val relativeError: Double,
>     val sampled: ArrayBuffer[Stats] = ArrayBuffer.empty,
>     private[stat] var count: Long = 0L,
>     val headSampled: ArrayBuffer[Double] = ArrayBuffer.empty) extends 
> Serializable
> {code}
> And, it causes memory leak, QuantileSummaries takes unbounded memory
> {code}
> val summary = new QuantileSummaries(10000, relativeError = 0.001)
> // Results in creating an array of size 100000000 !!! 
> (1 to 100000000).foreach(summary.insert(_))
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to