()
| 962 | |
| 963 | |
| 964 | def test_table_to_struct_array(): |
| 965 | table = pa.Table.from_arrays( |
| 966 | [ |
| 967 | pa.array([1, None], type=pa.int32()), |
| 968 | pa.array([None, 1.0], type=pa.float32()), |
| 969 | ], ["ints", "floats"] |
| 970 | ) |
| 971 | result = table.to_struct_array() |
| 972 | assert result.equals(pa.chunked_array( |
| 973 | [[{"ints": 1}, {"floats": 1.0}]], |
| 974 | type=pa.struct([("ints", pa.int32()), ("floats", pa.float32())]), |
| 975 | )) |
| 976 | |
| 977 | |
| 978 | def test_table_to_struct_array_with_max_chunksize(): |
nothing calls this directly
no test coverage detected