beliefer commented on code in PR #41534:
URL: https://github.com/apache/spark/pull/41534#discussion_r1230616973
##########
sql/core/src/main/scala/org/apache/spark/sql/functions.scala:
##########
@@ -6229,6 +6229,71 @@ object functions {
Bucket(Literal(numBuckets), e.expr)
}
+
//////////////////////////////////////////////////////////////////////////////////////////////
+ // Predicates functions
+
//////////////////////////////////////////////////////////////////////////////////////////////
+
+ /**
+ * Returns `col2` if `col1` is null, or `col1` otherwise.
+ *
+ * @group predicates_funcs
+ * @since 3.5.0
+ */
+ def ifnull(col1: Column, col2: Column): Column = withExpr {
Review Comment:
@zhengruifeng the default constructor with `replacement: Expression` will be
replaced by rules. We only need consider the other constructor without
`replacement`.
--
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]