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

Function test_concat_tables_with_promotion_error

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

Source from the content-addressed store, hash-verified

2151
2152
2153def 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
2163def test_table_negative_indexing():

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.45

Tested by

no test coverage detected