Closed chasezheng closed 6 months ago
I think when we started working on protobuf the optional
label wasn't working as intended.
So instead we used wrapped
primitive, like DoubleValue
, Int32Value
etc.
I had a look and the current version of protobuf optional
behave similarly to the wrapped primitive, with less nesting (which is a better API). So we should add support for it.
@chasezheng this is fixed in v0.4.0. Please give it a try.
I really love this library. It's very handy.
For proto3, it's possible for check for presence of a string field. For example,
And then we can check
However, when converting the proto to arrow and then back. The presence bit is not preserved. It would be great if you can change this.