File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/hive/client Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 ] = {
You can’t perform that action at this time.
0 commit comments