Hyukjin Kwon created SPARK-61148:
------------------------------------

             Summary: Leave a builder option of None unset, check the 
destination of copyFromLocalToFs, and raise NO_ACTIVE_SESSION for the requests 
of a stopped session, as PySpark does
                 Key: SPARK-61148
                 URL: https://issues.apache.org/jira/browse/SPARK-61148
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-4.3.0
            Reporter: Hyukjin Kwon


Three defects of the Python drop-in session, each differing from PySpark 
Connect:
(1) SparkSession.builder.config(key, None) stores "" instead of leaving the key 
unset, so spark.conf.get(key) returns '' where PySpark raises 
SQL_CONF_NOT_FOUND.
(2) copyFromLocalToFs(local, "relative/out.txt") sends the request to the 
server, where PySpark asserts "destination FS path must be an absolute path."; 
the artifact name also had a double slash (forward_to_fs//tmp/x) where PySpark 
uses forward_to_fs/tmp/x.
(3) After stop(), the session's requests (range().count(), sql, conf, version, 
cloneSession) still run on the server, where PySpark's closed client raises 
NO_ACTIVE_SESSION.




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to