peacewong commented on a change in pull request #1173:
URL: https://github.com/apache/incubator-linkis/pull/1173#discussion_r765765167



##########
File path: 
linkis-computation-governance/linkis-engineconn/linkis-computation-engineconn/src/main/scala/org/apache/linkis/engineconn/computation/executor/execute/ComputationExecutor.scala
##########
@@ -145,6 +145,11 @@ abstract class ComputationExecutor(val outputPrintLimit: 
Int = 1000) extends Acc
 
 
   def toExecuteTask(engineConnTask: EngineConnTask, internalExecute: Boolean = 
false): ExecuteResponse = {
+    if (engineConnTask.getCode.trim.isEmpty) {
+      error(s"The code must not be empty!")
+      return ErrorExecuteResponse("The code must not be empty!", null)

Review comment:
       Hello, here to consider the case of submitting comment code




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