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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to