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

    https://github.com/apache/spark/pull/21320#discussion_r203934633
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetReadSupport.scala
 ---
    @@ -288,6 +310,27 @@ private[parquet] object ParquetReadSupport {
         }
       }
     
    +  /**
    +   * Computes the structural intersection between two Parquet group types.
    +   */
    +  private def intersectParquetGroups(
    +      groupType1: GroupType, groupType2: GroupType): Option[GroupType] = {
    +    val fields =
    +      groupType1.getFields.asScala
    +        .filter(field => groupType2.containsField(field.getName))
    +        .flatMap {
    +          case field1: GroupType =>
    --- End diff --
    
    `field1` -> `field`.


---

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

Reply via email to