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

ProtoSchemaTranslator creates NOT NULL beam schema fields even for optional proto fields

Details

    Description

      ProtoSchemaTranslator is capable of creating Beam schemas (org.apache.beam.sdk.schemas.Schema) from proto classes. The problem is that the code that transforms the non-null org.apache.beam.sdk.schemas.Schema.FieldType into a nullable one is at a wrong place. Instead of doing it for every type for every field that is optional at the proto class after the switch-case it is actually inside the switch-case and only does it for MESSAGE and GROUP types.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bnemeth Balázs Németh
              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 - 20m
                  20m