cloud-fan commented on code in PR #36693: URL: https://github.com/apache/spark/pull/36693#discussion_r891320687
########## sql/catalyst/src/main/scala/org/apache/spark/sql/AnalysisException.scala: ########## @@ -36,13 +36,31 @@ class AnalysisException protected[sql] ( @transient val plan: Option[LogicalPlan] = None, val cause: Option[Throwable] = None, val errorClass: Option[String] = None, + val errorSubClass: Option[String] = None, val messageParameters: Array[String] = Array.empty) extends Exception(message, cause.orNull) with SparkThrowable with Serializable { + protected[sql] def this(message: String, Review Comment: do we need this constructor? The main constructor is sufficient as `val errorSubClass: Option[String] = None` is optional. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org