You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "CurtHagenlocher (via GitHub)" <gi...@apache.org> on 2023/11/09 15:08:34 UTC

[I] go/driver/snowflake: NUMBER(n, 0) values get truncated [arrow-adbc]

CurtHagenlocher opened a new issue, #1277:
URL: https://github.com/apache/arrow-adbc/issues/1277

   When the "high precision" switch is disabled, the Go Snowflake drivers return NUMBER(n, 0) values as int64s. For values which are too large to fit in 64 bits, it simply discards the upper 64 bits and returns the lower 64 bits without warning.
   
   The "right thing" is particularly hard to figure out here because of the property of Snowflake that integer types are all aliases for NUMBER(38, 0), which means that even if the user thought they were creating an int32 columns it's actually stored as a decimal128-equivalent in the Snowflake schema. The best choice might be to error out when there's a value that's too large.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] go/adbc/driver/snowflake: NUMBER(n, 0) values get truncated [arrow-adbc]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba commented on issue #1277:
URL: https://github.com/apache/arrow-adbc/issues/1277#issuecomment-4520728546

   Since active development of the Go Snowflake ADBC driver has moved to https://github.com/adbc-drivers/snowflake, I've duplicated this issue as https://github.com/adbc-drivers/snowflake/issues/129 to track it. I'm going to close this copy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] go/adbc/driver/snowflake: NUMBER(n, 0) values get truncated [arrow-adbc]

Posted by "amoeba (via GitHub)" <gi...@apache.org>.
amoeba closed issue #1277: go/adbc/driver/snowflake: NUMBER(n, 0) values get truncated
URL: https://github.com/apache/arrow-adbc/issues/1277


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org