Using org.apache.beam.sdk.extensions.protobuf.ProtoMessageSchema to create a 
beam schema from generated protobuf3 classes. However, 
org.apache.beam.sdk.extensions.protobuf.ProtoSchemaTranslator#beamFieldTypeFromSingularProtoField
 doesn't apply nullable to fields in the message. My understanding is that by 
default protobuf fields ARE optional, is that incorrect? Converting from a 
serialized message without values for some fields crashes when it tries to cast 
them to a Row since the Row is not expecting a field as nullable.

Anyone have any advice regarding this? Modify the schema after it is generated 
by ProtoMessageSchema or is there another method/option I am missing?

[https://storage.googleapis.com/e24-email-images/e24logonotag.png]<https://www.evolve24.com>
 Andrew Kettmann
DevOps Engineer
P: 1.314.596.2836
[LinkedIn]<https://linkedin.com/company/evolve24> [Twitter] 
<https://twitter.com/evolve24>  [Instagram] 
<https://www.instagram.com/evolve_24>

evolve24 Confidential & Proprietary Statement: This email and any attachments 
are confidential and may contain information that is privileged, confidential 
or exempt from disclosure under applicable law. It is intended for the use of 
the recipients. If you are not the intended recipient, or believe that you have 
received this communication in error, please do not read, print, copy, 
retransmit, disseminate, or otherwise use the information. Please delete this 
email and attachments, without reading, printing, copying, forwarding or saving 
them, and notify the Sender immediately by reply email. No confidentiality or 
privilege is waived or lost by any transmission in error.

Reply via email to