Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Overflow in to_datetime date parsing returns incorrect result #14036

Open
mroeschke opened this issue Sep 6, 2023 · 0 comments
Open

[BUG] Overflow in to_datetime date parsing returns incorrect result #14036

mroeschke opened this issue Sep 6, 2023 · 0 comments
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@mroeschke
Copy link
Contributor

Describe the bug
Overflow in to_datetime date parsing returns incorrect result

Steps/Code to reproduce bug

In [2]: from cudf import *

In [5]: to_datetime([99991231], format="%Y%m%d")
Out[5]: DatetimeIndex(['1816-03-29 05:56:08.066277376'], dtype='datetime64[ns]')

In [6]: to_datetime(["99991231"], format="%Y%m%d")
Out[6]: DatetimeIndex(['1816-03-29 05:56:08.066277376'], dtype='datetime64[ns]')

In [7]: to_datetime(["99991231"])
Out[7]: DatetimeIndex(['1816-03-29 05:56:08.066277376'], dtype='datetime64[ns]')

Expected behavior
If the date cannot be represented, an Exception should be raised that the representation overflows

Environment overview (please complete the following information)

  • Environment location: Bare-metal
  • Method of cuDF install: conda
    • If method of install is [Docker], provide docker pull & docker run commands used

Environment details
Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details

Additional context
Add any other context about the problem here.

@mroeschke mroeschke added bug Something isn't working Python Affects Python cuDF API. labels Sep 6, 2023
@vyasr vyasr added this to cuDF Python Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Affects Python cuDF API.
Projects
Status: Todo
Development

No branches or pull requests

1 participant