-
Notifications
You must be signed in to change notification settings - Fork 174
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
SNOW-1980317: SFArrowResult set is not honoring TreatNTZAsUTC #2121
Comments
hello - Which I believe should be no issue if you anyways use I'm wondering if your test works if you Do you perhaps have a reproduction which you can share? |
Sure. Here is the repro model.
This is printing the exact same timestamp as is printed on the snowflake instance when using the query I want this behavior to be replicated with the Arrow Result set. |
More info
In the above repro model, if i remove any one of the params |
Can you also check this ?
|
@sfc-gh-dszmolka Can you review and help ? |
Thank you for your patience here @akanimesh7 ! Please know, that I'm doing my best to follow up with all issues in all repositories we have, but as seen in the README this is best effort. |
https://github.com/snowflakedb/snowflake-jdbc/blob/v3.22.0/src/main/java/net/snowflake/client/core/SFArrowResultSet.java#L558-L565
Version in consideration - v3.22.0
The converter created in the above method sets
sessionTimezone
, but it doesn't set thetreatNTZAsUTC
. Is there any reason for that ?As of today, if i want to get the value present in a TIMESTAMP_NTZ column exactly as-is in UTC , which is what i assume
JDBC_TREAT_TIMESTAMP_NTZ_AS_UTC
does, is there a way ? This question is in context of usingSFArrowResultSet
. I am able to get this working withSFJsonResultSet
using the below --The text was updated successfully, but these errors were encountered: