Skip to content

Commit 5d61d3d

Browse files
committed
remove reduntant code
1 parent 0defc75 commit 5d61d3d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/snowflake/snowpark/_internal/type_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,10 +307,7 @@ def convert_sf_to_sp_type(
307307
if column_type_name == "REAL":
308308
return DoubleType()
309309
if (column_type_name == "FIXED" or column_type_name == "NUMBER") and scale == 0:
310-
if context._store_precision_and_scale_in_numeric_type:
311-
return LongType(precision=precision, scale=scale)
312-
else:
313-
return LongType()
310+
return LongType(precision=precision, scale=scale)
314311
raise NotImplementedError(
315312
"Unsupported type: {}, precision: {}, scale: {}".format(
316313
column_type_name, precision, scale

0 commit comments

Comments
 (0)