You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Haejoon Lee (Jira)" <ji...@apache.org> on 2023/03/03 16:14:00 UTC

[jira] [Created] (SPARK-42663) Fix default_session to work properly in Spark Connect

Haejoon Lee created SPARK-42663:
-----------------------------------

             Summary: Fix default_session to work properly in Spark Connect
                 Key: SPARK-42663
                 URL: https://issues.apache.org/jira/browse/SPARK-42663
             Project: Spark
          Issue Type: Sub-task
          Components: Connect, ps
    Affects Versions: 3.5.0
            Reporter: Haejoon Lee


Currently, default_session is not working properly in Spark Connect:
>>> spark = default_session()
>>> spark.conf.set("default_index_type", "sequence")
>>> spark.conf.get("default_index_type")
'sequence'
>>>
>>> spark = default_session()
>>> spark.conf.get("default_index_type")
Traceback (most recent call last):
...
pyspark.errors.exceptions.connect.SparkConnectGrpcException: (java.util.NoSuchElementException) default_index_type
It should work as expected in regular PySpark as below:
>>> spark = default_session()
>>> spark.conf.set("default_index_type", "sequence")
>>> spark.conf.get("default_index_type")
'sequence'
>>>
>>> spark = default_session()
>>> spark.conf.get("default_index_type")
'sequence'



--
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