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

Function test_declaration_to_reader

python/pyarrow/tests/test_acero.py:83–88  ·  view source on GitHub ↗
(table_source)

Source from the content-addressed store, hash-verified

81
82
83def test_declaration_to_reader(table_source):
84 with table_source.to_reader() as reader:
85 assert reader.schema == pa.schema([("a", pa.int64()), ("b", pa.int64())])
86 result = reader.read_all()
87 expected = pa.table({'a': [1, 2, 3], 'b': [4, 5, 6]})
88 assert result.equals(expected)
89
90
91def test_table_source():

Callers

nothing calls this directly

Calls 2

equalsMethod · 0.80
schemaMethod · 0.45

Tested by

no test coverage detected