File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 41
41
* Improved output handling with streaming
42
42
* Bumped ` snowflake-connector-python ` to 3.17.3
43
43
* Fixed ` snow snowpark deploy ` failing on duplicated packages
44
- * Extend ` Decimal ` precision to 38
45
44
46
45
47
46
# v3.11.0
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- import decimal
16
15
import logging
17
16
import os
18
17
21
20
22
21
# Restrict permissions of all created files
23
22
os .umask (0o077 )
24
-
25
- # Set Decimal precision to reflect precision on Snowflake
26
- decimal .getcontext ().prec = 38
Original file line number Diff line number Diff line change @@ -371,10 +371,10 @@ def test_decfloat_values(runner):
371
371
row = result .json [0 ]
372
372
373
373
# Assert exact values that Snowflake returns for DECFLOAT
374
- assert row ["POSITIVE_VALUE" ] == "123456789012345678901234567890.12345679 "
375
- assert row ["NEGATIVE_VALUE" ] == "-123456789012345678901234567890.12345679 "
374
+ assert row ["POSITIVE_VALUE" ] == "1.234567890123456789012345679E+29 "
375
+ assert row ["NEGATIVE_VALUE" ] == "-1.234567890123456789012345679E+29 "
376
376
assert (
377
- row ["FLOATING_POINT" ] == "3.1415926535897932384626433832795028842 "
378
- ) # value is rounded up to 38 numbers
379
- assert row ["MAXIMUM_VALUE" ] == "9.9999999999999999999999999999999999999E+16421 "
380
- assert row ["MINIMUM_VALUE" ] == "-9.9999999999999999999999999999999999999E+16421 "
377
+ row ["FLOATING_POINT" ] == "3.141592653589793238462643383 "
378
+ ) # value is rounded up to 28 numbers
379
+ assert row ["MAXIMUM_VALUE" ] == "1.000000000000000000000000000E+16422 "
380
+ assert row ["MINIMUM_VALUE" ] == "-1.000000000000000000000000000E+16422 "
You can’t perform that action at this time.
0 commit comments