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:34 UTC

[jira] [Commented] (BEAM-621) Add MapValues and MapKeys functions

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

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

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.


> Add MapValues and MapKeys functions
> -----------------------------------
>
>                 Key: BEAM-621
>                 URL: https://issues.apache.org/jira/browse/BEAM-621
>             Project: Beam
>          Issue Type: New Feature
>          Components: sdk-java-core, sdk-py-core
>            Reporter: Jean-Baptiste Onofré
>            Priority: P2
>              Labels: newbie, stale-P2, starter
>
> Currently, we have the {{MapElements}} {{PTransform}} that "convert" a {{PCollection}} of {{KV}} to another {{PCollection}} (for instance {{String}}).
> A very classic mapping function is to just have the keys or values of {{KV}}.
> To do it currently, we can use {{MapElements}} or a generic {{ParDo}} (with {{DoFn}}).
> It would be helpful and reduce the user code to have {{MapValues}} and {{MapKeys}}. It would take a {{PCollection}} of {{KV}}: {{MapKeys}} will map the input {{PCollection}} to a {{PCollection}} of {{K}} and {{MapValues}} to a {{PCollection}} of {{V}}.



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