Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/16891#discussion_r100681778
  
    --- Diff: 
external/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/OracleIntegrationSuite.scala
 ---
    @@ -149,4 +155,29 @@ 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") {
    +    sql(
    +      s"""
    +         |CREATE TEMPORARY TABLE datetime
    +         |USING org.apache.spark.sql.jdbc
    +         |OPTIONS (url '$jdbcUrl', dbTable 'datetime', 
oracle.jdbc.mapDateToTimestamp 'false')
    +      """.stripMargin.replaceAll("\n", " "))
    +    val row = sql("SELECT * FROM datetime where id = 1").collect()(0)
    --- End diff --
    
    nit: use `.head` instead of `(0)`


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to