HyukjinKwon opened a new pull request, #868:
URL: https://github.com/apache/spark-connect-rust/pull/868
### What changes were proposed in this pull request?
From a review of the Rust API's documentation (items S1 and S7 of the review
of the Rust migration notes).
**1. The Rust migration notes are split by release line.**
- `## Rust migration for the 4.3 line` mixed what v4.3.0 shipped (tagged
b2656b63, 2026-11-16) with the Rust-API changes merged after it, which ship in
4.4.0.
- The section is now the changes from v4.2.0 to v4.3.0, at v4.3.0's meaning,
with an intro line. A diff against `git show v4.3.0:docs/compatibility.md`
differs only in that line and in the corrections of #846 (SPARK-61996): the
typed map keys and the new `Value`, `DataType`, `SparkErrorKind` and
`LogicalPlan` variants, `Pipeline::set_stages`/`stages`, `PipelineModel`'s
fields, `Raw` and `MAX_PLAN_DEPTH`, and the seed. Each was checked against the
code at v4.3.0, not only the docs.
- A sentence true of v4.3.0 and changed since stays there, such as
"`bucket_by` is unchanged and sends the count it is given". The new section
says what changed.
- A new `## Rust migration for the 4.4 line (unreleased)` holds every
Rust-API change since v4.3.0:
- the passages that were there, moved as they were (#781, #792, #799,
#800, #831, #837, #843, #845, #846);
- those that the notes lacked, from the merged PRs and checked against the
code: the new error kinds (`BuiltinAttributeError`, `BuiltinAssertionError`),
the hidden expression nodes (`PlanBuildOrigin`, `CastTarget::Shown`), the ML
changes (#784, #787, #793), the client and connection settings (#769, #779,
#802, #815, #842, #864), and the catalog, reader and `create_dataframe` changes
(#776, #782, #788, #798, #836, #855);
- a sentence on the doc-hidden items.
- The 4.3 heading is unchanged, so its anchor keeps working; no link pointed
at it.
**2. The claim that the native Rust API mirrors PySpark's surface is
qualified** (`docs/compatibility.md`, `docs/index.md`).
- After #845 and #846, a comparison of the public names of PySpark's classes
with the crate's public API leaves only the APIs that need Python itself:
`toPandas`, `pandas_api`, `plot`, `GroupedData.apply`,
`Catalog.registerFunction`, `udf.register`, `udtf.register`,
`dataSource.register`, `F.udf`/`udtf`/`arrow_udtf`, `SparkSession.Hook`,
`active`/`getActiveSession`, and `SparkSession.client`.
- These are of Python functions that the server runs, of pandas, or of
Python's implicit session. The paragraph names each, with its Rust counterpart
where there is one: the pickled commands of `register_function`,
`register_table_function`, `register_data_source` and `apply_in_pandas`, and
`set_execute_plan_hook`.
### Why are the changes needed?
So that a Rust user upgrading from 4.2 to 4.3 reads what 4.3 changed, a user
of the next release reads what 4.4 changes, and the docs do not overstate the
Rust API's surface.
### Does this PR introduce _any_ user-facing change?
No, docs only.
### How was this patch tested?
- Every sentence of the old section appears verbatim in one of the two new
sections, apart from three that were edited on purpose: an intro line, an
antecedent, and a split paragraph. No sentence is in both. This was checked by
script.
- Every link and anchor of `docs/*.md` resolves (checked with
Python-Markdown's toc slugs). `mkdocs build --strict` runs in CI's "Validate
docs" job; mkdocs is not installed here.
- `scripts/check_doc_snippets.py`: 60 snippets, 0 failed.
- `python3.11 -m unittest discover -s scripts/tests`.
### 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]