Skip to content

feat: add support for TimeDelta type in Python and Rust #497

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

Merged
merged 4 commits into from
May 20, 2025

Conversation

lemorage
Copy link
Contributor

This is a continuation of the unmerged #368.

Resolves #344.

Copy link
Member

@badmonster0 badmonster0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this, especially for careful tests for the Duration parsing logic!

I didn't notice there's no existing completed Duration parser for Rust, so the effort is larger than I original expected. Thanks for the effort!

- Replaced naive parsing with structured component-based approach
- Enhanced both iso8601 and human-readable parsers with proper validation and unit order checks
- Added more tests, achieving 97.52% test coverage
@badmonster0 badmonster0 merged commit a37eddc into cocoindex-io:main May 20, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Support TimeDelta Type (Python and Rust)
2 participants