Skip to content

Commit 02d4c80

Browse files
committed
comments
1 parent cfa14e4 commit 02d4c80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nds/PysparkBenchReport.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ def __init__(self, spark_session: SparkSession, query_name) -> None:
5656
'query': query_name,
5757
}
5858

59-
def _is_above_spark_4(self):
59+
def _is_spark_400_or_later(self):
6060
return self.spark_session.version >= "4.0.0"
6161

6262
def _register_python_listener(self):
6363
# Register PythonListener
64-
if self._is_above_spark_4():
64+
if self._is_spark_400_or_later():
6565
# is_remote_only is added starting from 4.0.0
6666
from pyspark import is_remote_only
6767
if is_remote_only():
@@ -78,7 +78,7 @@ def _register_python_listener(self):
7878
return listener
7979

8080
def _get_spark_conf(self):
81-
if self._is_above_spark_4():
81+
if self._is_spark_400_or_later():
8282
from pyspark import is_remote_only
8383
if is_remote_only():
8484
return self.spark_session.conf.getAll

0 commit comments

Comments
 (0)