MaxGekk commented on code in PR #37834:
URL: https://github.com/apache/spark/pull/37834#discussion_r968250522


##########
core/src/main/scala/org/apache/spark/SparkException.scala:
##########
@@ -163,21 +181,24 @@ private[spark] class SparkArithmeticException(
 private[spark] class SparkUnsupportedOperationException(
     errorClass: String,
     errorSubClass: Option[String] = None,
-    messageParameters: Array[String])
+    messageParameters: Map[String, String])
   extends UnsupportedOperationException(
     SparkThrowableHelper.getMessage(errorClass, errorSubClass.orNull, 
messageParameters))
-    with SparkThrowable {
+  with SparkThrowable {
 
   def this(
       errorClass: String,
       errorSubClass: String,
-      messageParameters: Array[String]) =
+      messageParameters: Map[String, String]) =
     this(
       errorClass = errorClass,
       errorSubClass = Some(errorSubClass),
       messageParameters = messageParameters)
 
-  override def getMessageParameters: Array[String] = messageParameters
+  override def getMessageParameters: Array[String] = {

Review Comment:
   It is tested by QueryExecutionErrorsSuite "UNSUPPORTED_FEATURE: unsupported 
pivot operations"



-- 
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]

Reply via email to