Ngone51 commented on a change in pull request #26736: [SPARK-30098][SQL] Use 
default datasource as provider for CREATE TABLE syntax
URL: https://github.com/apache/spark/pull/26736#discussion_r353188855
 
 

 ##########
 File path: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/CachedTableSuite.scala
 ##########
 @@ -34,6 +35,22 @@ import org.apache.spark.util.Utils
 class CachedTableSuite extends QueryTest with SQLTestUtils with 
TestHiveSingleton {
   import hiveContext._
 
+  private val originalCreateHiveTable = 
TestHive.conf.createHiveTableByDefaultEnabled
+
+  override def beforeAll(): Unit = {
+    super.beforeAll()
+    TestHive.conf.setConf(SQLConf.LEGACY_CREATE_HIVE_TABLE_BY_DEFAULT_ENABLED, 
true)
 
 Review comment:
   This suite use table `src` from TestHive. If we don't create hive table, it 
failed by:
   
   `LOAD DATA is not supported for datasource tables: default.src;`
   
   And many other tests across test suites failed due to the same reason.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to