Github user WeichenXu123 commented on a diff in the pull request: https://github.com/apache/spark/pull/20168#discussion_r160265175 --- Diff: python/pyspark/ml/image.py --- @@ -55,7 +72,7 @@ def imageSchema(self): """ if self._imageSchema is None: - ctx = SparkContext._active_spark_context + ctx = SparkContext.getOrCreate() --- End diff -- Have you check every place to use `getOrCreate` ?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org