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

Improve DoFn method validation in core/graph/fn.go

Details

    • Improvement
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • None
    • Not applicable
    • sdk-go
    • None

    Description

      Various improvements can be made to validating the signatures and type usages in DoFns. Some things that should probably be checked:

      • Check that StartBundle and FinishBundle contain any emit parameters and side inputs present in ProcessElement
      • Check that any side inputs/emits have correctly matching types between Start/FinishBundle and ProcessElement
      • Check that parameters and return values for the various methods are valid (for ex. Teardown/Setup should have no params)

      Attachments

        Activity

          People

            danoliveira Daniel Oliveira
            danoliveira Daniel Oliveira
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 2h 10m
                2h 10m