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

@SplitRestriction's documented signature is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 2.15.0
    • Fix Version/s: 2.18.0
    • Component/s: sdk-java-core
    • Labels:

      Description

      The documented signature for DoFn.SplitRestriction isĀ 

      List<RestrictionT> splitRestriction( InputT element, RestrictionT restriction);

      This fails to compile with, for example:

      @SplitRestriction split(long, OffsetRange): Must return void

      It looks like the correct signature is:

      void splitRestriction(InputT element, RestrictionT restriction,
          OutputReceiver<RestrictionT> restriction);

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jagthebeetle Jonathan Alvarez-Gutierrez
                Reporter:
                jagthebeetle Jonathan Alvarez-Gutierrez
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 48h
                  48h
                  Remaining:
                  Remaining Estimate - 47h 40m
                  47h 40m
                  Logged:
                  Remaining Estimate - 47h 40m
                  20m