You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Ganesh Rajasekharan (Jira)" <ji...@apache.org> on 2021/08/05 15:00:00 UTC
[jira] [Commented] (ARROW-13285) Better Error Message for
ValueError
[ https://issues.apache.org/jira/browse/ARROW-13285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17394096#comment-17394096 ]
Ganesh Rajasekharan commented on ARROW-13285:
---------------------------------------------
I noticed the similar error message below when reading a "Date" type column = 1753-07-28 22:43:41.128654848 (I read the file in with fastparquet to identify the date issue) :
"ValueError: year -1 is out of range"
I noticed that Date gets converted to date32 which supports date from unix epoch start 1970 which explains the error: [https://arrow.apache.org/docs/python/generated/pyarrow.date32.html#pyarrow.date32]
Hope this might be similar to what you are seeing.
> Better Error Message for ValueError
> -----------------------------------
>
> Key: ARROW-13285
> URL: https://issues.apache.org/jira/browse/ARROW-13285
> Project: Apache Arrow
> Issue Type: Improvement
> Reporter: Benjamin Du
> Priority: Major
>
> I got an error message "ValueError: year 0 is out of range" while using `pyarrow.jvm`. This error message doesn't really help me much as I have no idea which column caused the issue. It would very helpful if the error message can include source column name.
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)