Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/21031#discussion_r182622638
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
@@ -3282,6 +3282,14 @@ object functions {
*/
def size(e: Column): Column = withExpr { Size(e.expr) }
+ /**
+ * Returns length of array or map as long.
+ *
+ * @group collection_funcs
+ * @since 2.4.0
+ */
+ def cardinality(e: Column): Column = withExpr { Cardinality(e.expr) }
--- End diff --
I see.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]