Skip to content

Commit efd041c

Browse files
fix test_timedelta_cumsum
1 parent 8077734 commit efd041c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bigframes/core/rewrite/timedeltas.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ def _rewrite_expressions(expr: ex.Expression, schema: schema.ArraySchema) -> _Ty
111111

112112

113113
def _rewrite_scalar_constant_expr(expr: ex.ScalarConstantExpression) -> _TypedExpr:
114+
if expr.value is None:
115+
return _TypedExpr(ex.const(None, expr.dtype), expr.dtype)
114116
if expr.dtype == dtypes.TIMEDELTA_DTYPE:
115117
int_repr = utils.timedelta_to_micros(expr.value) # type: ignore
116118
return _TypedExpr(ex.const(int_repr, expr.dtype), expr.dtype)

0 commit comments

Comments
 (0)