Github user marmbrus commented on a diff in the pull request:
https://github.com/apache/spark/pull/4249#discussion_r23812908
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala
---
@@ -56,13 +56,44 @@ class HiveQuerySuite extends HiveComparisonTest with
BeforeAndAfter {
Locale.setDefault(originalLocale)
}
- test("SPARK-4908: concurent hive native commands") {
+ test("SPARK-4908: concurrent hive native commands") {
(1 to 100).par.map { _ =>
sql("USE default")
sql("SHOW TABLES")
}
}
+ test("SPARK-5324 query result of describe command") {
+ loadTestTable("src")
+
+ // register a describe command to be a temp table
+ sql("desc src").registerTempTable("mydesc")
+ assertResult(
+ Array(
+ Row("col_name", "StringType", null),
+ Row("data_type", "StringType", null),
+ Row("comment", "StringType", null)
+ )) {
+ sql("desc mydesc").collect()
--- End diff --
Use `checkAnswer` for test that check the results of queries.
---
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]