()
| 110 | |
| 111 | |
| 112 | def 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]) |