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

fix(types/excelsheet): Fix duration to milliseconds conversion #161

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

lukapeschke
Copy link
Collaborator

@lukapeschke lukapeschke commented Jan 29, 2024

closes #159

For durations, we were using calamine's as_time API to convert durations to milliseconds, as the as_duration API was not available at the time of implementation. However, this does not work anymore, as as_time will return None for Duration values. This fixes it

@lukapeschke lukapeschke added bug Something isn't working ✋ need review ✋ 🦀 rust 🦀 Pull requests that edit Rust code labels Jan 29, 2024
@lukapeschke lukapeschke self-assigned this Jan 29, 2024
Copy link
Member

@davinov davinov left a comment

Choose a reason for hiding this comment

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

👍

@@ -5,7 +5,7 @@
ruff = ruff python/ *.py
format = ruff format python/ *.py
mypy = mypy python/ *.py
pytest = pytest
pytest = pytest -v
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to share that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I believe we do, without this pytest's assertion diffs are hard to read

@lukapeschke lukapeschke merged commit a62fccc into main Jan 30, 2024
41 checks passed
@lukapeschke lukapeschke deleted the fix-duration-cast branch January 30, 2024 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🦀 rust 🦀 Pull requests that edit Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some duration columns contain only null values after load
2 participants