You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/04 09:12:00 UTC

[jira] [Work logged] (BEAM-2687) Python SDK support for Stateful Processing

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

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

                Author: ASF GitHub Bot
            Created on: 04/Oct/18 09:11
            Start Date: 04/Oct/18 09:11
    Worklog Time Spent: 10m 
      Work Description: robertwb commented on a change in pull request #6433: [BEAM-2687] Implement Timers over the Fn API.
URL: https://github.com/apache/beam/pull/6433#discussion_r222592669
 
 

 ##########
 File path: sdks/python/apache_beam/coders/coder_impl.py
 ##########
 @@ -435,6 +435,23 @@ def estimate_size(self, unused_value, nested=False):
     return 8
 
 
+class TimerCoderImpl(StreamCoderImpl):
+  """For internal use only; no backwards-compatibility guarantees."""
+  def __init__(self, payload_coder_impl):
+    self._timestamp_coder_impl = TimestampCoderImpl()
+    self._payload_coder_impl = payload_coder_impl
+
+  def encode_to_stream(self, value, out, nested):
+    self._timestamp_coder_impl.encode_to_stream(value['timestamp'], out, True)
+    self._payload_coder_impl.encode_to_stream(value.get('payload'), out, True)
+
+  def decode_from_stream(self, in_stream, nested):
+    return dict(
 
 Review comment:
   Done.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 151094)
    Time Spent: 6h 10m  (was: 6h)

> Python SDK support for Stateful Processing
> ------------------------------------------
>
>                 Key: BEAM-2687
>                 URL: https://issues.apache.org/jira/browse/BEAM-2687
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-py-core
>            Reporter: Ahmet Altay
>            Assignee: Charles Chen
>            Priority: Major
>          Time Spent: 6h 10m
>  Remaining Estimate: 0h
>
> Python SDK should support stateful processing (https://beam.apache.org/blog/2017/02/13/stateful-processing.html)
> In the meantime, runner capability matrix should be updated to show the lack of this feature (https://beam.apache.org/documentation/runners/capability-matrix/)
> Use this as an umbrella issue for all related issues.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)