Yang Jie created SPARK-46558: -------------------------------- Summary: Extract a helper method to eliminate the duplicate code in `GrpcExceptionConverter` that retrieves `MessageParameters` from `ErrorParams` Key: SPARK-46558 URL: https://issues.apache.org/jira/browse/SPARK-46558 Project: Spark Issue Type: Improvement Components: Connect Affects Versions: 4.0.0 Reporter: Yang Jie
{code:java} params.errorClass match { case Some(_) => params.messageParameters case None => Map("message" -> params.message) } {code} The above code pattern appears 7 times in `GrpcExceptionConverter`. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org