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
4 changes: 2 additions & 2 deletions aerospike_helpers/expressions/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def __truediv__(self, right: "TypeAny"):
return self._overload_op_va_args(right, _ExprOp.DIV)

def __floordiv__(self, right: "TypeAny"):
div_expr = self.__truediv__(right)
return div_expr.__floor__()
# Directly chain the operations to avoid intermediate expression creation
return self._overload_op_va_args(right, _ExprOp.DIV)._overload_op_unary(_ExprOp.FLOOR)

def __pow__(self, right: "TypeAny"):
return self._overload_op(right, _ExprOp.POW)
Expand Down
Loading