You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wencong Liu (Jira)" <ji...@apache.org> on 2023/03/31 14:25:00 UTC
[jira] [Commented] (SPARK-42663) Fix `default_session` to work properly
[ https://issues.apache.org/jira/browse/SPARK-42663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707279#comment-17707279 ]
Wencong Liu commented on SPARK-42663:
-------------------------------------
Hello [~itholic] , I am a beginner in Spark and I am very interested in this ticket. I understand that the key point of this issue is to make Spark remember the previous key in the config. I would like to ask if this problem only applies to "default_index_type" or if it is just an example. If you could help me by providing the specific code path, I would be very happy and willing to take on this issue. :)
> Fix `default_session` to work properly
> --------------------------------------
>
> Key: SPARK-42663
> URL: https://issues.apache.org/jira/browse/SPARK-42663
> Project: Spark
> Issue Type: Sub-task
> Components: Connect, Pandas API on Spark
> Affects Versions: 3.5.0
> Reporter: Haejoon Lee
> Priority: Major
>
> Currently, default_session is not working properly in Spark Connect as below:
> {code:java}
> >>> 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
> {code}
> It should work as expected in regular PySpark as below:
> {code:java}
> >>> 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'{code}
--
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