You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2022/01/31 14:03:00 UTC

[jira] [Commented] (ARROW-15496) [Python] Log warning when user tries to write parquet table with incompatible type

    [ https://issues.apache.org/jira/browse/ARROW-15496?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17484701#comment-17484701 ] 

Antoine Pitrou commented on ARROW-15496:
----------------------------------------

This sounds quite reasonable to me. The only complication is that this is detected on the C++ side and the user would presumably prefer a Python warning?

> [Python] Log warning when user tries to write parquet table with incompatible type
> ----------------------------------------------------------------------------------
>
>                 Key: ARROW-15496
>                 URL: https://issues.apache.org/jira/browse/ARROW-15496
>             Project: Apache Arrow
>          Issue Type: Wish
>          Components: Parquet, Python
>            Reporter: Grant Williams
>            Priority: Minor
>              Labels: typeinfo, warnings
>             Fix For: 8.0.0
>
>
> Could we get a logged warning when a user tries to `pyarrow.parquet.write_table()` with `version=1.0` and a schema that contains an incompatible `uint32()` type? I don't think the behavior to upcast to an `int64()` is immediately obvious (although the docs are clear on it) and I think it would help prevent some confusion for other users.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)