()
| 2208 | |
| 2209 | |
| 2210 | def test_concat_batches_different_schema(): |
| 2211 | t1 = pa.RecordBatch.from_arrays( |
| 2212 | [pa.array([1, 2], type=pa.int64())], ["f"]) |
| 2213 | t2 = pa.RecordBatch.from_arrays( |
| 2214 | [pa.array([1, 2], type=pa.float32())], ["f"]) |
| 2215 | |
| 2216 | with pytest.raises(pa.ArrowInvalid, |
| 2217 | match="not match index 0 recordbatch schema"): |
| 2218 | pa.concat_batches([t1, t2]) |
| 2219 | |
| 2220 | |
| 2221 | def test_concat_batches_none_batches(): |