jorisvandenbossche commented on pull request #10610:
URL: https://github.com/apache/arrow/pull/10610#issuecomment-874871566


   @rok I was checking out this PR, and in the process wrote python bindings 
for the option class to be able to test it in Python, so thought to directly 
push that here as well. (and at the same time also fixed (I think) the 
initialization of the timezone, which was causing the C++ tests to fail here as 
well)
   
   And from testing, you will still need to handle the errors raised by 
`date.h`:
   
   ```
   In [21]: arr = pa.array([pd.Timestamp("2021-03-28 02:30:00")], 
type=pa.timestamp("ns"))
   
   In [22]: pc.localize(arr, 
options=pc.TemporalLocalizationOptions("Europe/Brussels"))
   terminate called after throwing an instance of 
'arrow_vendored::date::nonexistent_local_time'
     what():  2021-03-28 02:30:00.000000000 is in a gap between
   2021-03-28 02:00:00 CET and
   2021-03-28 03:00:00 CEST which are both equivalent to
   2021-03-28 01:00:00 UTC
   Aborted (core dumped)
   
   ```


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