aboutsummaryrefslogtreecommitdiff
path: root/sql/hive-thriftserver
diff options
context:
space:
mode:
authorgatorsmile <gatorsmile@gmail.com>2016-05-06 11:43:07 -0700
committerYin Huai <yhuai@databricks.com>2016-05-06 11:43:07 -0700
commit5c8fad7b9bfd6677111a8e27e2574f82b04ec479 (patch)
tree5beee2fc0016634be8461e12d1617c7edfb7b3f9 /sql/hive-thriftserver
parent76ad04d9a0a7d4dfb762318d9c7be0d7720f4e1a (diff)
downloadspark-5c8fad7b9bfd6677111a8e27e2574f82b04ec479.tar.gz
spark-5c8fad7b9bfd6677111a8e27e2574f82b04ec479.tar.bz2
spark-5c8fad7b9bfd6677111a8e27e2574f82b04ec479.zip
[SPARK-15108][SQL] Describe Permanent UDTF
#### What changes were proposed in this pull request? When Describe a UDTF, the command returns a wrong result. The command is unable to find the function, which has been created and cataloged in the catalog but not in the functionRegistry. This PR is to correct it. If the function is not in the functionRegistry, we will check the catalog for collecting the information of the UDTF function. #### How was this patch tested? Added test cases to verify the results Author: gatorsmile <gatorsmile@gmail.com> Closes #12885 from gatorsmile/showFunction.
Diffstat (limited to 'sql/hive-thriftserver')
-rw-r--r--sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
index 1a894ae857..b3f4944c91 100644
--- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
+++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2Suites.scala
@@ -534,7 +534,7 @@ class HiveThriftHttpServerSuite extends HiveThriftJdbcTest {
}
assert(rs1.next())
- assert(rs1.getString(1) === "Usage: To be added.")
+ assert(rs1.getString(1) === "Usage: N/A.")
val dataPath = "../hive/src/test/resources/data/files/kv1.txt"
@@ -608,7 +608,7 @@ class SingleSessionSuite extends HiveThriftJdbcTest {
}
assert(rs2.next())
- assert(rs2.getString(1) === "Usage: To be added.")
+ assert(rs2.getString(1) === "Usage: N/A.")
} finally {
statement.executeQuery("DROP TEMPORARY FUNCTION udtf_count2")
}