Skip to content

Commit 7e55402

Browse files
authored
chore: ensure expr is indeed an ibis Expr (xorq-labs#1328)
closes xorq-labs#1306
1 parent d1e67a3 commit 7e55402

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

python/xorq/expr/api.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ def to_sql(expr: ir.Expr, compiler=None, pretty: bool = True) -> SQLString:
238238
239239
"""
240240

241+
assert isinstance(expr, ir.Expr)
242+
241243
if compiler is None:
242244
compiler = get_compiler(expr)
243245

0 commit comments

Comments
 (0)