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

Change ProtoSchemaTranslator beam schema creation to match the order for protobufs containing Oneof fields

Details

    • Improvement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • None
    • 2.37.0
    • None

    Description

      Currently, when ProtoSchemaTranslator creates the beam schema from a protobuf definition it always puts the Oneofs at the start of the beam schema due to Oneofs being created from the code first. This means that the order of the fields doesn't match the order of the protobuf defintion. As the schema generation is used when converting from beam rows to protobufs, it additionally means that it is impossible to convert from a beam row where the oneof fields are not the first fields in the beamrow.

      Attachments

        Issue Links

          Activity

            People

              reubenvanammers Reuben van Ammers
              reubenvanammers Reuben van Ammers
              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 - 6h 20m
                  6h 20m