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

Function test_table_source

python/pyarrow/tests/test_acero.py:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_table_source():
92 with pytest.raises(TypeError):
93 TableSourceNodeOptions(pa.record_batch([pa.array([1, 2, 3])], ["a"]))
94
95 table_source = TableSourceNodeOptions(None)
96 decl = Declaration("table_source", table_source)
97 with pytest.raises(
98 ValueError, match="TableSourceNode requires table which is not null"
99 ):
100 _ = decl.to_table()
101
102
103def test_record_batch_reader_source():

Callers

nothing calls this directly

Calls 4

TableSourceNodeOptionsFunction · 0.90
DeclarationClass · 0.90
arrayMethod · 0.45
to_tableMethod · 0.45

Tested by

no test coverage detected