Hyukjin Kwon created SPARK-62250:
------------------------------------
Summary: Keep the state of the Python client's SparkConnectClient
in its __dict__, read at the start of each request, as PySpark's client keeps it
Key: SPARK-62250
URL: https://issues.apache.org/jira/browse/SPARK-62250
Project: Spark
Issue Type: Improvement
Components: Connect
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
PySpark 4.3.0's SparkConnectClient keeps its state as attributes of its
__dict__ and reads them at the start of each request, so a program that sets
them changes the client's behavior: _retry_policies,
_max_retry_exception_elapsed_time, _rpc_deadlines, _use_reattachable_execute,
_allow_arrow_batch_chunking, _preferred_arrow_chunk_size, _session_hooks,
_progress_handlers, _profiler_collector, _closed, _server_session_id, the
_plan_compression_* attributes and _release_session_on_exit. The Python client
keeps them in Rust. Keep them in the client's __dict__, read at the start of
each request as PySpark's client reads them (background requests use the values
of their call; is_closed reads _closed first). _channel, _internal_stub,
_artifact_manager, _release_futures and _zstd_module stay documented as
inherent: the native transport replaces them.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]