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

   ### What changes were proposed in this pull request?
   
   A follow-up of #598 (SPARK-61603), from a post-merge review:
   - `DataFrame::select_expr` and `summary`, and `DataFrameReader::load_paths`, 
which took a `Vec<&str>` or `Vec<String>`, take any iterable of names (`impl 
IntoIterator<Item = impl Into<String>>`), as the other list arguments do since 
SPARK-61603. So `df.select_expr(["id + 1"])` compiles. `fillna_map` takes any 
iterable of `(String, Value)` pairs, such as a `BTreeMap`; its names stay 
`String`s, so that `vec![]` and `("id".into(), value)` still infer their type. 
Every existing caller compiles as before.
   - The compatibility note:
     - The first list of `drop_columns` is of column references, as PySpark's 
`drop(F.col(name))`. A name of several columns is `AMBIGUOUS_REFERENCE`, and a 
dotted name refers to a nested field, which drops nothing.
     - Its second list is of plain names, as that of `drop`.
     - It describes the arguments of `with_columns` (pairs) and `grouping_sets` 
(iterables of iterables) as they are, and lists the newly changed methods.
   
   ### Why are the changes needed?
   
   To complete the column-list sweep of the Rust API, and to describe it 
accurately.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, in the Rust API. These methods take any iterable of names or pairs.
   
   ### How was this patch tested?
   
   - New unit tests of the changed methods; they fail to compile without the 
change.
   - The lib tests (674 passed), the build of all tests, and the builds of 
`pyspark-rs` and `examples`.
   - `check_doc_snippets.py` (59 snippets, 0 failures) and `cargo fmt --all 
--check`.
   
   ### 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