This is an automated email from the ASF dual-hosted git repository.

dongjoon pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 16757ec90750 [SPARK-54180][SQL] Override the toString of 
BinaryFileFormat
16757ec90750 is described below

commit 16757ec907505e0049a97acbcac1296befb88cd3
Author: Burak Yavuz <[email protected]>
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 <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit 1af7d0defd7b0a02a1aee07eac41162f35837f2d)
    Signed-off-by: Dongjoon Hyun <[email protected]>
---
 .../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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to