diff options
Diffstat (limited to '')
-rw-r--r-- | sqlglot/dataframe/sql/column.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sqlglot/dataframe/sql/column.py b/sqlglot/dataframe/sql/column.py index f45d467..609b2a4 100644 --- a/sqlglot/dataframe/sql/column.py +++ b/sqlglot/dataframe/sql/column.py @@ -67,10 +67,10 @@ class Column: return self.binary_op(exp.Mul, other) def __truediv__(self, other: ColumnOrLiteral) -> Column: - return self.binary_op(exp.FloatDiv, other) + return self.binary_op(exp.Div, other) def __div__(self, other: ColumnOrLiteral) -> Column: - return self.binary_op(exp.FloatDiv, other) + return self.binary_op(exp.Div, other) def __neg__(self) -> Column: return self.unary_op(exp.Neg) @@ -85,10 +85,10 @@ class Column: return self.inverse_binary_op(exp.Mul, other) def __rdiv__(self, other: ColumnOrLiteral) -> Column: - return self.inverse_binary_op(exp.FloatDiv, other) + return self.inverse_binary_op(exp.Div, other) def __rtruediv__(self, other: ColumnOrLiteral) -> Column: - return self.inverse_binary_op(exp.FloatDiv, other) + return self.inverse_binary_op(exp.Div, other) def __rmod__(self, other: ColumnOrLiteral) -> Column: return self.inverse_binary_op(exp.Mod, other) |