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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Any date bigger than `"2262-04-11T23:47:16"` and lower than 
`"1677-09-21T00:12:44Z"` gets a random result
   
   ```python
   import pyarrow as pa
   import pyarrow.compute as pc
   
   upperbound = pa.array(
       [
           "2262-04-11T23:47:16",  # ✅
           # "2262-04-11T23:47:17"  # ❌
           # "9999-12-31T23:59:59"  # ❌
       ],
       pa.string(),
   )
   
   lowerbound = pa.array(
       [
           "1677-09-21T00:12:44",  # ✅
           # "1677-09-21T00:12:43Z",  # ❌
           # "1580-01-01T00:00:00Z",  # ❌
           # "0001-01-01T00:00:00Z",  # ❌
       ],
       pa.string(),
   )
   
   print("Upper Bound:")
   print(pc.strptime(upperbound, format="%Y-%m-%dT%H:%M:%S", unit="us"))
   
   print("Lower Bound:")
   print(pc.strptime(lowerbound, format="%Y-%m-%dT%H:%M:%S", unit="us"))
   ```
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to