Closed yukels closed 3 years ago
Hi Did you a time to look into the issue? We really stuck with the problem :((
All fields in the parquet file are optional, change Data
to below works for me:
type Data struct {
X *float32 `parquet:"name=X, type=FLOAT"`
Y *float32 `parquet:"name=Y, type=FLOAT"`
Z *float32 `parquet:"name=Z, type=FLOAT"`
TimestampMicro *float64 `parquet:"name=timestamp_micro, type=DOUBLE"`
Cycle *int32 `parquet:"name=cycle, type=INT32"`
Ray *int32 `parquet:"name=ray, type=INT32"`
Reflectivity *int32 `parquet:"name=reflectivity, type=INT32"`
}
Great! Thanks a lot!
Hello
In our system we use python (actually pyarrow.parquet package) to create parquet files. We want to introduce Go service to provide some information from the parquet files. We use your latest version of the package v1.6.1.
We don't have any issue to load and use parquet file in python:
As you can see we have 3 float, 3 int32 and one double fields. The sample of content file can be downloaded from here.
Here is code we run to load the parquet:
We try to use partial structure to load the parquet: only X and Y fields. On this case the parquet was loaded but we got wrong data records.
Please advice. Dmitry