Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-7840

Create MapTuple and FlatMapTuple to ease migration to Python 3.

Details

    • Test
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • 2.15.0
    • sdk-py-core
    • None

    Description

      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))

      Attachments

        Issue Links

          Activity

            People

              robertwb Robert Bradshaw
              robertwb Robert Bradshaw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m