-
Notifications
You must be signed in to change notification settings - Fork 85
Fetching DATE/TIMESTAMP as DF converts to UTC TZ #499
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
Comments
I have pushed a patch that should correct this issue and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer. If you can test your scenario and confirm the patch works as expected, that would be appreciated! |
i have tested on my data: dates that becomed 2025-03-22 23:00:00 are now 2025-03-22 00:00:00 as expected ! thanks for the fix. |
Looks great, thank you @anthony-tuininga ! Btw tried to extract 1M rows (same table above, just 1M rows) and even with the fix it's still quite faster than a |
Thanks to @suraj-ora-2020 for the base fix for this and also the Windows 1970 issue. |
Uh oh!
There was an error while loading. Please reload this page.
What versions are you using?
3.1.1, db version doesn't seem relevant
Is it an error or a hang or a crash?
Unexpected tz conversion.
From the source code I think this might be in Arrow spaceseems to be a decision in the bridge code, but the outcome is very confusing.What error(s) or behavior you are seeing?
When fetching DATE/TIMESTAMP, the Arrow values are casted transparently to UTC.
This is inconsistent with regular cursor fetch.
Does your application call init_oracle_client()?
Occurs in both thick and thin mode.
Also seems to ignore session
TIME_ZONE
.Include a runnable Python script that shows the problem.
The text was updated successfully, but these errors were encountered: