Github user adachij2002 commented on a diff in the pull request:
https://github.com/apache/spark/pull/5345#discussion_r28208276
--- Diff:
sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/thriftserver/CliSuite.scala
---
@@ -26,22 +26,32 @@ import scala.concurrent.{Await, Promise}
import scala.sys.process.{Process, ProcessLogger}
import org.apache.hadoop.hive.conf.HiveConf.ConfVars
-import org.scalatest.{BeforeAndAfterAll, FunSuite}
+import org.scalatest.{BeforeAndAfter, BeforeAndAfterAll, FunSuite}
import org.apache.spark.Logging
import org.apache.spark.util.Utils
-class CliSuite extends FunSuite with BeforeAndAfterAll with Logging {
+class CliSuite extends FunSuite with BeforeAndAfter with BeforeAndAfterAll
with Logging {
+ val warehousePath = Utils.createTempDir()
+ val metastorePath = Utils.createTempDir()
+
+ before {
+ warehousePath.delete()
+ metastorePath.delete()
+ }
+
+ after {
+ warehousePath.delete()
+ metastorePath.delete()
+ }
--- End diff --
I need this test transactional.
1. create database for test db by SparkSQL CLI.
2. test --database option by SparkSQL command line.
But the runCliWithin method will delete schema information.
I modified to delete schema information in before/after of the test method.
---
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]