HyukjinKwon commented on code in PR #41305:
URL: https://github.com/apache/spark/pull/41305#discussion_r1205116949
##########
python/pyspark/pandas/data_type_ops/binary_ops.py:
##########
@@ -70,27 +71,49 @@ def lt(self, left: IndexOpsLike, right: Any) ->
SeriesOrIndex:
from pyspark.pandas.base import column_op
_sanitize_list_like(right)
+ if is_remote():
+ from pyspark.sql.connect.column import Column as ConnectColumn
- return column_op(Column.__lt__)(left, right)
+ Column = ConnectColumn
+ else:
+ Column = PySparkColumn # type: ignore[assignment]
Review Comment:
Can we have one utility to get the column class at least? e.g.,
`pyspark.sql.utils.pyspark_column_op("__lt__")`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]