Skip to content

Commit 5fdd2bb

Browse files
authored
Remove SPARK-16848: jdbc API throws an exception for user specified schema
1 parent 9e6f7cf commit 5fdd2bb

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -916,21 +916,6 @@ class JDBCSuite extends SparkFunSuite
916916
assert(new JDBCOptions(CaseInsensitiveMap(parameters)).asConnectionProperties.isEmpty)
917917
}
918918

919-
ignore("SPARK-16848: jdbc API throws an exception for user specified schema") {
920-
val schema = StructType(Seq(
921-
StructField("name", StringType, false), StructField("theid", IntegerType, false)))
922-
val parts = Array[String]("THEID < 2", "THEID >= 2")
923-
val e1 = intercept[AnalysisException] {
924-
spark.read.schema(schema).jdbc(urlWithUserAndPass, "TEST.PEOPLE", parts, new Properties())
925-
}.getMessage
926-
assert(e1.contains("User specified schema not supported with `jdbc`"))
927-
928-
val e2 = intercept[AnalysisException] {
929-
spark.read.schema(schema).jdbc(urlWithUserAndPass, "TEST.PEOPLE", new Properties())
930-
}.getMessage
931-
assert(e2.contains("User specified schema not supported with `jdbc`"))
932-
}
933-
934919
test("SPARK-15648: teradataDialect StringType data mapping") {
935920
val teradataDialect = JdbcDialects.get("jdbc:teradata://127.0.0.1/db")
936921
assert(teradataDialect.getJDBCType(StringType).

0 commit comments

Comments
 (0)