cboumalh commented on code in PR #52883:
URL: https://github.com/apache/spark/pull/52883#discussion_r2627602654


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala:
##########
@@ -3223,4 +3223,34 @@ private[sql] object QueryExecutionErrors extends 
QueryErrorsBase with ExecutionE
         "functionName" -> toSQLId(function),
         "k" -> toSQLValue(k, IntegerType)))
   }
+
+  def tupleInvalidInputSketchBuffer(function: String): Throwable = {
+    val reason: String = "Invalid buffer state or input data"
+    tupleInvalidInputSketchBuffer(function, reason)
+  }
+
+  def tupleInvalidInputSketchBuffer(function: String, reason: String): 
Throwable = {
+    new SparkRuntimeException(
+      errorClass = "TUPLE_INVALID_INPUT_SKETCH_BUFFER",
+      messageParameters = Map("function" -> toSQLId(function), "reason" -> 
reason))
+  }
+
+  def tupleInvalidMode(function: String, mode: String, validModes: 
Seq[String]): Throwable = {
+    new SparkRuntimeException(
+      errorClass = "TUPLE_INVALID_SKETCH_MODE",
+      messageParameters = Map(
+        "function" -> toSQLId(function),
+        "mode" -> mode,
+        "validModes" -> validModes.mkString(", ")))
+  }
+
+  def tupleInvalidSummaryValueType(

Review Comment:
   This was removed



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