HyukjinKwon opened a new pull request, #267: URL: https://github.com/apache/spark-connect-rust/pull/267
### What changes were proposed in this pull request? [SPARK-61058](https://issues.apache.org/jira/browse/SPARK-61058): `df.writeStream` now takes the arguments of `queryName`, `partitionBy` and `clusterBy` as PySpark Connect's `DataStreamWriter` does. - `queryName(queryName)`, and the `queryName` of `start` and `toTable`, raise `VALUE_NOT_NON_EMPTY_STR` of `queryName` for a name that is not a non-empty str. - `partitionBy(*cols)` and `clusterBy(*cols)` take a list or a tuple of column names alone. ### Why are the changes needed? The client: - took an empty name, and raised a `TypeError` for a name that was not a str - raised `TypeError`s for a list of columns, as `partitionBy(["k"])` ### Does this PR introduce _any_ user-facing change? Yes. These take the arguments of PySpark 4.3.0 and raise its errors. ### How was this patch tested? - A new live test writes a stream partitioned by a list of columns and checks its partitions, and the error of an empty query name. It passes with official PySpark 4.3.0, and fails without this change. - A new offline test checks the errors of `queryName`, also of `start` and `toTable`, and the lists and tuples of `partitionBy` and `clusterBy`. - The lib tests of both crates (582 passed), the build of all tests, also with `wasm-udf`, the offline Python suites (1900 passed, 8 skipped), and the live drop-in and Arrow suites (119 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]
