You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "KernelA (via GitHub)" <gi...@apache.org> on 2024/03/14 09:58:18 UTC
Re: [I] PyArrow: RuntimeError: AppendRowGroups requires equal schemas when writing _metadata file [arrow]
KernelA commented on issue #31678:
URL: https://github.com/apache/arrow/issues/31678#issuecomment-1997066318
I have a similar issue.
pyarrow 14.0.2
```
parquet.write_metadata(
File ".../lib/python3.9/site-packages/pyarrow/parquet/core.py", line 3589, in write_metadata
metadata.append_row_groups(m)
File "pyarrow/_parquet.pyx", line 807, in pyarrow._parquet.FileMetaData.append_row_groups
RuntimeError: AppendRowGroups requires equal schemas.
The two columns with index 0 differ.
column descriptor = {
name: session_num,
path: session_num,
physical_type: INT64,
converted_type: UINT_64,
logical_type: Int(bitWidth=64, isSigned=false),
max_definition_level: 0,
max_repetition_level: 0,
}
column descriptor = {
name: session_num,
path: session_num,
physical_type: INT64,
converted_type: UINT_64,
logical_type: Int(bitWidth=64, isSigned=false),
max_definition_level: 1,
max_repetition_level: 0,
}
```
All partitions have equal schemas. Example are taken from https://arrow.apache.org/docs/14.0/python/parquet.html#writing-metadata-and-common-metadata-files
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org