Open emlynazuma opened 1 year ago
Apologies to make more work for you, but we've decided to move development on this project to a new organization at https://github.com/parquet-go/parquet-go to ensure its long term success. We appreciate your contribution and would appreciate if you could reopen this ticket there if it is still relevant.
Rerun the code in https://github.com/parquet-go/parquet-go, same issue happened. I will reopen a ticket in the new library.
Descriptions:
We have a program that read json file, do some operation, then write to a new parquet file. Some problems happened when there are list-type columns.
Originally, this list-type may have a null value in the json source(e.g.
{"list":null}
), we want the parquet file to remain this characteristic(remain null if the json source is null). However, we cannot achieve this using the current parquet struct tag this library provided.I have tried the following methods:
to make the list-type columns optional
However, it seems to be all rows will be either null or empty lists, no matter whether the origin json file has value (e.g.
{"list":[1,2]}
) or not.(Wonder if list + optional is not excepted, or it is just a bug)make the list-type columns a pointer
However, it seems that the list tag currently only support Slice type
Expected Result:
Is there any possibility to achieve it?