From 2354164ef8aebd82f98a4e5803cc62087018bc77 Mon Sep 17 00:00:00 2001 From: Curt Hagenlocher <curt@hagenlocher.org> Date: Tue, 7 Nov 2023 05:57:03 -0800 Subject: [PATCH] Added explanatory comment --- go/adbc/driver/snowflake/driver_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go/adbc/driver/snowflake/driver_test.go b/go/adbc/driver/snowflake/driver_test.go index 364426a095..6f8707a15c 100644 --- a/go/adbc/driver/snowflake/driver_test.go +++ b/go/adbc/driver/snowflake/driver_test.go @@ -752,6 +752,8 @@ func (suite *SnowflakeTests) TestIntDecimalLowPrecision() { query := "SELECT CAST('" + numberString + fmt.Sprintf("' AS NUMBER(%d, %d)) AS RESULT", precision, scale) decimalNumber, err := decimal128.FromString(numberString, int32(precision), int32(scale)) suite.NoError(err) + // The current behavior of the driver for decimal128 values too large to fit into 64 bits is to simply + // return the low 64 bits of the value. number := int64(decimalNumber.LowBits()) suite.Require().NoError(suite.stmt.SetOption(driver.OptionUseHighPrecision, adbc.OptionValueDisabled))