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

Support TypeDefinition options in beam.Combine()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.14.0
    • Component/s: sdk-go
    • Labels:
      None

      Description

      Today, CombineFn's output type must be either concrete or a generic type that can be inferred from the input type. This doesn't work if the input type is struct{U, V} while the output type is V (where U and V are generic types).

      Similar to ParDo, we could add TypeDefinition options support to Combine. This will bind generic types in the CombineFn to the specified concrete types at pipeline construction time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                htyleo Tianyang Hu
                Reporter:
                htyleo Tianyang Hu
              • 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 - 1h 10m
                  1h 10m