Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/21031#discussion_r182559515
--- 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 --
That might be fine in most cases. If we really need it In the future, we
can add new APIs with better names later?
Like in SQL, we have COUNT and COUNT_BIG. COUNT_BIG is similar to COUNT but
the result can be grater than the max value of integer.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]