Skip to content

Commit 5b738cf

Browse files
author
xy_xin
committed
Refine test cases.
1 parent a76062c commit 5b738cf

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

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

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1818,24 +1818,7 @@ class DataSourceV2SQLSuite
18181818
}
18191819
}
18201820

1821-
test("Update: update with aliased target table - 1") {
1822-
val t = "testcat.ns1.ns2.tbl"
1823-
withTable(t) {
1824-
sql(s"CREATE TABLE $t (id bigint, name string, age int, p int)" +
1825-
" USING foo" +
1826-
" PARTITIONED BY (id, p)")
1827-
sql(s"INSERT INTO $t VALUES (1L, 'Herry', 26, 1)," +
1828-
s" (2L, 'Jack', 31, 2), (3L, 'Lisa', 28, 3), (4L, 'Frank', 33, 3)")
1829-
sql(s"UPDATE $t tbl SET tbl.name='Robert', tbl.age=32 where p=2")
1830-
checkAnswer(spark.table(t),
1831-
Seq(Row(1, "Herry", 26, 1),
1832-
Row(2, "Robert", 32, 2),
1833-
Row(3, "Lisa", 28, 3),
1834-
Row(4, "Frank", 33, 3)))
1835-
}
1836-
}
1837-
1838-
test("Update: update with aliased target table - 2") {
1821+
test("Update: update with aliased target table") {
18391822
val t = "testcat.ns1.ns2.tbl"
18401823
withTable(t) {
18411824
sql(s"CREATE TABLE $t (id bigint, name string, age int, p int)" +

0 commit comments

Comments
 (0)