jorisvandenbossche commented on issue #41896:
URL: https://github.com/apache/arrow/issues/41896#issuecomment-2141519226

   Note that this is not specific to scalars, but just in general for the 
python -> arrow conversion:
   
   ```python
   >>> pa.array([datetime.datetime(2024, 1, 1, 1, 1, 1)], pa.date32())
   <pyarrow.lib.Date32Array object at 0x7fab4bdaa860>
   [
     2024-01-01
   ]
   ```
   
   But yes I agree that it seems better behaviour to raise an error here 
instead of silently truncating. 
   (the other way around, creating a timestamp array from datetime.date (which 
does not truncate and which you would expect to work), then doesn't seem to be 
supported: https://github.com/apache/arrow/issues/36277)
   
   


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