forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARROW-16431: [C++][Python] Improve AppendRowGroups error when schemas…
… differ (apache#14029) Fix [ARROW-16431](https://issues.apache.org/jira/browse/ARROW-16431) Feel free to opine on specific error messages or the implementation as a whole. 👌 Examples ```python # meta1 and meta2 differ in column types meta1.append_row_groups(meta2) *** RuntimeError: AppendRowGroups requires equal schemas. The two columns with index 0 differ. column descriptor = { name: col1, path: col1, physical_type: INT64, converted_type: NONE, logical_type: None, max_definition_level: 1, max_repetition_level: 0, } column descriptor = { name: col2, path: col2, physical_type: INT64, converted_type: NONE, logical_type: None, max_definition_level: 1, max_repetition_level: 0, } # meta1 and meta2 differ in number of columns meta1.append_row_groups(meta2) *** RuntimeError: This schema has 2 columns, other has 1 ``` Authored-by: Miles Granger <miles59923@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>
- Loading branch information
1 parent
5c57662
commit 5e3c85c
Showing
4 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters