Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
resolve conflict
  • Loading branch information
zhengruifeng committed Jun 20, 2024
commit 3a8b12ff4ef09c983cc02fe414c0aaa2b67a4d0c
1 change: 1 addition & 0 deletions python/pyspark/sql/connect/column.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _bin_op(
def _unary_op(name: str, self: ParentColumn) -> ParentColumn:
return Column(UnresolvedFunction(name, [self._expr])) # type: ignore[list-item]


def _to_expr(v: Any) -> Expression:
return v._expr if isinstance(v, Column) else LiteralExpression._from_value(v)

Expand Down