[
https://issues.apache.org/jira/browse/BEAM-7475?focusedWorklogId=258223&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-258223
]
ASF GitHub Bot logged work on BEAM-7475:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Jun/19 23:50
Start Date: 11/Jun/19 23:50
Worklog Time Spent: 10m
Work Description: pabloem commented on pull request #8803: [BEAM-7475]
update wordcount example
URL: https://github.com/apache/beam/pull/8803#discussion_r292702300
##########
File path: website/src/get-started/wordcount-example.md
##########
@@ -1362,7 +1378,11 @@ PCollection<KV<String, Long>> wordCounts =
windowedWords.apply(new WordCount.Cou
```
```py
-# This feature is not yet available in the Beam SDK for Python.
+import apache_beam as beam
+from apache_beam.transforms import window
+...
+...
+word_counts = windowed_words | beam.Map(WordCount())
Review comment:
I think this example expects a composite transform - but I don't think wer'e
using composites in wordcount.py:
https://github.com/apache/beam/blob/master/sdks/python/apache_beam/examples/wordcount.py#L96-L102
Perhaps something like so:
```suggestion
word_counts = windowed_words | wordcount.CountWords()
```
although in this case, `CountWords` does not really exist. I am not sure how
to represent this example...
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 258223)
Time Spent: 2.5h (was: 2h 20m)
> Add Python stateful processing example in blog
> ----------------------------------------------
>
> Key: BEAM-7475
> URL: https://issues.apache.org/jira/browse/BEAM-7475
> Project: Beam
> Issue Type: Improvement
> Components: website
> Reporter: Rakesh Kumar
> Assignee: Rakesh Kumar
> Priority: Major
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)