Github user gatorsmile commented on a diff in the pull request:
https://github.com/apache/spark/pull/21031#discussion_r183166915
--- Diff: python/pyspark/sql/functions.py ---
@@ -2124,6 +2124,21 @@ def size(col):
return Column(sc._jvm.functions.size(_to_java_column(col)))
+@since(2.4)
+def cardinality(col):
--- End diff --
Could you also remove this? I think we just need to do it for SQL functions
now. In the future, if this is requested by the community, we can reconsider
it. Thanks!
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]