You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "mgorny (via GitHub)" <gi...@apache.org> on 2024/02/29 17:06:26 UTC

[I] [Python] `tests/test_compute.py::test_count_distinct` fails on 29th of February [arrow]

mgorny opened a new issue, #40298:
URL: https://github.com/apache/arrow/issues/40298

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   The following test fails on February 29th:
   
   ```pytb
   _________________________________________________________ test_count_distinct _________________________________________________________
   
       def test_count_distinct():
           seed = datetime.datetime.now()
   >       samples = [seed.replace(year=y) for y in range(1992, 2092)]
   
   seed       = datetime.datetime(2024, 2, 29, 17, 56, 47, 833976)
   
   ../work/apache-arrow-15.0.0/python-python3_11/install/usr/lib/python3.11/site-packages/pyarrow/tests/test_compute.py:3197: 
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
   
   .0 = <range_iterator object at 0xe757e368>
   
   >   samples = [seed.replace(year=y) for y in range(1992, 2092)]
   E   ValueError: day is out of range for month
   
   .0         = <range_iterator object at 0xe757e368>
   seed       = datetime.datetime(2024, 2, 29, 17, 56, 47, 833976)
   y          = 1993
   
   ../work/apache-arrow-15.0.0/python-python3_11/install/usr/lib/python3.11/site-packages/pyarrow/tests/test_compute.py:3197: ValueError
   ```
   
   ### Component(s)
   
   Python


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

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


Re: [I] [Python] `tests/test_compute.py::test_count_distinct` fails on 29th of February [arrow]

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche closed issue #40298: [Python] `tests/test_compute.py::test_count_distinct` fails on 29th of February
URL: https://github.com/apache/arrow/issues/40298


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

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


Re: [I] [Python] `tests/test_compute.py::test_count_distinct` fails on 29th of February [arrow]

Posted by "jorisvandenbossche (via GitHub)" <gi...@apache.org>.
jorisvandenbossche commented on issue #40298:
URL: https://github.com/apache/arrow/issues/40298#issuecomment-1972673158

   Yes, we fixed it yesterday with https://github.com/apache/arrow/pull/40288


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


Re: [I] [Python] `tests/test_compute.py::test_count_distinct` fails on 29th of February [arrow]

Posted by "mgorny (via GitHub)" <gi...@apache.org>.
mgorny commented on issue #40298:
URL: https://github.com/apache/arrow/issues/40298#issuecomment-1973553809

   Thanks!


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