mapleFU commented on issue #31678:
URL: https://github.com/apache/arrow/issues/31678#issuecomment-1689196976
```
>>> metadata_collector[0].schema
<pyarrow._parquet.ParquetSchema object at 0x11e3cee80>
required group field_id=-1 schema {
optional int64 field_id=-1 A;
optional binary field_id=-1 B (String);
}
>>> metadata_collector[1].schema
<pyarrow._parquet.ParquetSchema object at 0x11e3ceec0>
required group field_id=-1 schema {
optional binary field_id=-1 B (String);
optional int64 field_id=-1 A;
}
```
Oh I got this. This is not allowed. Though it looks like it should be
allowed.
Because Parquet schema is at "FileMetadata" ( see
https://github.com/apache/parquet-format/blob/master/src/main/thrift/parquet.thrift#L1024
), so different row-group should have same schema.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]