itholic opened a new pull request, #47436:
URL: https://github.com/apache/spark/pull/47436

   
   ### What changes were proposed in this pull request?
   
   This PR proposes to make the parameter naming of `PySparkException` 
consistent with JVM
   
   ### Why are the changes needed?
   
   The parameter names of `PySparkException` are different from 
`SparkException` so there is an inconsistency when searching those parameters 
from error logs.
   
   SparkException:
   
https://github.com/apache/spark/blob/6508b1f5e18731359354af0a7bcc1382bc4f356b/common/utils/src/main/scala/org/apache/spark/SparkException.scala#L27-L33
   
   PySparkException:
   
https://github.com/apache/spark/blob/6508b1f5e18731359354af0a7bcc1382bc4f356b/python/pyspark/errors/exceptions/base.py#L29-L40
   
   ### Does this PR introduce _any_ user-facing change?
   
   The error parameter names are changed from:
   - `error_class` -> `errorClass`
   - `message_parameters` -> `messageParameters`
   - `query_contexts` -> `context`
   
   ### How was this patch tested?
   
   The existing CI should pass
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to