/** Nested fields. Since thrift does not support nested fields,
* the nesting is flattened to a single list by a depth-first traversal.
* The children count is used to construct the nested relationship.
* This field is not set when the element is a primitive type
*/
5: optional i32 num_children;
the field num_children should not be set if the element is a leaf node.
While loading a file produced using Parquet.jl into Databricks I ran into the following error:
According to https://github.com/apache/parquet-format/blob/4701809cb65373b4404b46b6f01110d020f4d1c8/src/main/thrift/parquet.thrift#L437
the field num_children should not be set if the element is a leaf node.