[ 
https://issues.apache.org/jira/browse/SPARK-46558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Max Gekk reassigned SPARK-46558:
--------------------------------

    Assignee: Yang Jie

> 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
>            Assignee: Yang Jie
>            Priority: Major
>              Labels: pull-request-available
>
> {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

Reply via email to