Github user mgaido91 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22110#discussion_r210343741
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/util/TypeUtils.scala 
---
    @@ -73,4 +73,14 @@ object TypeUtils {
         }
         x.length - y.length
       }
    +
    +  /**
    +   * Returns true if elements of the data type could be used as items of a 
hash set or as keys
    --- End diff --
    
    I think this comment is not very coherent with the method name. I think we 
can rephrase to something like:
    ```
    Returns true if the equal method of the elements of the data type is 
implemented properly.
    This also means that they can be safely used in collections relying on the 
equals method,
    as sets or maps.
    ```
    What do you think?


---

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

Reply via email to