Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
EpsilonPrime committed Aug 28, 2024
1 parent dae7310 commit d570620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gateway/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@ def AnalyzePlan(self, request, context):
if request.schema:
substrait = self._converter.convert_plan(request.schema.plan)
self._statistics.add_plan(substrait)
if len(substrait.relations) != 1:
raise ValueError(f"Expected exactly _ONE_ relation in the plan: {request}")
try:
results = self._backend.execute(substrait)
except Exception as err:
Expand Down

0 comments on commit d570620

Please sign in to comment.