HyukjinKwon opened a new pull request, #246: URL: https://github.com/apache/spark-connect-rust/pull/246
### What changes were proposed in this pull request? [SPARK-61045](https://issues.apache.org/jira/browse/SPARK-61045): `colRegex`, `metadataColumn`, `where` and `transpose` now take their arguments as PySpark Connect's do. - `df.colRegex(colName)` and `df.metadataColumn(colName)` raise `NOT_EXPECTED_TYPE` of `colName` for one that is not a str. - `df.where(condition)` raises `NOT_EXPECTED_TYPE` of `condition` for one that is neither a Column nor a str. - `df.transpose(indexColumn)` takes a Column or a column name, else `NOT_EXPECTED_TYPE` of `col`. ### Why are the changes needed? The client raised `TypeError`s for these. It also rejected a column name in `transpose`, as `df.transpose("id")`. ### Does this PR introduce _any_ user-facing change? Yes. These methods take the arguments of PySpark 4.3.0 and raise its errors. ### How was this patch tested? - A new live test checks the rows of `transpose` of a column name. It passes with official PySpark 4.3.0, and fails without this change. - A new offline test checks the errors of these methods for arguments of other types, and the `transpose` of a column name and of a Column. - The lib tests of both crates (571 passed), the build of all tests, also with `wasm-udf`, the offline Python suites (1811 passed, 8 skipped), and the live drop-in and Arrow suites (109 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]
