Yicong-Huang opened a new pull request, #59742: URL: https://github.com/apache/spark/pull/59742
### What changes were proposed in this pull request? Fix stale comments and docstrings in `python/pyspark/worker.py`: - Module docstring: drop "receives input from Piped RDD" (`PipedRDD` is `rdd.pipe()`, unrelated). Describe `invoke_udf` as runnable against any `SparkMessageReceiver`, `main` as the socket entry used by `PythonRunner` / `pyspark.daemon`, and the NON_UDF vs eval-type-handler split. - `invoke_udf` docstring: it reads from `message_receiver` and writes to `outfile`, not specifically "from the JVM". - `read_single_udtf`: remove a comment about an `accepts_analyze_result` flag that no longer exists, and describe the signature-based constructor choice instead of the old "try with AnalyzeResult, fall back on failure". - Profiler comment in `invoke_udf`: UDTFs are not profiled; only UDFs fold profiling into `func`. ### Why are the changes needed? The comments no longer match the code after the eval-handler migration and earlier UDTF changes. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Comment-only change; no behavior change. ### 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]
