-
Notifications
You must be signed in to change notification settings - Fork 169
refactor(workflow-compiler): unify duplicate compilers into common/workflow-compiler #6143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ import org.apache.texera.web.resource.dashboard.user.workflow.WorkflowExecutions | |
| import org.apache.texera.web.storage.ExecutionStateStore | ||
| import org.apache.texera.web.storage.ExecutionStateStore.updateWorkflowState | ||
| import org.apache.texera.web.{ComputingUnitMaster, SubscriptionManager, WebsocketInput} | ||
| import org.apache.texera.workflow.WorkflowCompiler | ||
| import org.apache.texera.common.compiler.{CompilationErrorHandling, WorkflowCompiler} | ||
|
|
||
| import java.net.URI | ||
| import scala.collection.mutable | ||
|
|
@@ -110,8 +110,16 @@ class WorkflowExecutionService( | |
|
|
||
| def executeWorkflow(): Unit = { | ||
| try { | ||
| workflow = new WorkflowCompiler(workflowContext) | ||
| .compile(request.logicalPlan) | ||
| val compilationResult = new WorkflowCompiler(workflowContext) | ||
| .compile(request.logicalPlan, CompilationErrorHandling.Strict) | ||
| workflowContext.workflowSettings = workflowContext.workflowSettings.copy( | ||
| outputPortsNeedingStorage = compilationResult.outputPortsNeedingStorage | ||
| ) | ||
| workflow = Workflow( | ||
| workflowContext, | ||
| compilationResult.logicalPlan, | ||
| compilationResult.physicalPlan.get | ||
| ) | ||
| } catch { | ||
| case err: Throwable => | ||
| errorHandler(err) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 to bobbai00's point here: if |
||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we directly
returnto end this function here ?