Github user felixcheung commented on a diff in the pull request:
https://github.com/apache/spark/pull/21482#discussion_r192577235
--- Diff: sql/core/src/main/scala/org/apache/spark/sql/functions.scala ---
@@ -1107,6 +1107,14 @@ object functions {
*/
def input_file_name(): Column = withExpr { InputFileName() }
+ /**
+ * Return true iff the column is Infinity.
+ *
+ * @group normal_funcs
+ * @since 2.4.0
+ */
+ def isinf(e: Column): Column = withExpr { IsInf(e.expr) }
--- End diff --
I guess someone should elaborate if Column.isFoo vs function's isfoo is the
right pattern we want to stay with...
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]