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

    https://github.com/apache/spark/pull/21031#discussion_r182816541
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/FunctionRegistry.scala
 ---
    @@ -407,6 +407,7 @@ object FunctionRegistry {
         expression[MapKeys]("map_keys"),
         expression[MapValues]("map_values"),
         expression[Size]("size"),
    +    expression[Cardinality]("cardinality"),
    --- End diff --
    
    Alias names are implemented like that. No need to create a new one. We did 
it in the other SQL functions too. like char,  char_length and many. We can 
update the description in the existing ExpressionDescription 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to