Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupt Parquet Schema when loading parquet file into Databricks #174

Open
characat0 opened this issue Dec 6, 2023 · 0 comments · May be fixed by #175
Open

Corrupt Parquet Schema when loading parquet file into Databricks #174

characat0 opened this issue Dec 6, 2023 · 0 comments · May be fixed by #175

Comments

@characat0
Copy link

While loading a file produced using Parquet.jl into Databricks I ran into the following error:

Corrupt Parquet Schema: Only one of num_children and type should be set in SchemaElement

According to https://github.com/apache/parquet-format/blob/4701809cb65373b4404b46b6f01110d020f4d1c8/src/main/thrift/parquet.thrift#L437

  /** 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.

@characat0 characat0 linked a pull request Dec 6, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant