zhengruifeng opened a new pull request, #40750: URL: https://github.com/apache/spark/pull/40750
### What changes were proposed in this pull request? to redact the proto message ### Why are the changes needed? 1, for security: `spark.createDataFrame(range(0, 10)).show()` before:  after:  2, `Message.toString` may cause OOM when the message is large This PR try to redact the bytes which is the main part of message in `LocalRelation` and `PythonUDF` ### Does this PR introduce _any_ user-facing change? yes, bytes will not be shown in UI, instead only the size is shown ### How was this patch tested? manually check -- 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]
