[ 
https://issues.apache.org/jira/browse/SPARK-62294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon updated SPARK-62294:
---------------------------------
    Description: The Rust test 
dataframe::plan_construction_tests::explain_string_takes_the_explain_modes_of_pyspark
 takes about 10 minutes, in rust.yml too: its session points at 
sc://localhost:15002, where no server listens, and the plan's to_proto looks up 
the plan compression first, which retries until its budget ends. That order is 
PySpark 4.3.0's: DataFrame._explain_string calls self._plan.to_proto(client), 
whose _set_relation_in_plan runs get_configs for the plan compression 
(swallowing its failure as threshold -1 and algorithm NONE), before _analyze 
checks the explain mode and raises VALUE_NOT_ALLOWED. So the client keeps that 
order, and the test sets the plan compression of a failed lookup on its client, 
as a binding sets PySpark's _plan_compression_threshold, so that it builds the 
plan of no request and needs no server.  (was: Since SPARK-62198, prepare_plan 
connects to the server of a DataFrame's session before the explain mode of 
DataFrame.explain is checked, so an invalid mode on an unreachable session 
retries until the budget of the retries ends, where PySpark checks the mode 
first and raises at once. The Rust test 
dataframe::plan_construction_tests::explain_string_takes_the_explain_modes_of_pyspark
 therefore takes about 10 minutes (it connects to sc://localhost:15002, where 
no server listens), in rust.yml too. Check the explain mode in PySpark's order, 
before the client connects, so that an invalid mode fails as PySpark's does and 
the test needs no server.
)

> Give the explain-mode test of the core the plan compression of a failed 
> lookup, so that it needs no server
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-62294
>                 URL: https://issues.apache.org/jira/browse/SPARK-62294
>             Project: Spark
>          Issue Type: Bug
>          Components: Connect
>    Affects Versions: 5.0.0
>            Reporter: Hyukjin Kwon
>            Priority: Major
>
> The Rust test 
> dataframe::plan_construction_tests::explain_string_takes_the_explain_modes_of_pyspark
>  takes about 10 minutes, in rust.yml too: its session points at 
> sc://localhost:15002, where no server listens, and the plan's to_proto looks 
> up the plan compression first, which retries until its budget ends. That 
> order is PySpark 4.3.0's: DataFrame._explain_string calls 
> self._plan.to_proto(client), whose _set_relation_in_plan runs get_configs for 
> the plan compression (swallowing its failure as threshold -1 and algorithm 
> NONE), before _analyze checks the explain mode and raises VALUE_NOT_ALLOWED. 
> So the client keeps that order, and the test sets the plan compression of a 
> failed lookup on its client, as a binding sets PySpark's 
> _plan_compression_threshold, so that it builds the plan of no request and 
> needs no server.



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