[
https://issues.apache.org/jira/browse/BEAM-7475?focusedWorklogId=258221&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-258221
]
ASF GitHub Bot logged work on BEAM-7475:
----------------------------------------
Author: ASF GitHub Bot
Created on: 11/Jun/19 23:45
Start Date: 11/Jun/19 23:45
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_r292701450
##########
File path: website/src/get-started/wordcount-example.md
##########
@@ -1308,7 +1313,14 @@ static class AddTimestampFn extends DoFn<String,
String> {
```
```py
-# This feature is not yet available in the Beam SDK for Python.
+import apache_beam as beam
+from apache_beam.transforms import window
+...
+...
+class AddTimestampFn(beam.DoFn):
+
+ def process(self, element):
+ return window.TimestampedValue(element, timestamp_seconds)
Review comment:
And maybe this too? :
```suggestion
return window.TimestampedValue(element, self.timestamp_seconds)
```
----------------------------------------------------------------
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: 258221)
Time Spent: 2h 20m (was: 2h 10m)
> 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: 2h 20m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)