aboutsummaryrefslogtreecommitdiff
path: root/sql/catalyst/src/main
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-06-28 19:36:53 -0700
committerReynold Xin <rxin@databricks.com>2016-06-28 19:36:53 -0700
commit363bcedeea40fe3f1a92271b96af2acba63e058c (patch)
tree5609cc683dc3c7c15933bd63cc191d81996912f3 /sql/catalyst/src/main
parent5bf8881b34a18f25acc10aeb28a06af4c44a6ac8 (diff)
downloadspark-363bcedeea40fe3f1a92271b96af2acba63e058c.tar.gz
spark-363bcedeea40fe3f1a92271b96af2acba63e058c.tar.bz2
spark-363bcedeea40fe3f1a92271b96af2acba63e058c.zip
[SPARK-16248][SQL] Whitelist the list of Hive fallback functions
## What changes were proposed in this pull request? This patch removes the blind fallback into Hive for functions. Instead, it creates a whitelist and adds only a small number of functions to the whitelist, i.e. the ones we intend to support in the long run in Spark. ## How was this patch tested? Updated tests to reflect the change. Author: Reynold Xin <rxin@databricks.com> Closes #13939 from rxin/hive-whitelist.
Diffstat (limited to 'sql/catalyst/src/main')
-rw-r--r--sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
index 42a8faa412..0bde48ce57 100644
--- a/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
+++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
@@ -248,6 +248,7 @@ object FunctionRegistry {
expression[Average]("mean"),
expression[Min]("min"),
expression[Skewness]("skewness"),
+ expression[StddevSamp]("std"),
expression[StddevSamp]("stddev"),
expression[StddevPop]("stddev_pop"),
expression[StddevSamp]("stddev_samp"),