Skip to content

Commit ab5e369

Browse files
author
Mingjie Tang
committed
revert to create table for testing
1 parent 4f26b28 commit ab5e369

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/client/VersionsSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ class VersionsSuite extends SparkFunSuite with SQLTestUtils with TestHiveSingle
228228
}
229229

230230
test(s"$version: Delete the temporary staging directory and files after each insert") {
231-
import sqlContext.implicits._
232231
withTempDir { tmpDir =>
233232
withTable("tab", "tbl") {
234233
sqlContext.sql(
@@ -237,7 +236,7 @@ class VersionsSuite extends SparkFunSuite with SQLTestUtils with TestHiveSingle
237236
|location '${tmpDir.toURI.toString}'
238237
""".stripMargin)
239238

240-
Seq(Tuple1("a")).toDF("value").repartition(1).registerTempTable("tbl")
239+
sqlContext.sql("CREATE TABLE tbl AS SELECT 1 AS a")
241240
sqlContext.sql(s"INSERT OVERWRITE TABLE tab SELECT * from tbl ")
242241

243242
def listFiles(path: File): List[String] = {

0 commit comments

Comments
 (0)