You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2019/12/10 19:10:00 UTC

[jira] [Resolved] (SPARK-30205) Import ABC from collections.abc to remove deprecation warnings

     [ https://issues.apache.org/jira/browse/SPARK-30205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun resolved SPARK-30205.
-----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

This is resolved via https://github.com/apache/spark/pull/26835

> Import ABC from collections.abc to remove deprecation warnings
> --------------------------------------------------------------
>
>                 Key: SPARK-30205
>                 URL: https://issues.apache.org/jira/browse/SPARK-30205
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>    Affects Versions: 3.0.0
>            Reporter: Karthikeyan Singaravelan
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org