Ok found my issue
case c if c == classOf[ByteString] =>
StaticInvoke(classOf[Protobufs], ArrayType(ByteType),
"fromByteString", parent :: Nil)
Should be
case c if c == classOf[ByteString] =>
StaticInvoke(classOf[Protobufs], BinaryType, "fromByteString", parent :: Nil)
This causes the java
I am trying to create a Encoder for protobuf data and noticed something
rather weird. When we have a empty ByteString (not null, just empty), when
we deserialize we get back a empty array of length 8. I took the generated
code and see something weird going on.
UnsafeRowWriter
1.
public