File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
sql/core/src/test/scala/org/apache/spark/sql Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import java.sql.{Date, Timestamp}
2222
2323import scala .language .postfixOps
2424
25- import org .scalatest .words .MatcherWords .{ be , noException }
25+ import org .scalatest .words .MatcherWords .be
2626
2727import org .apache .spark .sql .catalyst .encoders .{OuterScopes , RowEncoder }
2828import org .apache .spark .sql .execution .streaming .MemoryStream
@@ -681,10 +681,9 @@ class DatasetSuite extends QueryTest with SharedSQLContext {
681681 val dataset = Seq (1 , 2 , 3 ).toDS()
682682 dataset.createOrReplaceTempView(" tempView" )
683683
684- noException should be thrownBy {
685- // Overrrides the existing temporary view with same name
686- dataset.createOrReplaceTempView(" tempView" )
687- }
684+ // Overrrides the existing temporary view with same name
685+ // No exception should be thrown here.
686+ dataset.createOrReplaceTempView(" tempView" )
688687
689688 // Throws AnalysisException if temp view with same name already exists
690689 val e = intercept[AnalysisException ](
You can’t perform that action at this time.
0 commit comments