diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:09:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:09:31 +0000 |
commit | ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0 (patch) | |
tree | eacad0719c5f2d113f221000ec126226f0d7fc9e /sqlglot/dataframe/sql/column.py | |
parent | Releasing debian version 11.2.3-1. (diff) | |
download | sqlglot-ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0.tar.xz sqlglot-ebec59cc5cb6c6856705bf82ced7fe8d9f75b0d0.zip |
Merging upstream version 11.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/dataframe/sql/column.py')
-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 609b2a4..f45d467 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.Div, other) + return self.binary_op(exp.FloatDiv, other) def __div__(self, other: ColumnOrLiteral) -> Column: - return self.binary_op(exp.Div, other) + return self.binary_op(exp.FloatDiv, 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.Div, other) + return self.inverse_binary_op(exp.FloatDiv, other) def __rtruediv__(self, other: ColumnOrLiteral) -> Column: - return self.inverse_binary_op(exp.Div, other) + return self.inverse_binary_op(exp.FloatDiv, other) def __rmod__(self, other: ColumnOrLiteral) -> Column: return self.inverse_binary_op(exp.Mod, other) |