HyukjinKwon commented on code in PR #48494:
URL: https://github.com/apache/spark/pull/48494#discussion_r1804353305


##########
sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetIOSuite.scala:
##########
@@ -1585,6 +1585,17 @@ class ParquetIOSuite extends QueryTest with ParquetTest 
with SharedSparkSession
       }
     }
   }
+
+  test("SPARK-49991: Respect 'mapreduce.output.basename' to generate file 
names") {
+    withTempPath { dir =>
+      withSQLConf("mapreduce.output.basename" -> "apachespark") {
+        spark.range(1).coalesce(1).write.parquet(dir.getCanonicalPath)
+        val df = spark.read.parquet(dir.getCanonicalPath)
+        assert(df.inputFiles.head.contains("apachespark"))

Review Comment:
   Can we double check if there aren't anything specific to `part-` files in 
our codebase?
   
   e.g., 
   
   ```
   core/src/main/scala/org/apache/spark/rdd/ReliableCheckpointRDD.scala:      
.filter(_.getName.startsWith("part-"))
   core/src/main/scala/org/apache/spark/rdd/ReliableCheckpointRDD.scala:      
.sortBy(_.getName.stripPrefix("part-").toInt)
   core/src/main/scala/org/apache/spark/rdd/ReliableCheckpointRDD.scala:    
"part-%05d".format(partitionIndex)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to