Skip to content

fix(parquet/pqarrow): normalize the element name in the stored ARROW:schema#746

Open
zeroshade wants to merge 4 commits intoapache:mainfrom
zeroshade:parquet-schema-normalization
Open

fix(parquet/pqarrow): normalize the element name in the stored ARROW:schema#746
zeroshade wants to merge 4 commits intoapache:mainfrom
zeroshade:parquet-schema-normalization

Conversation

@zeroshade
Copy link
Copy Markdown
Member

Rationale for this change

closes #744

What changes are included in this PR?

Normalizes the element name of list fields in the stored ARROW:schema of a parquet file to avoid mismatches.

Are these changes tested?

Yes, a new unit test is added.

Are there any user-facing changes?

Yes, should be a bug fix to ensure consistency.

The lint fix in the previous commit incorrectly transformed the condition:
  !(A && !B && C)  ->  (nil || !B && !IsNone || !C)

The correct transformation is:
  nil || B || !C

Also restores use of n.decimalMetaData instead of DecimalMetadata{} in the
IsCompatible call, which was also changed incorrectly.
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 this pull request may close these issues.

Difference between arrow-go and pyarrow file writer

1 participant