You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2020/08/18 17:07:11 UTC

[jira] [Commented] (BEAM-4275) Pubsub: add DirectRunner support for id_label and timestamp_attribute in Python SDK

    [ https://issues.apache.org/jira/browse/BEAM-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17179771#comment-17179771 ] 

Beam JIRA Bot commented on BEAM-4275:
-------------------------------------

This issue is P2 but has been unassigned without any comment for 60 days so it has been labeled "stale-P2". If this issue is still affecting you, we care! Please comment and remove the label. Otherwise, in 14 days the issue will be moved to P3.

Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed explanation of what these priorities mean.


> Pubsub: add DirectRunner support for id_label and timestamp_attribute in Python SDK
> -----------------------------------------------------------------------------------
>
>                 Key: BEAM-4275
>                 URL: https://issues.apache.org/jira/browse/BEAM-4275
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-direct, sdk-py-core
>            Reporter: Udi Meiri
>            Priority: P2
>              Labels: stale-P2
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> At least for publishing (and maybe pulling) messages, non-Dataflow-based sources and sinks for Pub/Sub use the [public API|https://cloud.google.com/pubsub/docs/publisher] for Pub/Sub, which doesn't support id_label and timestamp_attribute settings.
> Publishing:
>  id_label - add an attribute to each message with a unique value
>  timestamp_attribute - add an attribute to each message with the publishing time as its value
> Pulling:
>  id_label - use the value of this message attribute to deduplicate messages
>  timestamp_attribute - use the value of this message attribute as the element's timestamp
>  
> Implementation details: could probably create a pubsubio.py module, for reuse with other runners (i.e. implement Pub/Sub IO as PTransforms and not NativeSinks and Sources).



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