-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-44001][PROTOBUF] Add option to allow unwrapping protobuf well known wrapper types #43767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ import "timestamp.proto"; | |
| import "duration.proto"; | ||
| import "basicmessage.proto"; | ||
| import "google/protobuf/any.proto"; | ||
| import "google/protobuf/wrappers.proto"; | ||
|
|
||
| option java_outer_classname = "SimpleMessageProtos"; | ||
|
|
||
|
|
@@ -324,3 +325,19 @@ message Proto3AllTypes { | |
| } | ||
| map<string, string> map = 13; | ||
| } | ||
|
|
||
| message WellKnownWrapperTypes { | ||
| google.protobuf.BoolValue bool_val = 1; | ||
| google.protobuf.Int32Value int32_val = 2; | ||
|
||
| google.protobuf.UInt32Value uint32_val = 3; | ||
| google.protobuf.Int64Value int64_val = 4; | ||
| google.protobuf.UInt64Value uint64_val = 5; | ||
| google.protobuf.StringValue string_val = 6; | ||
| google.protobuf.BytesValue bytes_val = 7; | ||
| google.protobuf.FloatValue float_val = 8; | ||
| google.protobuf.DoubleValue double_val = 9; | ||
|
|
||
| // Sample repeated and map types | ||
| repeated google.protobuf.Int32Value int32_list = 10; | ||
| map<int32, google.protobuf.StringValue> wkt_map = 11; | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update this to clarify that
emit.default.valuesdoes not apply here? I.e. anInt32Valuevalue field would be null if unset, even ifemit.default.valuesis set to true.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure! just added a comment with an example