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

    https://github.com/apache/spark/pull/13623#discussion_r66884199
  
    --- Diff: 
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetPartitionDiscoverySuite.scala
 ---
    @@ -890,4 +892,26 @@ class ParquetPartitionDiscoverySuite extends QueryTest 
with ParquetTest with Sha
           }
         }
       }
    +
    +  test("SPARK-15895 summary files in non-leaf partition directories") {
    +    withTempPath { dir =>
    +      val path = dir.getCanonicalPath
    +
    +      withSQLConf(ParquetOutputFormat.ENABLE_JOB_SUMMARY -> "true") {
    +        spark.range(3).write.parquet(s"$path/p0=0/p1=0")
    +      }
    +
    +      val p0 = new File(path, "p0=0")
    +      val p1 = new File(p0, "p1=0")
    +
    +      Files.copy(new File(p1, "_metadata"), new File(p0, "_metadata"))
    +      Files.copy(new File(p1, "_common_metadata"), new File(p0, 
"_common_metadata"))
    --- End diff --
    
    Let's put the dir/file layout in the comment


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to