You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/05/07 19:07:00 UTC
[jira] [Work logged] (BEAM-7121) Provide deterministic version of
Python's ProtoCoder
[ https://issues.apache.org/jira/browse/BEAM-7121?focusedWorklogId=238724&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-238724 ]
ASF GitHub Bot logged work on BEAM-7121:
----------------------------------------
Author: ASF GitHub Bot
Created on: 07/May/19 19:06
Start Date: 07/May/19 19:06
Worklog Time Spent: 10m
Work Description: yifanmai commented on issue #8377: [BEAM-7121] Add deterministic proto coder
URL: https://github.com/apache/beam/pull/8377#issuecomment-490216356
Currently the only effect of `deterministic` is to [require MapEncoder to call `sorted()` on the map keys](https://github.com/protocolbuffers/protobuf/blob/d9ccd0c0e6bbda9bf4476088eeb46b02d7dcd327/python/google/protobuf/internal/encoder.py#L822-L826).
----------------------------------------------------------------
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:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 238724)
Time Spent: 1h 50m (was: 1h 40m)
> Provide deterministic version of Python's ProtoCoder
> ----------------------------------------------------
>
> Key: BEAM-7121
> URL: https://issues.apache.org/jira/browse/BEAM-7121
> Project: Beam
> Issue Type: Improvement
> Components: runner-core
> Reporter: Yifan Mai
> Priority: Minor
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> Passing deterministic=true to proto's [SerializeToString|https://github.com/protocolbuffers/protobuf/blob/60b66a119d17f0a2a595a231bea87cd4f4cf2689/python/google/protobuf/message.py#L189-L204] will result in deterministic encoding of maps in protos. This can be used to provide a deterministic version of ProtoCoder.
> This would allow protos to be used as a key for grouping by key.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)