cloud-fan commented on code in PR #49427:
URL: https://github.com/apache/spark/pull/49427#discussion_r1931429749


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/SqlScriptingLogicalPlans.scala:
##########
@@ -64,11 +69,15 @@ case class SingleStatement(parsedPlan: LogicalPlan)
  *              for example when CompoundBody is inside loop or conditional 
block.
  * @param isScope Flag indicating if the CompoundBody is a labeled scope.
  *                Scopes are used for grouping local variables and exception 
handlers.
+ * @param handlers Collection of error handlers that are defined within the 
compound body.
+ * @param conditions Collection of conditions that are defined within the 
compound body.
  */
 case class CompoundBody(
     collection: Seq[CompoundPlanStatement],
     label: Option[String],
-    isScope: Boolean) extends Command with CompoundPlanStatement {
+    isScope: Boolean,
+    handlers: Seq[ExceptionHandler] = Seq.empty,
+    conditions: HashMap[String, String] = HashMap()) extends Command with 
CompoundPlanStatement {

Review Comment:
   Where do we use it?



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