Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-30205

Import ABC from collections.abc to remove deprecation warnings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0
    • PySpark
    • None

    Description

      Importing ABC from collections module directly is deprecated since 3.4 and is removed in Python 3.9. Thus this will cause ImportError for pyspark in Python 3.9 in the resultiterable module where Iterable is used from collections at https://github.com/tirkarthi/spark/blob/aa9da9365ff31948e42ab4c6dcc6cb4cec5fd852/python/pyspark/resultiterable.py#L23.

      Relevant CPython PR : https://github.com/python/cpython/pull/10596.

      I am a new contributor and would like to work on this issue.

      Thanks

      Attachments

        Issue Links

          Activity

            People

              xtreak Karthikeyan Singaravelan
              xtreak Karthikeyan Singaravelan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: