You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/04/08 04:21:00 UTC

[jira] [Updated] (SPARK-23809) Active SparkSession should be set by getOrCreate

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

Xiao Li updated SPARK-23809:
----------------------------
    Fix Version/s: 2.4.0

> Active SparkSession should be set by getOrCreate
> ------------------------------------------------
>
>                 Key: SPARK-23809
>                 URL: https://issues.apache.org/jira/browse/SPARK-23809
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Eric Liang
>            Assignee: Eric Liang
>            Priority: Minor
>             Fix For: 2.3.1, 2.4.0
>
>
> Currently, the active spark session is set inconsistently (e.g., in createDataFrame, prior to query execution). Many places in spark also incorrectly query active session when they should be calling activeSession.getOrElse(defaultSession).
> The semantics here can be cleaned up if we also set the active session when the default session is set.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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