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

Ganesh Rajasekharan edited comment on ARROW-13285 at 8/5/21, 3:04 PM:
----------------------------------------------------------------------

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. I agree it would be great to 
see the column name in the error message

 


was (Author: ganesh890):
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)

Reply via email to