HyukjinKwon commented on a change in pull request #34993:
URL: https://github.com/apache/spark/pull/34993#discussion_r774464655
##########
File path: python/pyspark/sql/utils.py
##########
@@ -245,12 +246,7 @@ def require_test_compiled() -> None:
import os
import glob
- try:
- spark_home = os.environ["SPARK_HOME"]
- except KeyError:
- raise RuntimeError("SPARK_HOME is not defined in environment")
-
- test_class_path = os.path.join(spark_home, "sql", "core", "target", "*",
"test-classes")
+ test_class_path = os.path.join(_find_spark_home(), "sql", "core",
"target", "*", "test-classes")
Review comment:
oh okay, thats fine.
--
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]