File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
sql/hive/src/test/scala/org/apache/spark/sql/catalyst Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,9 @@ class LogicalPlanToSQLSuite extends SQLBuilderTest with SQLTestUtils {
2828
2929 protected override def beforeAll (): Unit = {
3030 super .beforeAll()
31- sql( " DROP TABLE IF EXISTS parquet_t0 " )
32- sql(" DROP TABLE IF EXISTS parquet_t1 " )
33- sql( " DROP TABLE IF EXISTS parquet_t2 " )
31+ ( 0 to 3 ).foreach { i =>
32+ sql(s " DROP TABLE IF EXISTS parquet_t $i " )
33+ }
3434 sql(" DROP TABLE IF EXISTS t0" )
3535
3636 spark.range(10 ).write.saveAsTable(" parquet_t0" )
@@ -66,10 +66,9 @@ class LogicalPlanToSQLSuite extends SQLBuilderTest with SQLTestUtils {
6666
6767 override protected def afterAll (): Unit = {
6868 try {
69- sql(" DROP TABLE IF EXISTS parquet_t0" )
70- sql(" DROP TABLE IF EXISTS parquet_t1" )
71- sql(" DROP TABLE IF EXISTS parquet_t2" )
72- sql(" DROP TABLE IF EXISTS parquet_t3" )
69+ (0 to 3 ).foreach { i =>
70+ sql(s " DROP TABLE IF EXISTS parquet_t $i" )
71+ }
7372 sql(" DROP TABLE IF EXISTS t0" )
7473 } finally {
7574 super .afterAll()
You can’t perform that action at this time.
0 commit comments