[ https://issues.apache.org/jira/browse/BEAM-7475?focusedWorklogId=264752&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-264752 ]
ASF GitHub Bot logged work on BEAM-7475: ---------------------------------------- Author: ASF GitHub Bot Created on: 21/Jun/19 16:29 Start Date: 21/Jun/19 16:29 Worklog Time Spent: 10m Work Description: aaltay commented on pull request #8803: [BEAM-7475] update wordcount example URL: https://github.com/apache/beam/pull/8803#discussion_r296306282 ########## 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, self.timestamp_seconds) Review comment: You can match the java snippet by assigning random timestamps in the [min_ts, max_ts) range ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 264752) Time Spent: 3h 20m (was: 3h 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: 3h 20m > Remaining Estimate: 0h > -- This message was sent by Atlassian JIRA (v7.6.3#76005)