You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Weichen Xu (Jira)" <ji...@apache.org> on 2024/07/23 00:40:00 UTC

[jira] [Updated] (SPARK-48970) Avoid using SparkSession.getActiveSession in spark ML reader/writer

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

Weichen Xu updated SPARK-48970:
-------------------------------
    Issue Type: Bug  (was: Improvement)

> Avoid using SparkSession.getActiveSession in spark ML reader/writer
> -------------------------------------------------------------------
>
>                 Key: SPARK-48970
>                 URL: https://issues.apache.org/jira/browse/SPARK-48970
>             Project: Spark
>          Issue Type: Bug
>          Components: ML, PySpark
>    Affects Versions: 4.0.0
>            Reporter: Weichen Xu
>            Priority: Major
>              Labels: pull-request-available
>
> `SparkSession.getActiveSession` is thread-local session, but spark ML reader / writer might be executed in different threads which causes `SparkSession.getActiveSession` returning None.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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