Skip to content

Commit

Permalink
[SPARK-23911][SQL][FOLLOW-UP] Fix examples of aggregate function.
Browse files Browse the repository at this point in the history
## 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]>
  • Loading branch information
ueshin committed Aug 8, 2018
1 parent 960af63 commit 6f6a420
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,9 @@ case class ArrayFilter(
""",
examples = """
Examples:
> SELECT _FUNC_(array(1, 2, 3), (acc, x) -> acc + x);
> SELECT _FUNC_(array(1, 2, 3), 0, (acc, x) -> acc + x);
6
> SELECT _FUNC_(array(1, 2, 3), (acc, x) -> acc + x, acc -> acc * 10);
> SELECT _FUNC_(array(1, 2, 3), 0, (acc, x) -> acc + x, acc -> acc * 10);
60
""",
since = "2.4.0")
Expand Down

0 comments on commit 6f6a420

Please sign in to comment.