diff options
author | petermaxlee <petermaxlee@gmail.com> | 2016-07-01 07:57:48 +0800 |
---|---|---|
committer | Wenchen Fan <wenchen@databricks.com> | 2016-07-01 07:57:48 +0800 |
commit | 85f2303ecadd9bf6d9694a2743dda075654c5ccf (patch) | |
tree | 09125fdca897a2995d33cf4378f3bfc2ac018ad1 /sql/hive/src | |
parent | 3d75a5b2a76eba0855d73476dc2fd579c612d521 (diff) | |
download | spark-85f2303ecadd9bf6d9694a2743dda075654c5ccf.tar.gz spark-85f2303ecadd9bf6d9694a2743dda075654c5ccf.tar.bz2 spark-85f2303ecadd9bf6d9694a2743dda075654c5ccf.zip |
[SPARK-16276][SQL] Implement elt SQL function
## What changes were proposed in this pull request?
This patch implements the elt function, as it is implemented in Hive.
## How was this patch tested?
Added expression unit test in StringExpressionsSuite and end-to-end test in StringFunctionsSuite.
Author: petermaxlee <petermaxlee@gmail.com>
Closes #13966 from petermaxlee/SPARK-16276.
Diffstat (limited to 'sql/hive/src')
-rw-r--r-- | sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala index 195591fd9d..1fffadbfca 100644 --- a/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala +++ b/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveSessionCatalog.scala @@ -238,7 +238,7 @@ private[sql] class HiveSessionCatalog( // parse_url_tuple, posexplode, reflect2, // str_to_map, windowingtablefunction. private val hiveFunctions = Seq( - "elt", "hash", "java_method", "histogram_numeric", + "hash", "java_method", "histogram_numeric", "map_keys", "map_values", "parse_url", "percentile", "percentile_approx", "reflect", "sentences", "stack", "str_to_map", "xpath", "xpath_double", "xpath_float", "xpath_int", "xpath_long", |