[ 
https://issues.apache.org/jira/browse/BEAM-8078?focusedWorklogId=394483&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-394483
 ]

ASF GitHub Bot logged work on BEAM-8078:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Feb/20 21:52
            Start Date: 27/Feb/20 21:52
    Worklog Time Spent: 10m 
      Work Description: Tesio commented on pull request #10914: [BEAM-8078] 
streaming_wordcount_debugging.py is missing a test
URL: https://github.com/apache/beam/pull/10914#discussion_r385392760
 
 

 ##########
 File path: sdks/python/apache_beam/examples/streaming_wordcount_debugging.py
 ##########
 @@ -71,16 +72,14 @@ def process(
 class AddTimestampFn(beam.DoFn):
   """A DoFn that attaches timestamps to its elements.
 
-  It takes a string of integers and it attaches to each of them
-  a timestamp of its same value.
+  It just takes an element and adds a current timestamp.
 
-  For example, [120, 225, 312] will result in:
-  [(120, Timestamp(120)), (225, Timestamp(225)), (312, Timestamp(312))].
+  For example, Sometext will result in:
+  (Sometext, Timestamp(1234567890).
 
 Review comment:
   Well, as this is an example of debugging functionality - more complicated 
logic could be added during real-time development. Just to keep it simple for 
windowing and applicable for strings as well - what about basing on string's 
length to keep it predictable. And keeping int-base for int values?
 
----------------------------------------------------------------
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: 394483)
    Time Spent: 1.5h  (was: 1h 20m)

> streaming_wordcount_debugging.py is missing a test
> --------------------------------------------------
>
>                 Key: BEAM-8078
>                 URL: https://issues.apache.org/jira/browse/BEAM-8078
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Udi Meiri
>            Assignee: Aleksey Vysotin
>            Priority: Minor
>              Labels: beginner, easy, newbie, starter
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> It's example code and should have a basic_test (like the other wordcount 
> variants in [1]) to at least verify that it runs in the latest Beam release.
> [1] 
> https://github.com/apache/beam/tree/master/sdks/python/apache_beam/examples



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to