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 704e9a0785f4 [MINOR][SQL] Clean up outdated comments from `hash` 
function in `Metadata`
704e9a0785f4 is described below

commit 704e9a0785f4fc4dd86b950a649114e807a826a1
Author: yangjie01 <yangji...@baidu.com>
AuthorDate: Thu Feb 1 09:31:24 2024 -0800

    [MINOR][SQL] Clean up outdated comments from `hash` function in `Metadata`
    
    ### What changes were proposed in this pull request?
    This pr just clean up outdated comments from `hash` function in `Metadata`
    
    ### Why are the changes needed?
    Clean up outdated comments
    
    ### Does this PR introduce _any_ user-facing change?
    No
    
    ### How was this patch tested?
    Pass GitHub Actions
    
    ### Was this patch authored or co-authored using generative AI tooling?
    No
    
    Closes #44978 from LuciferYang/minior-remove-comments.
    
    Authored-by: yangjie01 <yangji...@baidu.com>
    Signed-off-by: Dongjoon Hyun <dh...@apple.com>
---
 sql/api/src/main/scala/org/apache/spark/sql/types/Metadata.scala | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sql/api/src/main/scala/org/apache/spark/sql/types/Metadata.scala 
b/sql/api/src/main/scala/org/apache/spark/sql/types/Metadata.scala
index 17be8cfa12b5..2ffd0f13ca10 100644
--- a/sql/api/src/main/scala/org/apache/spark/sql/types/Metadata.scala
+++ b/sql/api/src/main/scala/org/apache/spark/sql/types/Metadata.scala
@@ -208,8 +208,6 @@ object Metadata {
   /** Computes the hash code for the types we support. */
   private def hash(obj: Any): Int = {
     obj match {
-      // `map.mapValues` return `Map` in Scala 2.12 and return `MapView` in 
Scala 2.13, call
-      // `toMap` for Scala version compatibility.
       case map: Map[_, _] =>
         map.transform((_, v) => hash(v)).##
       case arr: Array[_] =>


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

Reply via email to