You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/03/01 10:14:40 UTC

[GitHub] [arrow] jorisvandenbossche commented on pull request #12528: ARROW-15251: [C++] Temporal floor/ceil/round handle ambiguous/nonexistent local time

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


   A somewhat contrived example that currently gives a nonexistent error with rounding (it requires an atypical `multiple` to end up in a gap):
   
   ```
   >>> arr = pc.assume_timezone(pa.array([pd.Timestamp("2015-03-29 02:30:00")]), "Europe/Brussels", nonexistent="latest")
   >>> pc.round_temporal(arr, 16, "minute")
   ...
   ArrowInvalid: Local time does not exist: 2015-03-29 02:56:00.000000 is in a gap between
   2015-03-29 02:00:00 CET and
   2015-03-29 03:00:00 CEST which are both equivalent to
   2015-03-29 01:00:00 UTC
   ```
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org