Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ibis/backends/sql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,17 @@ def compile(
Compiled expression
"""
query = self.compiler.to_sqlglot(expr, limit=limit, params=params)
sql = query.sql(dialect=self.dialect, pretty=pretty, copy=False)
try:
sql = query.sql(
dialect=self.dialect,
pretty=pretty,
copy=False,
unsupported_level=sg.ErrorLevel.RAISE,
)
except sg.UnsupportedError as e:
raise exc.UnsupportedOperationError(
f"Operation not supported in {self.name} backend: {e}"
) from e
self._log(sql)
return sql

Expand Down
Loading