You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "HyukjinKwon (via GitHub)" <gi...@apache.org> on 2023/02/20 14:04:30 UTC

[GitHub] [spark] HyukjinKwon commented on a diff in pull request #40066: [SPARK-42498] [CONNECT][PYTHON] Reduce spark connect service retries

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


##########
python/pyspark/sql/connect/client.py:
##########
@@ -632,7 +632,7 @@ def _execute(self, req: pb2.ExecutePlanRequest) -> None:
             Proto representation of the plan.
 
         """
-        logger.info("Execute")
+        logger.debug(f"Execute request: » {os.linesep}{req}{os.linesep} «")

Review Comment:
   Maybe just `Execute request: {os.linesep}{req}{os.linesep}`? I would stick to the existing codebase unless it needs a reason.
   
   It's also sort of documented:
   
   > If you’re not sure about the right style for something, try to follow the style of the existing codebase
   
   https://spark.apache.org/contributing.html
   
   So I wouldn't do something new unless there's a reason.



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