spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-11850) Spark StdDev/Variance defaults are incompatible with Hive
Date Thu, 19 Nov 2015 18:59:11 GMT

    [ https://issues.apache.org/jira/browse/SPARK-11850?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15014145#comment-15014145
] 

Reynold Xin commented on SPARK-11850:
-------------------------------------

Yup we decided that Hive was weird and not the example to follow.


> Spark StdDev/Variance defaults are incompatible with Hive
> ---------------------------------------------------------
>
>                 Key: SPARK-11850
>                 URL: https://issues.apache.org/jira/browse/SPARK-11850
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 1.6.0
>            Reporter: Herman van Hovell
>
> The {{stddev}} and {{variance}} functions currently defaults to the 'sample' version
whereas Hive uses the 'population' version for this. See:
> * https://cwiki.apache.org/confluence/display/Hive/LanguageManual+UDF#LanguageManualUDF-Built-inAggregateFunctions(UDAF)
> * https://github.com/apache/spark/blob/master/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala#L192-L196
> Is this on purpose? Or by accident?



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


Mime
View raw message