Github user rxin commented on a diff in the pull request:
https://github.com/apache/spark/pull/7259#discussion_r35290305
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala
---
@@ -135,6 +137,42 @@ class SQLQuerySuite extends QueryTest {
(1 to 6).map(_ => Row("CA", 20151)))
}
+ test("show functions") {
+ val allFunctions =
+ (FunctionRegistry.builtin.listFunction().toSet[String] ++
+
org.apache.hadoop.hive.ql.exec.FunctionRegistry.getFunctionNames).toList.sorted
+ checkAnswer(sql("SHOW functions"), allFunctions.map(Row(_)))
+ }
+
+ test("describe functions") {
+ // The Spark SQL built-in functions
+ checkExistence(sql("describe function extended upper"), true,
+ "Function: upper",
+ "Class: org.apache.spark.sql.catalyst.expressions.Upper",
--- End diff --
ok let's keep it for now.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]