Weichen Xu created SPARK-48970: ---------------------------------- Summary: 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: Improvement Components: ML, PySpark Affects Versions: 4.0.0 Reporter: Weichen Xu
`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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org