Skip to content

fix: Set Ibis time_unit and time_zone for Datetime dtype conversion #2709

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

Conversation

rwhitten577
Copy link
Contributor

Casting to/from Ibis Datetime dtype did not pass the time_unit or time_zone args.

Seems like this isn't supported by most other lazy backends either, so haven't modified the tests to explicitly check for the unit & timezone conversion.

What type of PR is this? (check all applicable)

  • 💾 Refactor
  • ✨ Feature
  • 🐛 Bug Fix
  • 🔧 Optimization
  • 📝 Documentation
  • ✅ Test
  • 🐳 Other

Related issues

  • Related issue #<issue number>
  • Closes #<issue number>

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

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

thanks @rwhitten577 ! time zone things are notoriously annoying to test, but this is simple enough and aligned enough with what we do for other backends that i'm happy to ship it

@MarcoGorelli MarcoGorelli merged commit 538279b into narwhals-dev:main Jun 23, 2025
33 checks passed
@rwhitten577 rwhitten577 deleted the fix/ibis-datetime-conversion branch June 23, 2025 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants