amaliujia commented on code in PR #38393:
URL: https://github.com/apache/spark/pull/38393#discussion_r1009005272
##########
python/pyspark/sql/connect/plan.py:
##########
@@ -575,7 +575,14 @@ def plan(self, session: Optional["RemoteSparkSession"]) ->
proto.Relation:
rel = proto.Relation()
rel.join.left.CopyFrom(self.left.plan(session))
rel.join.right.CopyFrom(self.right.plan(session))
- rel.join.join_condition.CopyFrom(self.to_attr_or_expression(self.on,
session))
+ if self.on is not None:
+ if not isinstance(self.on, list):
+ if isinstance(self.on, str):
Review Comment:
If you check existing PySpark implementation, yes, this is what I learn from
there to support such multiple types.
--
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]