Skip to content

BUG: Incorrect parsing of ISO 8601 durations strings in Timedelta constructor #51928

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

Conversation

rosstitmarsh
Copy link

@rosstitmarsh rosstitmarsh commented Mar 13, 2023

@mroeschke mroeschke added the Timedelta Timedelta data type label Mar 13, 2023
@rosstitmarsh rosstitmarsh force-pushed the iso8601-duration-parsing-feature branch from a7a4bb8 to 03533df Compare March 14, 2023 14:55
@rosstitmarsh rosstitmarsh requested a review from WillAyd March 21, 2023 11:05
@rosstitmarsh rosstitmarsh force-pushed the iso8601-duration-parsing-feature branch 2 times, most recently from d4e29bb to c9c3b61 Compare April 20, 2023 17:25
@rosstitmarsh rosstitmarsh force-pushed the iso8601-duration-parsing-feature branch from c9c3b61 to 457c7df Compare April 20, 2023 17:33
@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label May 28, 2023
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this May 30, 2023
@rosstitmarsh
Copy link
Author

@mroeschke I would like to reopen this pull request, I have updated it to the main branch. Issues #51882 and #48122 are still not resolved.

@mroeschke mroeschke reopened this Jun 1, 2023
@MarcoGorelli
Copy link
Member

thanks for your PR

I do feel a bit nervous about this (as I do about the original implementation, tbh...), and think this might be a good case for a parametric test

would it be possible to add some reference implementation, such as isoduration, and then to use hypothesis to generate random tests in which you assert that the output matches that of the reference implementation?

@rosstitmarsh
Copy link
Author

would it be possible to add some reference implementation, such as isoduration, and then to use hypothesis to generate random tests in which you assert that the output matches that of the reference implementation?

@MarcoGorelli I agree that is a good idea.
I am struggling with isoduration because it creates duration strings where the number parts can be in scientific notation , this does not seem to be part of ISO8601

@MarcoGorelli
Copy link
Member

thanks - maybe there's something else we can use then? will take a look

@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Timedelta Timedelta data type
Projects
None yet
4 participants