You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/10/10 11:12:39 UTC
[GitHub] [spark] HyukjinKwon commented on a diff in pull request #38168: fix(type): add bool and List[bool] for join's on input
HyukjinKwon commented on code in PR #38168:
URL: https://github.com/apache/spark/pull/38168#discussion_r991170773
##########
python/pyspark/sql/dataframe.py:
##########
@@ -2044,7 +2044,7 @@ def crossJoin(self, other: "DataFrame") -> "DataFrame":
def join(
self,
other: "DataFrame",
- on: Optional[Union[str, List[str], Column, List[Column]]] = None,
+ on: Optional[Union[str, List[str], bool, List[bool], Column, List[Column]]] = None,
Review Comment:
That's actually an error from IDE (which assumes that the built-in functions always return `bool`). The expected types here are correct in fact.
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org