Github user tomasatdatabricks commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20168#discussion_r160305779
  
    --- 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 --
    
    Yes, everywhere in image schema code at least. 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to