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

    https://github.com/apache/spark/pull/20579#discussion_r167623896
  
    --- 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 --
    
    `group` is a parquet term. Let's use `schema` instead?
    
    We should also check for nested empty schema's.


---

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

Reply via email to