Skip to content

Commit 6372720

Browse files
committed
fixed.
1 parent 59860e7 commit 6372720

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql/core/src/main/scala/org/apache/spark/sql/functions.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3456,9 +3456,11 @@ object functions {
34563456
/**
34573457
* Returns an array of elements for which a predicate holds in a given array.
34583458
* {{{
3459+
* df.select(filter(col("s"), x -> x % 2 === 0))
34593460
* df.selectExpr("filter(col, x -> x % 2 == 0)")
34603461
* }}}
34613462
*
3463+
* @param column: the input array column
34623464
* @param f: col => predicate, the boolean predicate to filter the input column
34633465
*
34643466
* @group collection_funcs
@@ -3471,9 +3473,11 @@ object functions {
34713473
/**
34723474
* Returns an array of elements for which a predicate holds in a given array.
34733475
* {{{
3476+
* df.select(filter(col("s"), (x, i) => i % 2 === 0))
34743477
* df.selectExpr("filter(col, (x, i) -> i % 2 == 0)")
34753478
* }}}
34763479
*
3480+
* @param column: the input array column
34773481
* @param f: (col, index) => predicate, the boolean predicate to filter the input column
34783482
* given the index. Indices start at 0.
34793483
*

0 commit comments

Comments
 (0)