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

Function table_provider

python/pyarrow/tests/test_substrait.py:199–208  ·  view source on GitHub ↗
(names, schema)

Source from the content-addressed store, hash-verified

197 schema_1 = pa.schema([pa.field("x", pa.int64())])
198
199 def table_provider(names, schema):
200 if not names:
201 raise Exception("No names provided")
202 elif names[0] == "t1":
203 assert schema == schema_1
204 return test_table_1
205 elif names[1] == "t2":
206 return test_table_2
207 else:
208 raise Exception("Unrecognized table name")
209
210 substrait_query = """
211 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected