Skip to content

Commit 29fe4b6

Browse files
committed
update unit test
1 parent 3aa7e79 commit 29fe4b6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

tests/unit/test_types.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,14 @@ def test_convert_sp_to_sf_type():
10591059
assert convert_sp_to_sf_type(DoubleType()) == "DOUBLE"
10601060
assert convert_sp_to_sf_type(StringType()) == "STRING"
10611061
assert convert_sp_to_sf_type(StringType(77)) == "STRING(77)"
1062-
assert convert_sp_to_sf_type(StringType(), is_iceberg=True) == "STRING(134217728)"
1063-
assert convert_sp_to_sf_type(StringType(77), is_iceberg=True) == "STRING(134217728)"
1062+
assert (
1063+
convert_sp_to_sf_type(StringType(), use_128mb_string_for_iceberg=True)
1064+
== "STRING(134217728)"
1065+
)
1066+
assert (
1067+
convert_sp_to_sf_type(StringType(77), use_128mb_string_for_iceberg=True)
1068+
== "STRING(134217728)"
1069+
)
10641070
assert convert_sp_to_sf_type(NullType()) == "STRING"
10651071
assert convert_sp_to_sf_type(BooleanType()) == "BOOLEAN"
10661072
assert convert_sp_to_sf_type(DateType()) == "DATE"

0 commit comments

Comments
 (0)