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

Sharing input to both a GBK and a CoGBK causes LP error w/schemas

Details

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

    Description

      Constructing a pipeline with a PCol<KV> (call it A) used as an input to a GBK, using that output to generate an PCol<KV> (call it B) and using both A and B as inputs to a CoGBK causes the DoFn after the CoGBK to fail with an encoding error.

      Essentially the Length Prefix coder applied to A isn't applied to the output of the CoGBK for the expand, causing the pipeline to fail. Only happens with Row encoded structs.

      This is likely due to CoGBK being a synthetic construct on top of a GBK with a extra Inject and Expand operations, with the Inject missing the LP coding that the earlier GBK received.

      Attachments

        Issue Links

          Activity

            People

              lostluck Robert Burke
              lostluck Robert Burke
              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 - 3h 10m
                  3h 10m