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 2021/12/23 05:31:47 UTC

[GitHub] [spark] Yikun commented on a change in pull request #34993: [SPARK-37721][PYTHON] Fix SPARK_HOME key error when running PySpark test

Yikun commented on a change in pull request #34993:
URL: https://github.com/apache/spark/pull/34993#discussion_r774325742



##########
File path: python/pyspark/testing/utils.py
##########
@@ -22,6 +22,7 @@
 import unittest
 from time import time, sleep
 
+from pyspark.find_spark_home import _find_spark_home
 from pyspark import SparkContext, SparkConf

Review comment:
       I'm okay with this change, but I'm not sure why we need this change?
   
   Actually, I deliberately put this addtion to the front 😂, because [1]: `imports should be sorted lexicographically`. And flake8 also has a plugin `import-order-style` (not enable in Spark) helps to check it. 
   
   `pysparkfind_spark_home_find_spark_home` should before `pysparkSparkContextSparkConf`.
   
   [1] https://google.github.io/styleguide/pyguide.html?showone=Imports_formatting#313-imports-formatting




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