This is an automated email from the ASF dual-hosted git repository.
HyukjinKwon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark-connect-rust.git
The following commit(s) were added to refs/heads/master by this push:
new 836dfa73 [MINOR][DOCS] Correct the load_paths note, the hand-named
test lists in the CI notes, and the arg-count wording note
836dfa73 is described below
commit 836dfa7328850169363572fb8183502be330dd7b
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Fri Nov 13 22:33:56 2026 +0900
[MINOR][DOCS] Correct the load_paths note, the hand-named test lists in the
CI notes, and the arg-count wording note
### What changes were proposed in this pull request?
This PR corrects three passages of the docs:
- `docs/compatibility.md`: `load_paths` is new in this release (v4.2.0 had
only `load`), so it does not break a v4.2.0 caller. The note now says so and
gives the typed empty form, `load_paths(Vec::<&str>::new())`.
- `dev/design/ci.md`: the note said that no module outside the
official-suite selection is named by hand. It now names the hand-named lists:
`FLAKY_FILES` and `SLOW_FILE_TIMEOUTS` in `scripts/run_official_tests.py`, and
the e2e files that the `connect-dropin` and `connect-e2e` jobs of
`build_python_connect.yml` run by name.
- `docs/compatibility.md`: the note on the arg-count `TypeError` now also
gives the form for a method that takes no arguments and the one for a method
that takes one argument.
### Why are the changes needed?
The notes did not match the code and the reference client:
- v4.2.0 has no `load_paths` (`git show
v4.2.0:crates/spark-connect/src/readwriter.rs`), so it was wrong to call it a
breaking change.
- The statement about hand-named modules was false.
- The arg-count note gave only the ranged form. The two forms it now gives
were checked against the drop-in and PySpark 4.3.0:
- `DataFrame.distinct(1)`: CPython says "takes 1 positional argument but
2 were given"; the drop-in says "takes no arguments (1 given)".
- `DataFrame.limit(1, 2, 3)`: CPython says "takes 2 positional arguments
but 4 were given"; the drop-in says "takes 1 positional arguments but 3 were
given".
### Does this PR introduce _any_ user-facing change?
No, documentation only.
### How was this patch tested?
No code changed. A probe confirmed the error messages on the drop-in and on
PySpark 4.3.0, the stub audit passes, and the changed files have no non-ASCII
characters and no line over 100 characters. The change adds no Rust snippets,
so the doc snippet check is unaffected.
### 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.
Closes #641 from HyukjinKwon/MINOR-docs-r12.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
dev/design/ci.md | 5 ++++-
docs/compatibility.md | 11 +++++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/dev/design/ci.md b/dev/design/ci.md
index e65eef38..60445b08 100644
--- a/dev/design/ci.md
+++ b/dev/design/ci.md
@@ -175,7 +175,10 @@ The parity job discovers every `test_*.py` under
`<spark>/python` whose path con
`--exclude`. The drop-in job discovers the Connect suites of `pyspark/sql`,
`pyspark/ml`,
`pyspark/errors` and `pyspark/logger`, minus the same three files, which
`scripts/run_official_tests.py` names in `DROPIN_LOCAL_CLUSTER_ONLY`. The
local-cluster phase
-names its four modules in `--only`. No other module is named by hand. See
+names its four modules in `--only`. Outside the official-suite selection, the
hand-named lists
+are `FLAKY_FILES` (the files that get retries) and `SLOW_FILE_TIMEOUTS`
(per-file timeouts) in
+`scripts/run_official_tests.py`, and the e2e files that the `connect-dropin`
and `connect-e2e` jobs
+of `build_python_connect.yml` run by name. See
[official-tests.md](official-tests.md) for the selection, skip and retry rules.
### Handling test failures
diff --git a/docs/compatibility.md b/docs/compatibility.md
index cbf44db3..77411b27 100644
--- a/docs/compatibility.md
+++ b/docs/compatibility.md
@@ -50,7 +50,9 @@ that is not a sort order is sorted ascending, nulls first, as
PySpark's `WindowS
it. An empty `vec![]` or `[]` has no item type to infer: pass
`Vec::<Column>::new()` or
`Vec::<&str>::new()` instead. This breaks a caller of v4.2.0 that passes an
empty literal to
`select_expr` or `summary`, which took a `Vec<&str>` there:
`df.summary(vec![])`, for the default
-statistics, becomes `df.summary(Vec::<&str>::new())`. The same goes for
`load_paths`. The optional
+statistics, becomes `df.summary(Vec::<&str>::new())`. `load_paths` is new in
this release: v4.2.0
+had only `load`, so no v4.2.0 caller breaks on it, and a new caller passes an
empty literal as
+`load_paths(Vec::<&str>::new())`. The optional
`subset` arguments of the null functions, the optional `value_vars` of `melt`
and the optional
`column_names` of `drop_duplicates` and `drop_duplicates_within_watermark` stay
`Option<Vec<&str>>`, as in v4.2.0, so that `None` still infers its type. The
optional `values` of
@@ -585,7 +587,12 @@ loads the drop-in's at every protocol.
The `TypeError` for too many positional arguments counts them without `self`:
where CPython says
"takes from 2 to 4 positional arguments but 5 were given", the drop-in says
"takes from 1 to 3
-positional arguments but 4 were given". A warning that the Rust core raises,
such as the
+positional arguments but 4 were given". A method that takes no arguments gets
"takes no arguments
+(1 given)", where CPython says "takes 1 positional argument but 2 were given"
for
+`DataFrame.distinct(1)`. A method that takes one argument gets the plural
"positional arguments"
+even for a count of one: the drop-in says "takes 1 positional arguments but 3
were given" for
+`DataFrame.limit(1, 2, 3)`, where CPython says "takes 2 positional arguments
but 4 were given".
+A warning that the Rust core raises, such as the
`FutureWarning` of `registerTempTable`, is attributed to the caller's frame
and module, so a
`warnings.filterwarnings(..., module="pyspark")` does not match it, as it
matches PySpark's.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]