HyukjinKwon commented on code in PR #39159:
URL: https://github.com/apache/spark/pull/39159#discussion_r1055163785


##########
python/pyspark/sql/session.py:
##########
@@ -1376,7 +1376,8 @@ def sql(self, sqlQuery: str, **kwargs: Any) -> DataFrame:
         if len(kwargs) > 0:

Review Comment:
   Another way is to keep the signature same as Scala's. e.g.)
   
   ```python
   def sql(self, sqlQuery: str,  args: Dict[str, str], **kwargs: Any) -> 
DataFrame:
       # Use args for SQL mapping
   ```



-- 
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]

Reply via email to