@@ -225,18 +225,18 @@ def test_pyarrow_timestamp_tz_invalid_tz() -> None:
225
225
visit_pyarrow (pyarrow_type , _ConvertToIceberg ())
226
226
227
227
228
- def test_pyarrow_string_to_iceberg () -> None :
229
- pyarrow_type = pa .large_string ()
228
+ @ pytest . mark . parametrize ( "pyarrow_type" , [ pa . string (), pa . large_string (), pa . string_view ()])
229
+ def test_pyarrow_string_to_iceberg ( pyarrow_type : pa .DataType ) -> None :
230
230
converted_iceberg_type = visit_pyarrow (pyarrow_type , _ConvertToIceberg ())
231
231
assert converted_iceberg_type == StringType ()
232
- assert visit (converted_iceberg_type , _ConvertToArrowSchema ()) == pyarrow_type
232
+ assert visit (converted_iceberg_type , _ConvertToArrowSchema ()) == pa . large_string ()
233
233
234
234
235
- def test_pyarrow_variable_binary_to_iceberg () -> None :
236
- pyarrow_type = pa .large_binary ()
235
+ @ pytest . mark . parametrize ( "pyarrow_type" , [ pa . binary (), pa . large_binary (), pa . binary_view ()])
236
+ def test_pyarrow_variable_binary_to_iceberg ( pyarrow_type : pa .DataType ) -> None :
237
237
converted_iceberg_type = visit_pyarrow (pyarrow_type , _ConvertToIceberg ())
238
238
assert converted_iceberg_type == BinaryType ()
239
- assert visit (converted_iceberg_type , _ConvertToArrowSchema ()) == pyarrow_type
239
+ assert visit (converted_iceberg_type , _ConvertToArrowSchema ()) == pa . large_binary ()
240
240
241
241
242
242
def test_pyarrow_struct_to_iceberg () -> None :
0 commit comments