Skip to content

BUG: Raise error when filtering HDF5 with tz-aware index (GH#61479) #61482

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AnushaUKumar
Copy link

This PR addresses a bug where applying a .select(where=...) query on an HDF5 store with a timezone-aware DatetimeIndex raised a confusing or incorrect error. Since tz-aware filtering isn't currently supported, we now raise a clear ValueError when such filtering is attempted.
What’s included:

-Adds a specific check in select() to detect and error on tz-aware index queries

-Includes a minimal test case reproducing the issue in test_timezone_bug.py

Closes: #61479

@AnushaUKumar AnushaUKumar force-pushed the fix-hdf-timezone-issue branch from fc87f6d to 00a1f2c Compare May 23, 2025 15:46
@rhshadrach
Copy link
Member

@AnushaUKumar - the linked issue is not about timezones, did you perhaps get the number wrong?

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.

BUG: read_hdf() doesn't handle datetime64[ms] properly
2 participants