cloud-fan commented on code in PR #44968:
URL: https://github.com/apache/spark/pull/44968#discussion_r1475681690
##########
common/utils/src/main/scala/org/apache/spark/SparkException.scala:
##########
@@ -121,6 +121,16 @@ object SparkException {
throw new SparkIllegalArgumentException(errorClass, messageParameters)
}
}
+
+ /**
+ * Utility method to construct message params from Java Map.
+ * @param messageParameters The Java Map.
+ * @return Scala collection that can be passed to SparkException constructor.
+ */
+ def constructMessageParams(
+ messageParameters: java.util.Map[String, String]): Map[String, String] = {
Review Comment:
ditto, 4 spaces indentation for parameters
--
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]