HyukjinKwon commented on PR #772: URL: https://github.com/apache/spark-connect-rust/pull/772#issuecomment-6946776409
Closing this after double-checking which code would use these modules. No supported feature of the client needs them: - 18 of the 21 modules have no importer in the drop-in at all, or are imported only by code that runs on the server's Python worker, which is the server's own PySpark: the state clients and the transformWithState driver worker (`StateMessage_pb2`, `pyspark.worker`), `worker_util` (`worker_message`), the streaming workers and the source runner. The Rust transport replaces `client.retries`, `artifact`, `reattach` and `base_pb2_grpc`. The RDD helpers and the tools have no caller. - `pyspark.resultiterable` is imported only by `pyspark/streaming/dstream.py`, which already falls back without it; DStreams need a SparkContext, which a Connect client doesn't have. - `pyspark.sql.connect.local_server` is the only one with a client-side caller: the vendored classic builder imports it for the opt-in `spark.local.connect.reuse` with a `local` master, which starts `sbin/start-connect-server.sh` of a full Spark distribution. That path keeps raising `ModuleNotFoundError` without this PR. It can be vendored on its own if that path is wanted. If `SparkSession.client`'s retry-policy API (the `SparkConnectClient` PR) needs `client/retries.py`, that PR will carry the file itself. 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]
