()
| 2059 | |
| 2060 | |
| 2061 | def test_concat_tables_permissive(): |
| 2062 | t1 = pa.Table.from_arrays([list(range(10))], names=('a',)) |
| 2063 | t2 = pa.Table.from_arrays([list(('a', 'b', 'c'))], names=('a',)) |
| 2064 | |
| 2065 | with pytest.raises( |
| 2066 | pa.ArrowTypeError, |
| 2067 | match="Unable to merge: Field a has incompatible types: int64 vs string"): |
| 2068 | _ = pa.concat_tables([t1, t2], promote_options="permissive") |
| 2069 | |
| 2070 | |
| 2071 | def test_concat_tables_invalid_option(): |