Github user liancheng commented on a diff in the pull request:
https://github.com/apache/spark/pull/11349#discussion_r54056540
--- Diff:
sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreCatalogSuite.scala
---
@@ -47,6 +47,17 @@ class HiveMetastoreCatalogSuite extends SparkFunSuite
with TestHiveSingleton {
logInfo(df.queryExecution.toString)
df.as('a).join(df.as('b), $"a.key" === $"b.key")
}
+
+ test("SPARK-13454: drop a table with a name starting with underscore") {
+ hiveContext.range(10).write.saveAsTable("_spark13454")
+ hiveContext.sql("drop table `_spark13454`")
+
+ hiveContext.range(10).write.saveAsTable("_spark13454")
+ hiveContext.sql("drop table default.`_spark13454`")
+
+ hiveContext.range(10).write.saveAsTable("spark13454")
+ hiveContext.sql("drop table spark13454")
+ }
--- End diff --
Let's add test case that
1. drops temporary tables
2. drops persistent and temporary tables with the same name
---
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]