Skip to content

Commit dbb7e1f

Browse files
committed
added testQuietly
1 parent 6f3c106 commit dbb7e1f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sql/core/src/test/scala/org/apache/spark/sql/sources/v2/DataSourceV2DataFrameSuite.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ class DataSourceV2DataFrameSuite extends QueryTest with SharedSQLContext with Be
138138
}
139139
}
140140

141-
test("saveAsTable: with defined catalog and table doesn't exist") {
141+
testQuietly("saveAsTable: with defined catalog and table doesn't exist") {
142142
val t1 = "testcat.ns1.ns2.tbl"
143143
withTable(t1) {
144144
spark.table("source").write.saveAsTable(t1)
145145
checkAnswer(spark.table(t1), spark.table("source"))
146146
}
147147
}
148148

149-
test("saveAsTable: with defined catalog and table exists") {
149+
testQuietly("saveAsTable: with defined catalog and table exists") {
150150
val t1 = "testcat.ns1.ns2.tbl"
151151
withTable(t1) {
152152
sql(s"CREATE TABLE $t1 (id bigint, data string) USING foo")
@@ -156,15 +156,15 @@ class DataSourceV2DataFrameSuite extends QueryTest with SharedSQLContext with Be
156156
}
157157
}
158158

159-
test("saveAsTable: with defined catalog + table overwrite and table doesn't exist") {
159+
testQuietly("saveAsTable: with defined catalog + table overwrite and table doesn't exist") {
160160
val t1 = "testcat.ns1.ns2.tbl"
161161
withTable(t1) {
162162
spark.table("source").write.mode("overwrite").saveAsTable(t1)
163163
checkAnswer(spark.table(t1), spark.table("source"))
164164
}
165165
}
166166

167-
test("saveAsTable: with defined catalog + table overwrite and table exists") {
167+
testQuietly("saveAsTable: with defined catalog + table overwrite and table exists") {
168168
val t1 = "testcat.ns1.ns2.tbl"
169169
withTable(t1) {
170170
sql(s"CREATE TABLE $t1 USING foo AS SELECT 'c', 'd'")
@@ -173,15 +173,15 @@ class DataSourceV2DataFrameSuite extends QueryTest with SharedSQLContext with Be
173173
}
174174
}
175175

176-
test("saveAsTable: with defined catalog + ignore mode and table doesn't exist") {
176+
testQuietly("saveAsTable: with defined catalog + ignore mode and table doesn't exist") {
177177
val t1 = "testcat.ns1.ns2.tbl"
178178
withTable(t1) {
179179
spark.table("source").write.mode("ignore").saveAsTable(t1)
180180
checkAnswer(spark.table(t1), spark.table("source"))
181181
}
182182
}
183183

184-
test("saveAsTable: with defined catalog + ignore mode and table exists") {
184+
testQuietly("saveAsTable: with defined catalog + ignore mode and table exists") {
185185
val t1 = "testcat.ns1.ns2.tbl"
186186
withTable(t1) {
187187
sql(s"CREATE TABLE $t1 USING foo AS SELECT 'c', 'd'")

0 commit comments

Comments
 (0)