Closed hangxie closed 2 years ago
Is there an existing function to convert binary to string, opposite to types.StrIntToBinary?
types.StrIntToBinary
The example at https://github.com/xitongsys/parquet-go/blob/master/example/type.go#L98-L99 shows how to write decimal to parquet, but whenever read from parquet, it prints pure binary without proper interpretation, eg
$ go run ./tool/parquet-tools/ -cmd cat -file example/type.parquet | jq | grep Decimal | head -5 "Decimal1": 12345, "Decimal2": 12345, "Decimal3": "������������", "Decimal4": "09", "Decimal5": 0,
types.DECIMAL_BYTE_ARRAY_ToString is what I'm looking for.
types.DECIMAL_BYTE_ARRAY_ToString
Is there an existing function to convert binary to string, opposite to
types.StrIntToBinary
?The example at https://github.com/xitongsys/parquet-go/blob/master/example/type.go#L98-L99 shows how to write decimal to parquet, but whenever read from parquet, it prints pure binary without proper interpretation, eg