Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/16891#discussion_r100910994
--- Diff:
external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala
---
@@ -149,4 +172,16 @@ class OracleIntegrationSuite extends
DockerJDBCIntegrationSuite with SharedSQLCo
assert(values.getDate(9).equals(dateVal))
assert(values.getTimestamp(10).equals(timestampVal))
}
+
+ test("SPARK-19318: connection property keys should be case-sensitive") {
+ val row = sql("SELECT * FROM datetime where id = 1").head()
+ assert(row.getDate(1).equals(Date.valueOf("1991-11-09")))
+ assert(row.getTimestamp(2).equals(Timestamp.valueOf("1996-01-01
01:23:45")))
+
+ sql("INSERT INTO TABLE datetime1 SELECT * FROM datetime where id = 1")
+ val row1 = sql("SELECT * FROM datetime1 where id = 1").head()
+ assert(row1.getInt(0) == 1)
+ assert(row1.getDate(1).equals(Date.valueOf("1991-11-09")))
+ assert(row1.getTimestamp(2).equals(Timestamp.valueOf("1996-01-01
01:23:45")))
+ }
--- End diff --
After addressing all the comments, I will run the docker tests in my local
environment. Thanks!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]