MCPcopy Create free account
hub / github.com/apache/arrow / test_concat_batches_different_schema

Function test_concat_batches_different_schema

python/pyarrow/tests/test_table.py:2210–2218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2208
2209
2210def 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
2221def test_concat_batches_none_batches():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected