diff --git a/ibis/backends/mysql/registry.py b/ibis/backends/mysql/registry.py index dcecc7d0cbb3..2520da6ff631 100644 --- a/ibis/backends/mysql/registry.py +++ b/ibis/backends/mysql/registry.py @@ -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(