Hyukjin Kwon created SPARK-62266:
------------------------------------
Summary: Parse the plan of an expression of the Python client into
native values of its protobuf runtime, and make its message objects when Python
reads them
Key: SPARK-62266
URL: https://issues.apache.org/jira/browse/SPARK-62266
Project: Spark
Issue Type: Improvement
Components: Connect
Affects Versions: 5.0.0
Reporter: Hyukjin Kwon
The protobuf runtime of the Python client (crates/pyspark-rs/src/pbmsg) parses
the bytes of a plan into one Python message object per message, so the to_plan
of an expression that PySpark's Python code builds takes 2.2 us, against 0.8 us
with PySpark's upb. SPARK-62264 makes the copies of messages native values
whose Python objects are made at their first read; doing the same for parsed
messages would close the gap. Parse the plan into native values of the runtime
and make its message objects when Python reads them, keeping the observable
behavior (identity, bytes, text, errors) as upb's.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]