[ 
https://issues.apache.org/jira/browse/BEAM-7840?focusedWorklogId=284967&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-284967
 ]

ASF GitHub Bot logged work on BEAM-7840:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 30/Jul/19 14:05
            Start Date: 30/Jul/19 14:05
    Worklog Time Spent: 10m 
      Work Description: tvalentyn commented on pull request #9168: [BEAM-7840] 
Provide MapTuple and FlatMapTuple for Python 3 users.
URL: https://github.com/apache/beam/pull/9168#discussion_r308740823
 
 

 ##########
 File path: sdks/python/apache_beam/examples/snippets/snippets.py
 ##########
 @@ -446,7 +446,7 @@ def examples_wordcount_minimal(renames):
       # [END examples_wordcount_minimal_count]
 
       # [START examples_wordcount_minimal_map]
-      | beam.Map(lambda word_count: '%s: %s' % (word_count[0], word_count[1]))
 
 Review comment:
   Ok, we should tag associated Jira with 'fix_version==2.15.0' in this case. 
 
----------------------------------------------------------------
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: 284967)
    Time Spent: 20m  (was: 10m)

> Create MapTuple and FlatMapTuple to ease migration to Python 3.
> ---------------------------------------------------------------
>
>                 Key: BEAM-7840
>                 URL: https://issues.apache.org/jira/browse/BEAM-7840
>             Project: Beam
>          Issue Type: Test
>          Components: sdk-py-core
>            Reporter: Robert Bradshaw
>            Priority: Major
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> These are like Map and FlatMap but expand out tuple input elements across
> several arguments. This will be useful as tuple argument unpacking has been
> removed in Python 3. Instead of having to convert
>     Map(lambda (k, v): expresion(k, v))
> into
>     Map(lambda k_v: expression(k_v[0], k_v[1]))
> one can now write
>     MapTuple(lambda k, v: expression(k, v))



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to