Skip to content

Commit

Permalink
[MINOR][EXAMPLES] Add missing return keyword streaming word count exa…
Browse files Browse the repository at this point in the history
…mple

This is a very low level error.

Closes apache#24153 from jiangruocheng/master.

Authored-by: Ruocheng Jiang <jiangruocheng@gmail.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
  • Loading branch information
jiangruocheng authored and srowen committed Mar 20, 2019
1 parent a8d9531 commit d6ee2f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def echo(time, rdd):
def filterFunc(wordCount):
if wordCount[0] in blacklist.value:
droppedWordsCounter.add(wordCount[1])
False
return False
else:
True
return True

counts = "Counts at time %s %s" % (time, rdd.filter(filterFunc).collect())
print(counts)
Expand Down

0 comments on commit d6ee2f3

Please sign in to comment.