Github user nongli commented on a diff in the pull request:
https://github.com/apache/spark/pull/10498#discussion_r48895396
--- Diff:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetRelation.scala
---
@@ -87,7 +91,8 @@ private[sql] class ParquetOutputWriter(path: String,
context: TaskAttemptContext
val uniqueWriteJobId =
configuration.get("spark.sql.sources.writeJobUUID")
val taskAttemptId = context.getTaskAttemptID
val split = taskAttemptId.getTaskID.getId
- new Path(path, f"part-r-$split%05d-$uniqueWriteJobId$extension")
+ val bucketString = bucketId.map(id => f"-$id%05d").getOrElse("")
--- End diff --
This means the max buckets is capped to 99999 yes? This is definitely big
enough but can you add some validation in bucketBy?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]