davidm-db commented on code in PR #47423:
URL: https://github.com/apache/spark/pull/47423#discussion_r1713927263
##########
sql/core/src/main/scala/org/apache/spark/sql/scripting/SqlScriptingExecutionNode.scala:
##########
@@ -45,7 +47,28 @@ sealed trait CompoundStatementExec extends Logging {
/**
* Leaf node in the execution tree.
*/
-trait LeafStatementExec extends CompoundStatementExec
+trait LeafStatementExec extends CompoundStatementExec {
+
+ /** Whether an error was raised during the execution of this statement. */
+ var raisedError: Boolean = false
+
+ /**
+ * Error state of the statement.
+ */
+ var errorState: Option[String] = None
+
+ /** Error raised during statement execution. */
+ var error: Option[SparkThrowable] = None
Review Comment:
as agreed offline, let's remove `error` since `errorState` should be enough
--
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]