[
https://issues.apache.org/jira/browse/BEAM-621?focusedWorklogId=591547&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-591547
]
ASF GitHub Bot logged work on BEAM-621:
---------------------------------------
Author: ASF GitHub Bot
Created on: 30/Apr/21 14:21
Start Date: 30/Apr/21 14:21
Worklog Time Spent: 10m
Work Description: Amar3tto commented on pull request #14273:
URL: https://github.com/apache/beam/pull/14273#issuecomment-830129312
Hello @pabloem, @TheNeuralBit, thank you for your review. For now, I'm
trying to implement such features as `into()` and `exceptionsVia()`.
I found that in the `MapElements` class there a lot of code that needs to be
moved to `MapValues` and `MapKeys` classes as well.
For example, to implement `exceptionsVia()` in the `MapValues` class, we
need to have `MapValuesWithFailures` nested class.
Is it ok that `MapElements`, `MapValues`, and `MapKeys` classes will have a
similar code?
Maybe you can suggest some other ideas with the inheritance I might miss?
--
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 591547)
Time Spent: 1h 20m (was: 1h 10m)
> 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é
> Assignee: Vitaly Terentyev
> Priority: P3
> Labels: Clarified, newbie, starter
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> 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)