jimwhite commented on issue #44030:
URL: https://github.com/apache/arrow/issues/44030#issuecomment-2339326582

   > You can map the cols in question to these types explicitly in the 
conversion options via `column_types`: 
https://arrow.apache.org/docs/python/csv.html#customized-conversion
   
   That's what I tried first but it doesn't work because that requires a 
[csv.ConvertOptions.timestamp_parsers](https://arrow.apache.org/docs/python/generated/pyarrow.csv.ConvertOptions.html#pyarrow.csv.ConvertOptions.timestamp_parsers)
 strptime(3) format string and there isn't one afaict for Unix timestamps in 
integer format (the strptime in Python does have one for Unix timestamps at 
second resolution but that isn't available in the C version - 
https://github.com/apache/arrow/issues/39839#issuecomment-1915981816 - and even 
if it were I need millisecond and nanosecond).
   
   Or am I missing something?  Do you have working example code?
   
   I'm also wondering whether there is a way to apply the cast conversion 
during csv_read.


-- 
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