Skip to content

Commit 98bf027

Browse files
committed
revise tests
1 parent 3c282ef commit 98bf027

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

sql/core/src/test/scala/org/apache/spark/sql/SQLQuerySuite.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import java.util.concurrent.atomic.AtomicBoolean
2424

2525
import org.apache.spark.{AccumulatorSuite, SparkException}
2626
import org.apache.spark.scheduler.{SparkListener, SparkListenerJobStart}
27-
import org.apache.spark.sql.catalyst.TableIdentifier
2827
import org.apache.spark.sql.catalyst.util.StringUtils
2928
import org.apache.spark.sql.execution.aggregate
3029
import org.apache.spark.sql.execution.aggregate.{HashAggregateExec, SortAggregateExec}

sql/core/src/test/scala/org/apache/spark/sql/test/DataFrameReaderWriterSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -830,8 +830,7 @@ class DataFrameReaderWriterSuite extends QueryTest with SharedSQLContext with Be
830830
spark.sql("CREATE VIEW view1 AS SELECT * FROM tbl")
831831
spark.sql("CREATE TABLE tbl2(COL1 long, COL2 int, COL3 int) USING parquet PARTITIONED " +
832832
"BY (COL2) CLUSTERED BY (COL3) INTO 3 BUCKETS")
833-
spark.sql("INSERT OVERWRITE TABLE tbl2 SELECT COL1, COL2, COL3 " +
834-
"FROM view1 CLUSTER BY COL3")
833+
spark.sql("INSERT OVERWRITE TABLE tbl2 SELECT COL1, COL2, COL3 FROM view1")
835834
val identifier = TableIdentifier("tbl2", Some("default"))
836835
val location = spark.sessionState.catalog.getTableMetadata(identifier).location.toString
837836
val expectedSchema = StructType(Seq(

0 commit comments

Comments
 (0)