Closed hangxie closed 2 years ago
tools' schema output lacks of length for INTERVAL type, if one uses the output to process data, INTERVAL type will be zero length.
schema
length
Current output:
$ go run ./tool/parquet-tools/ -cmd schema -file example/type.parquet --schema-format go -tag| grep -i interval Interval string `parquet:"name=Interval, type=INTERVAL, repetitiontype=REQUIRED"` $ go run ./tool/parquet-tools/ -cmd schema -file example/type.parquet | grep -i interval "Tag": "name=Interval, type=FIXED_LEN_BYTE_ARRAY, convertedtype=INTERVAL, repetitiontype=REQUIRED"
This PR adds length=12 to the schema, also fix go struct output:
length=12
$ go run ./tool/parquet-tools/ -cmd schema -file example/type.parquet --schema-format go -tag| grep -i interval Interval string `parquet:"name=Interval, type=FIXED_LEN_BYTE_ARRAY, convertedtype=INTERVAL, length=12, repetitiontype=REQUIRED"` $ go run ./tool/parquet-tools/ -cmd schema -file example/type.parquet | grep -i interval "Tag": "name=Interval, type=FIXED_LEN_BYTE_ARRAY, convertedtype=INTERVAL, length=12, repetitiontype=REQUIRED"
I'm going to close this as the go struct generated by tools/parquet-tools is far away from usable.
tools'
schema
output lacks oflength
for INTERVAL type, if one uses the output to process data, INTERVAL type will be zero length.Current output:
This PR adds
length=12
to the schema, also fix go struct output: