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

Function test_concat_tables_permissive

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

Source from the content-addressed store, hash-verified

2059
2060
2061def 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
2071def test_concat_tables_invalid_option():

Callers

nothing calls this directly

Calls 1

listFunction · 0.85

Tested by

no test coverage detected