You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2025/11/05 16:20:43 UTC
(spark) branch master updated: [SPARK-54180][SQL] Override the toString of BinaryFileFormat
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 1af7d0defd7b [SPARK-54180][SQL] Override the toString of BinaryFileFormat
1af7d0defd7b is described below
commit 1af7d0defd7b0a02a1aee07eac41162f35837f2d
Author: Burak Yavuz <br...@apache.org>
AuthorDate: Wed Nov 5 08:20:29 2025 -0800
[SPARK-54180][SQL] Override the toString of BinaryFileFormat
### What changes were proposed in this pull request?
Overrides the toString of BinaryFileFormat, making it similar to other file formats like Json and CSV. Not much impact other than making it prettier in the query plan.
### Why are the changes needed?
Consistency
### How was this patch tested?
It's a vanity thing, doesn't need much testing
### Was this patch authored or co-authored using generative AI tooling?
no
Closes #52881 from brkyvz/bToString.
Authored-by: Burak Yavuz <br...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
.../spark/sql/execution/datasources/binaryfile/BinaryFileFormat.scala | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/binaryfile/BinaryFileFormat.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/binaryfile/BinaryFileFormat.scala
index 57e0efb993fb..19b67d0c5390 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/binaryfile/BinaryFileFormat.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/binaryfile/BinaryFileFormat.scala
@@ -83,6 +83,8 @@ case class BinaryFileFormat() extends FileFormat
override def shortName(): String = BINARY_FILE
+ override def toString: String = "BINARYFILE"
+
override protected def buildReader(
sparkSession: SparkSession,
dataSchema: StructType,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org