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

Function test_invalid_plan

python/pyarrow/tests/test_substrait.py:112–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

110
111
112def test_invalid_plan():
113 query = """
114 {
115 "relations": [
116 ]
117 }
118 """
119 buf = pa._substrait._parse_json_plan(tobytes(query))
120 exec_message = "Plan has no relations"
121 with pytest.raises(ArrowInvalid, match=exec_message):
122 substrait.run_query(buf)
123
124
125@pytest.mark.parametrize("use_threads", [True, False])

Callers

nothing calls this directly

Calls 1

tobytesFunction · 0.85

Tested by

no test coverage detected