-1

Could we use a protobuf to store a complex value in a column in cloud spanner and convert it (hopefully automatically :-) ) to a struct when retrieving it?

We know we can have struct as a datatype but this might be a feasible workaround.

Maxim
  • 4,075
  • 1
  • 14
  • 23

1 Answers1

1

Protobufs are not supported at the moment. I think we can store them as BYTES and do the (un)marshaling at client.

I don't think Protobuf to Struct conversion is supported. Can you elaborate your use case?

Identicon
  • 21
  • 4