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

    https://github.com/apache/spark/pull/20579#discussion_r167660095
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetFileFormat.scala
 ---
    @@ -68,6 +68,16 @@ class ParquetFileFormat
     
       override def toString: String = "Parquet"
     
    +  private def verifySchema(schema: StructType): Unit = {
    +    if (schema.size == 0) {
    +      throw new AnalysisException(
    +        s"""
    +           |Parquet data source does not support writing empty groups.
    --- End diff --
    
    @hvanhovell Thank you. I will change it to use "schema". I will check 
nested schema as well.


---

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

Reply via email to