Skip to content

Commit 6f6a420

Browse files
committed
[SPARK-23911][SQL][FOLLOW-UP] Fix examples of aggregate function.
## What changes were proposed in this pull request? This pr is a follow-up pr of #21982 and fixes the examples. ## How was this patch tested? Existing tests. Closes #22035 from ueshin/issues/SPARK-23911/fup1. Authored-by: Takuya UESHIN <[email protected]> Signed-off-by: Takuya UESHIN <[email protected]>
1 parent 960af63 commit 6f6a420

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/higherOrderFunctions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,9 +368,9 @@ case class ArrayFilter(
368368
""",
369369
examples = """
370370
Examples:
371-
> SELECT _FUNC_(array(1, 2, 3), (acc, x) -> acc + x);
371+
> SELECT _FUNC_(array(1, 2, 3), 0, (acc, x) -> acc + x);
372372
6
373-
> SELECT _FUNC_(array(1, 2, 3), (acc, x) -> acc + x, acc -> acc * 10);
373+
> SELECT _FUNC_(array(1, 2, 3), 0, (acc, x) -> acc + x, acc -> acc * 10);
374374
60
375375
""",
376376
since = "2.4.0")

0 commit comments

Comments
 (0)