hi folks,
Now I am working on transforming a protobuf object which is a custom
message that wrapped the java's BigDecimal into the decimal type of parquet.
The custom message is something like this:
message BDecimal {
required int32 scale = 1;
required BInteger int_val = 2;}
message BInteger {
required bytes value = 1;
}
ref:
http://stackoverflow.com/questions/1051732/what-is-the-best-approach-for-serializing-bigdecimal-biginteger-to-protocolbuffe
I have tried to use parquet-proto to transform the protobuf object to
parquet, but it would transform the parquet with the same schema as above.
But what I want to do is whenever I encounter this BDecimal in protobuf, it
can be transformed to decimal type in parquet.
Any suggestions of doing this?
Best,
Yun