Github user HyukjinKwon commented on the issue:

    https://github.com/apache/spark/pull/15608
  
    I guess you meant when the options, for example, 
`DataFrameReader.extraOptions` turns into `Properties` when we call JDBC APIs. 
In this case, `Properties` always has a higher precedence and will overwrite 
`DataFrameReader.extraOptions`[1] and exclude Spark internal options[2].
    
    
[1]https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala#L235
    
[2]https://github.com/apache/spark/blob/0c0ad436ad909364915b910867d08262c62bc95d/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/jdbc/JDBCOptions.scala#L43
    
    (BTW, it seems throwing `NullPointException` when we call `setProperty` and 
the key is `null`)


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