diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-12 10:17:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-12 10:17:16 +0000 |
commit | 7457677bc603569692329e39a59ccb018306e2a6 (patch) | |
tree | bb16c8f909bfbf7ff272cd8ef14a413c47b203fe /sqlglot/dataframe/sql/column.py | |
parent | Releasing debian version 11.3.3-1. (diff) | |
download | sqlglot-7457677bc603569692329e39a59ccb018306e2a6.tar.xz sqlglot-7457677bc603569692329e39a59ccb018306e2a6.zip |
Merging upstream version 11.3.6.
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 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) |