Skip to content

Commit

Permalink
fix: update error message when executing against unbound tables (#8695)
Browse files Browse the repository at this point in the history
Previously this gave wrong advice to set the default backend.

Fixes #8677.
  • Loading branch information
jcrist authored Mar 19, 2024
1 parent 586f979 commit 384b10f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ibis/expr/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ def _find_backend(self, *, use_default: bool = False) -> BaseBackend:
if has_unbound:
raise IbisError(
"Expression contains unbound tables and therefore cannot "
"be executed. Use ibis.<backend>.execute(expr) or "
"assign a backend instance to "
"`ibis.options.default_backend`."
"be executed. Use `<backend>.execute(expr)` to execute "
"against an explicit backend, or rebuild the expression "
"using bound tables instead."
)
default = _default_backend() if use_default else None
if default is None:
Expand Down

0 comments on commit 384b10f

Please sign in to comment.