You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Zhenhua Wang (JIRA)" <ji...@apache.org> on 2016/10/26 03:47:58 UTC

[jira] [Issue Comment Deleted] (SPARK-18000) Aggregation function for computing endpoints for histograms

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

Zhenhua Wang updated SPARK-18000:
---------------------------------
    Comment: was deleted

(was: This issue is included in another issue SPARK-17881, so I'll close this one.)

> Aggregation function for computing endpoints for histograms
> -----------------------------------------------------------
>
>                 Key: SPARK-18000
>                 URL: https://issues.apache.org/jira/browse/SPARK-18000
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.1.0
>            Reporter: Zhenhua Wang
>
> For a column, we will generate a equi-width or equi-height histogram, depending on if its ndv is large than the maximum number of bins allowed in one histogram (denoted as numBins).
> The agg function for a column returns bins - (distinct value, frequency) pairs of equi-width histogram when the number of distinct values is less than or equal to numBins. Otherwise, 1) for column of string type, it returns an empty map; 2) for column of numeric type (including DateType and TimestampType), it returns endpoints of equi-height histogram - approximate percentiles at percentages 0.0, 1/numBins, 2/numBins, ..., (numBins-1)/numBins, 1.0.



--
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