()
| 2151 | |
| 2152 | |
| 2153 | def test_concat_tables_with_promotion_error(): |
| 2154 | t1 = pa.Table.from_arrays( |
| 2155 | [pa.array([1, 2], type=pa.int64())], ["f"]) |
| 2156 | t2 = pa.Table.from_arrays( |
| 2157 | [pa.array([1, 2], type=pa.float32())], ["f"]) |
| 2158 | |
| 2159 | with pytest.raises(pa.ArrowTypeError, match="Unable to merge:"): |
| 2160 | pa.concat_tables([t1, t2], promote_options="default") |
| 2161 | |
| 2162 | |
| 2163 | def test_table_negative_indexing(): |