You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maciej Szymkiewicz (Jira)" <ji...@apache.org> on 2021/11/20 10:47:00 UTC

[jira] [Resolved] (SPARK-37390) Buggy method retrival in pyspark.docs.conf.setup

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

Maciej Szymkiewicz resolved SPARK-37390.
----------------------------------------
    Fix Version/s: 3.3.0
                   3.2.1
                   3.1.3
       Resolution: Fixed

Issue resolved by pull request 34669
[https://github.com/apache/spark/pull/34669]

> Buggy method retrival in pyspark.docs.conf.setup
> ------------------------------------------------
>
>                 Key: SPARK-37390
>                 URL: https://issues.apache.org/jira/browse/SPARK-37390
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation, PySpark
>    Affects Versions: 3.1.0, 3.2.0, 3.3.0
>            Reporter: Maciej Szymkiewicz
>            Assignee: Maciej Szymkiewicz
>            Priority: Minor
>             Fix For: 3.3.0, 3.2.1, 3.1.3
>
>
> [Currently we have this code|https://github.com/apache/spark/blob/04af08e9b6d692ed4b5df5581e39de138067211c/python/docs/source/conf.py#L374-L376]
> {code:python}
> def setup(app):
>     # The app.add_javascript() is deprecated.
>     getattr(app, "add_js_file", getattr(app, "add_javascript"))('copybutton.js')
> {code}
> where nested {{getattr}} should handle compatibility issues between different Sphinx versions.
> However, {{getattr(app, "add_javascript"))}} is missing {{default}} and will fail in latest Sphinx version, without ever falling back to {{getattr(app, "add_js_file")}}
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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