Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15499#discussion_r89012336
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
    @@ -232,10 +232,10 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
           parts: Array[Partition],
           connectionProperties: Properties): DataFrame = {
         // connectionProperties should override settings in extraOptions.
    -    val params = extraOptions.toMap ++ connectionProperties.asScala.toMap
    -    val options = new JDBCOptions(url, table, params)
    -    val relation = JDBCRelation(parts, options)(sparkSession)
    --- End diff --
    
    I see. I thought this was all handled in 
https://github.com/apache/spark/blob/0c0ad436ad909364915b910867d08262c62bc95d/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JdbcRelationProvider.scala#L29-L46.
    
    Would this be possible to adding those into options rather than reverting 
this?


---
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]

Reply via email to