cloud-fan commented on a change in pull request #34836:
URL: https://github.com/apache/spark/pull/34836#discussion_r765797624
##########
File path: sql/core/src/main/scala/org/apache/spark/sql/functions.scala
##########
@@ -4710,6 +4710,15 @@ object functions {
*/
def array_repeat(e: Column, count: Int): Column = array_repeat(e, lit(count))
+ /**
+ * Returns true if the map contains the key.
+ * @group collection_funcs
+ * @since 3.3.0
+ */
+ def map_contains_key(column: Column, key: Any): Column = withExpr {
Review comment:
I see, be consistent with `array_contains` is better.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]