[ 
https://issues.apache.org/jira/browse/BEAM-12414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Evan Galpin updated BEAM-12414:
-------------------------------
    Description: 
-apache_beam.transforms.combiners.ToDict only support CombineGlobally semantics 
currently. Let's extend that to also work PerKey like many other Combiners do.-
 One can just use:
{code:python}
beam.CombinePerKey(ToDictCombineFn())

{code}
This issue can be closed.

 

  was:
apache_beam.transforms.combiners.ToDict[1] only support CombineGlobally 
semantics currently. Let's extend that to also work PerKey like many other 
Combiners do.

[1] 
https://github.com/apache/beam/blob/v2.29.0/sdks/python/apache_beam/transforms/combiners.py#L832


> Support PerKey Combiner.ToDict in python SDK
> --------------------------------------------
>
>                 Key: BEAM-12414
>                 URL: https://issues.apache.org/jira/browse/BEAM-12414
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-py-core
>            Reporter: Evan Galpin
>            Assignee: Evan Galpin
>            Priority: P2
>
> -apache_beam.transforms.combiners.ToDict only support CombineGlobally 
> semantics currently. Let's extend that to also work PerKey like many other 
> Combiners do.-
>  One can just use:
> {code:python}
> beam.CombinePerKey(ToDictCombineFn())
> {code}
> This issue can be closed.
>  



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

Reply via email to