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

    https://github.com/apache/spark/pull/18266#discussion_r137720936
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/DataFrameReader.scala ---
    @@ -197,7 +197,7 @@ class DataFrameReader private[sql](sparkSession: 
SparkSession) extends Logging {
        * @since 1.4.0
        */
       def jdbc(url: String, table: String, properties: Properties): DataFrame 
= {
    -    assertNoSpecifiedSchema("jdbc")
    +    assertJdbcAPISpecifiedDataFrameSchema()
    --- End diff --
    
    Users should be able to do it in either way. If users specify them in both 
`schema()` API and the `customerSchema` option, we should issue an exception.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to