Balázs Németh created BEAM-14522:
------------------------------------
Summary: ProtoSchemaTranslator creates NOT NULL fields even for
optional fields
Key: BEAM-14522
URL: https://issues.apache.org/jira/browse/BEAM-14522
Project: Beam
Issue Type: Bug
Components: extensions-java-protobuf
Reporter: Balázs Németh
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.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)