HyukjinKwon opened a new pull request, #314:
URL: https://github.com/apache/spark-connect-rust/pull/314

   ### What changes were proposed in this pull request?
   
   [SPARK-61116](https://issues.apache.org/jira/browse/SPARK-61116): The rest 
of the connect import path that builds or reads messages is PySpark's. It is 
ported from Apache Spark v4.3.0 over the generated `pyspark.sql.connect.proto` 
(SPARK-61111):
   
   - `pyspark.sql.connect.plan`:
     - `Read`, `Range` and `SQL` replace their placeholders, whose constructors 
took any arguments and built no relation.
     - `SubqueryAlias`, of the views of `SQL`.
     - `CachedRemoteRelation`, which removes its relation from the server once 
it is collected, through the client.
     - `RemoveRemoteCachedRelation`.
   
     `pyspark.testing.connectutils.PlanOnlyTestFixture` builds DataFrames of 
these plans with `DataFrame(plan, session)`.
   - `Column.to_plan(session)`: the `spark.connect.Expression` of a column. It 
was the last justified non-gap of the introspection diff.
   - `pyspark.sql.connect.types`: `parse_attr_name`, `verify_col_name` and 
`verify_numeric_col_name`.
   - `pyspark.sql.connect.conversion`, vendored byte for byte: 
`storage_level_to_proto`, `proto_to_storage_level` and 
`proto_to_remote_cached_dataframe`.
   - `SparkConnectClient.is_closed`: whether the session is stopped.
   
   `AGENTS.md` and `dev/parity/4.3.0-introspection-diff.md` now record no 
justified non-gaps.
   
   ### Why are the changes needed?
   
   - `DataFrame(Range(0, 3, 1), spark)` failed: `Range` built no relation.
   - `Column.to_plan` was missing.
   - `pyspark.sql.connect.conversion` and the helpers of 
`pyspark.sql.connect.types` could not be imported.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes. These plans, functions and `Column.to_plan` exist as in PySpark 4.3.0.
   
   ### How was this patch tested?
   
   - New offline tests check:
     - the relations of the plans, which are those of official PySpark 4.3.0 
apart from plan IDs, and their plan IDs
     - the command and the checks of `SQL`, and `Read.print`
     - `Column.to_plan`
     - the type helpers
     - the storage level conversions, and the DataFrame of a cached relation, 
which removes the relation from a mock Connect server once it is collected
   - A new live test runs DataFrames of `Range`, `SQL` with positional and 
named arguments, `SQL` with views, and `Read` on a server. It passes with 
official PySpark 4.3.0.
   - The lib tests of both crates (590 passed), the build of all tests, also 
with `wasm-udf`, the offline Python suites (2174 passed, 8 skipped), and the 
live drop-in and Arrow suites (173 passed) and live cases (10 passed) against a 
local Spark 4.3.0 server. Clippy reports no diagnostics in the changed lines.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Opus 5.5
   
   This pull request and its description were written by Isaac.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to