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

    https://github.com/apache/spark/pull/20579#discussion_r175952408
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSource.scala
 ---
    @@ -719,4 +720,27 @@ object DataSource extends Logging {
         }
         globPath
       }
    +
    +  /**
    +   * Called before writing into a FileFormat based data source to make 
sure the
    +   * supplied schema is not empty.
    +   * @param schema
    +   */
    +  private def verifySchema(schema: StructType): Unit = {
    +    def verifyInternal(schema: StructType): Boolean = {
    --- End diff --
    
    @cloud-fan will make the change.


---

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

Reply via email to