Skip to content

Commit

Permalink
fix(mysql): handle null literals
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 2, 2023
1 parent e543b1d commit 79788c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ibis/backends/mysql/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def _interval_from_integer(t, op):
def _literal(_, op):
dtype = op.dtype
value = op.value
if value is None:
return sa.null()
if dtype.is_interval():
if dtype.unit.short in {"ms", "ns"}:
raise com.UnsupportedOperationError(
Expand Down

0 comments on commit 79788c7

Please sign in to comment.