You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/06/01 18:46:59 UTC

[jira] [Assigned] (SPARK-15709) Prevent `freqItems` from raising `UnsupportedOperationException: empty.min`

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

Apache Spark reassigned SPARK-15709:
------------------------------------

    Assignee:     (was: Apache Spark)

> Prevent `freqItems` from raising `UnsupportedOperationException: empty.min`
> ---------------------------------------------------------------------------
>
>                 Key: SPARK-15709
>                 URL: https://issues.apache.org/jira/browse/SPARK-15709
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Dongjoon Hyun
>            Priority: Minor
>
> Currently, `freqItems` raises `UnsupportedOperationException` on `empty.min` usually when its `support` argument is high. 
> {code}
> scala> spark.createDataset(Seq(1, 2, 2, 3, 3, 3)).stat.freqItems(Seq("value"), 2)
> 16/06/01 11:11:38 ERROR Executor: Exception in task 5.0 in stage 0.0 (TID 5)
> java.lang.UnsupportedOperationException: empty.min
> {code}
> Also, the parameter checking message is wrong.
> {code}
> require(support >= 1e-4, s"support ($support) must be greater than 1e-4.")
> {code}
> This issue changes the logic to handle the `empty` case and also improves parameter checking.



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

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