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

Function test_table_source

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

Source from the content-addressed store, hash-verified

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