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 {
28
28
29
29
protected override def beforeAll (): Unit = {
30
30
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
+ }
34
34
sql(" DROP TABLE IF EXISTS t0" )
35
35
36
36
spark.range(10 ).write.saveAsTable(" parquet_t0" )
@@ -66,10 +66,9 @@ class LogicalPlanToSQLSuite extends SQLBuilderTest with SQLTestUtils {
66
66
67
67
override protected def afterAll (): Unit = {
68
68
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
+ }
73
72
sql(" DROP TABLE IF EXISTS t0" )
74
73
} finally {
75
74
super .afterAll()
You can’t perform that action at this time.
0 commit comments