You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/01/14 00:11:19 UTC
[PR] Xinyuan stage by stage [texera]
aglinxinyuan opened a new pull request, #4158:
URL: https://github.com/apache/texera/pull/4158
### What changes were proposed in this PR?
Introduce batch execution mode.
Demo:

</div>
### Any related issues, documentation, discussions?
This PR resolves issue #4157.
### How was this PR tested?
Tested using the existing test cases. Since batch execution mode is expected to produce the same results as before, no additional test cases were added.
### Was this PR authored or co-authored using generative AI tooling?
No.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696451966
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
Before doing this PR, Xiaozhen, Chen, and I discussed this and agreed that this flag should be part of the physical plan. Given how the CostBasedScheduleGenerator uses blocking output links in the physical plan to reason about regions, this information belongs in the physical plan. We are not duplicating information in the physical plan; we use this information to generate a new physical plan. In fact, the physical plans for streaming mode and batch mode are different, because the physical plan includes the links, and in batch mode every output link becomes a blocking link.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2723315299
##########
amber/src/test/scala/org/apache/texera/amber/engine/e2e/DataProcessingSpec.scala:
##########
@@ -340,4 +352,205 @@ class DataProcessingSpec
)
executeWorkflow(workflow)
}
+
+ // MATERIALIZED ExecutionMode tests - each operator should be a region
+ "Engine" should "execute headerlessCsv workflow with MATERIALIZED mode" in {
Review Comment:
Fixed.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696517130
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don’t think it’s true that the physical plan will be exactly the same regardless of how we execute it in our current codebase. If you look at the next line, `this.physicalPlan = updatedPhysicalPlan`, the physical plan clearly changes before and after `CostBasedScheduleGenerator`, so the physical plan changes based on the execution plan.
We may need input from @Xiao-zhen-Liu to understand why Pasta needs to modify the physical plan and whether this behavior is intentional.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2693343329
##########
frontend/src/app/dashboard/component/user/user-workflow/user-workflow.component.ts:
##########
@@ -230,7 +230,10 @@ export class UserWorkflowComponent implements AfterViewInit {
commentBoxes: [],
links: [],
operatorPositions: {},
- settings: { dataTransferBatchSize: this.config.env.defaultDataTransferBatchSize },
+ settings: {
+ dataTransferBatchSize: this.config.env.defaultDataTransferBatchSize,
+ executionMode: ExecutionMode.STREAMING,
Review Comment:
done.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2719543235
##########
frontend/src/app/workspace/component/left-panel/settings/settings.component.ts:
##########
@@ -33,43 +33,51 @@ import { GuiConfigService } from "../../../../common/service/gui-config.service"
styleUrls: ["./settings.component.scss"],
})
export class SettingsComponent implements OnInit {
- settingsForm!: FormGroup;
- currentDataTransferBatchSize!: number;
- isSaving: boolean = false;
+ settingsForm: FormGroup;
constructor(
private fb: FormBuilder,
private workflowActionService: WorkflowActionService,
private workflowPersistService: WorkflowPersistService,
private userService: UserService,
- private notificationService: NotificationService,
- private config: GuiConfigService
- ) {}
-
- ngOnInit(): void {
- this.currentDataTransferBatchSize =
- this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize ||
- this.config.env.defaultDataTransferBatchSize;
-
+ private notificationService: NotificationService
+ ) {
this.settingsForm = this.fb.group({
- dataTransferBatchSize: [this.currentDataTransferBatchSize, [Validators.required, Validators.min(1)]],
+ dataTransferBatchSize: [
+ this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize,
+ [Validators.required, Validators.min(1)],
+ ],
+ executionMode: [this.workflowActionService.getWorkflowContent().settings.executionMode],
});
+ }
- this.settingsForm.valueChanges.pipe(untilDestroyed(this)).subscribe(value => {
- if (this.settingsForm.valid) {
- this.confirmUpdateDataTransferBatchSize(value.dataTransferBatchSize);
- }
- });
+ ngOnInit(): void {
+ this.settingsForm
+ .get("dataTransferBatchSize")!
+ .valueChanges.pipe(untilDestroyed(this))
+ .subscribe((batchSize: number) => {
+ if (this.settingsForm.get("dataTransferBatchSize")!.valid) {
+ this.confirmUpdateDataTransferBatchSize(batchSize);
+ }
+ });
+
+ this.settingsForm
+ .get("executionMode")!
+ .valueChanges.pipe(untilDestroyed(this))
+ .subscribe((mode: ExecutionMode) => {
+ this.updateExecutionMode(mode);
+ });
this.workflowActionService
.workflowChanged()
.pipe(untilDestroyed(this))
.subscribe(() => {
- this.currentDataTransferBatchSize =
- this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize ||
- this.config.env.defaultDataTransferBatchSize;
+ console.log("workflow changed", this.workflowActionService.getWorkflowContent().settings.executionMode);
Review Comment:
Removed.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #4158:
URL: https://github.com/apache/texera/pull/4158#issuecomment-3747839726
I will mark this PR ready after adding test cases.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2719542281
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/scheduling/CostBasedScheduleGenerator.scala:
##########
@@ -477,6 +482,29 @@ class CostBasedScheduleGenerator(
)
}
+ /** Constructs a baseline fully materialized region plan (one operator per region) and evaluates its cost. */
+ def materializedSearch(): SearchResult = {
Review Comment:
Renamed.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696517130
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don’t think it’s true that the physical plan will be exactly the same regardless of how we execute it. If you look at the next line, `this.physicalPlan = updatedPhysicalPlan`, the physical plan clearly changes before and after `CostBasedScheduleGenerator`, so the physical plan changes based on the execution plan.
We may need input from @Xiao-zhen-Liu to understand why Pasta needs to modify the physical plan and whether this behavior is intentional.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2692453075
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don't think this setting should be part of Physical plan. The information is already in workflowContext, why duplicate it again in physical plan?
##########
frontend/src/app/dashboard/component/user/user-workflow/user-workflow.component.ts:
##########
@@ -230,7 +230,10 @@ export class UserWorkflowComponent implements AfterViewInit {
commentBoxes: [],
links: [],
operatorPositions: {},
- settings: { dataTransferBatchSize: this.config.env.defaultDataTransferBatchSize },
+ settings: {
+ dataTransferBatchSize: this.config.env.defaultDataTransferBatchSize,
+ executionMode: ExecutionMode.STREAMING,
Review Comment:
make it configurable? similar to `dataTransferBatchSize`
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
In fact, please do not add such configuration to physical plan.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #4158:
URL: https://github.com/apache/texera/pull/4158
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696517130
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don’t think it’s true that the physical plan will be exactly the same regardless of how we execute it. If you look at the line 52, this.physicalPlan = updatedPhysicalPlan, the physical plan clearly changes before and after CostBasedScheduleGenerator, so the physical plan changes based on the execution plan.
We may need input from @Xiao-zhen-Liu to understand why Pasta needs to modify the physical plan and whether this behavior is intentional.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "Xiao-zhen-Liu (via GitHub)" <gi...@apache.org>.
Xiao-zhen-Liu commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696578682
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
Pasta does not modify the physical plan. We can still keep the physical plan immutable for this PR by pushing the logic of marking all edges as materialized inside Pasta.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "Xiao-zhen-Liu (via GitHub)" <gi...@apache.org>.
Xiao-zhen-Liu commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2715387174
##########
amber/src/test/scala/org/apache/texera/amber/engine/e2e/DataProcessingSpec.scala:
##########
@@ -340,4 +352,205 @@ class DataProcessingSpec
)
executeWorkflow(workflow)
}
+
+ // MATERIALIZED ExecutionMode tests - each operator should be a region
+ "Engine" should "execute headerlessCsv workflow with MATERIALIZED mode" in {
Review Comment:
The first 4 test cases are all 1-operator workflows, and will execute with exactly the same behavior under pipelined mode. Consider removing redundant test cases.
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/scheduling/CostBasedScheduleGenerator.scala:
##########
@@ -477,6 +482,29 @@ class CostBasedScheduleGenerator(
)
}
+ /** Constructs a baseline fully materialized region plan (one operator per region) and evaluates its cost. */
+ def materializedSearch(): SearchResult = {
Review Comment:
This is not actually doing a search, so the name is misleading. You can call it something like `getFullyMaterializedSearchState`
##########
frontend/src/app/workspace/component/left-panel/settings/settings.component.ts:
##########
@@ -33,43 +33,51 @@ import { GuiConfigService } from "../../../../common/service/gui-config.service"
styleUrls: ["./settings.component.scss"],
})
export class SettingsComponent implements OnInit {
- settingsForm!: FormGroup;
- currentDataTransferBatchSize!: number;
- isSaving: boolean = false;
+ settingsForm: FormGroup;
constructor(
private fb: FormBuilder,
private workflowActionService: WorkflowActionService,
private workflowPersistService: WorkflowPersistService,
private userService: UserService,
- private notificationService: NotificationService,
- private config: GuiConfigService
- ) {}
-
- ngOnInit(): void {
- this.currentDataTransferBatchSize =
- this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize ||
- this.config.env.defaultDataTransferBatchSize;
-
+ private notificationService: NotificationService
+ ) {
this.settingsForm = this.fb.group({
- dataTransferBatchSize: [this.currentDataTransferBatchSize, [Validators.required, Validators.min(1)]],
+ dataTransferBatchSize: [
+ this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize,
+ [Validators.required, Validators.min(1)],
+ ],
+ executionMode: [this.workflowActionService.getWorkflowContent().settings.executionMode],
});
+ }
- this.settingsForm.valueChanges.pipe(untilDestroyed(this)).subscribe(value => {
- if (this.settingsForm.valid) {
- this.confirmUpdateDataTransferBatchSize(value.dataTransferBatchSize);
- }
- });
+ ngOnInit(): void {
+ this.settingsForm
+ .get("dataTransferBatchSize")!
+ .valueChanges.pipe(untilDestroyed(this))
+ .subscribe((batchSize: number) => {
+ if (this.settingsForm.get("dataTransferBatchSize")!.valid) {
+ this.confirmUpdateDataTransferBatchSize(batchSize);
+ }
+ });
+
+ this.settingsForm
+ .get("executionMode")!
+ .valueChanges.pipe(untilDestroyed(this))
+ .subscribe((mode: ExecutionMode) => {
+ this.updateExecutionMode(mode);
+ });
this.workflowActionService
.workflowChanged()
.pipe(untilDestroyed(this))
.subscribe(() => {
- this.currentDataTransferBatchSize =
- this.workflowActionService.getWorkflowContent().settings.dataTransferBatchSize ||
- this.config.env.defaultDataTransferBatchSize;
+ console.log("workflow changed", this.workflowActionService.getWorkflowContent().settings.executionMode);
Review Comment:
Is this needed?
##########
common/workflow-core/src/main/scala/org/apache/texera/amber/core/workflow/WorkflowSettings.scala:
##########
@@ -21,5 +21,6 @@ package org.apache.texera.amber.core.workflow
case class WorkflowSettings(
dataTransferBatchSize: Int,
- outputPortsNeedingStorage: Set[GlobalPortIdentity] = Set.empty
+ outputPortsNeedingStorage: Set[GlobalPortIdentity] = Set.empty,
+ executionMode: ExecutionMode
Review Comment:
I think it would be safer if there is also a default value here, and you would not have to modify `customWorkflowSettings`.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696517130
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don’t think it’s true that the physical plan will be exactly the same regardless of how we execute it in our current codebase. If you look at this line, this.physicalPlan = updatedPhysicalPlan, the physical plan clearly changes before and after `CostBasedScheduleGenerator`, so the physical plan changes based on the execution plan.
We may need input from @Xiao-zhen-Liu to understand why Pasta needs to modify the physical plan and whether this behavior is intentional.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696517130
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I don’t think it’s true that the physical plan will be exactly the same regardless of how we execute it. If you look at the line 52, `this.physicalPlan = updatedPhysicalPlan`, the physical plan clearly changes before and after `CostBasedScheduleGenerator`, so the physical plan changes based on the execution plan.
We may need input from @Xiao-zhen-Liu to understand why Pasta needs to modify the physical plan and whether this behavior is intentional.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce batch execution mode [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2696500734
##########
amber/src/main/scala/org/apache/texera/amber/engine/architecture/controller/WorkflowScheduler.scala:
##########
@@ -45,7 +45,7 @@ class WorkflowScheduler(
// CostBasedRegionPlanGenerator considers costs to try to find an optimal plan.
new CostBasedScheduleGenerator(
workflowContext,
- physicalPlan,
+ physicalPlan.copy(executionMode = workflowContext.workflowSettings.executionMode),
Review Comment:
I cannot agree.
I think physical plan should be exactly same, no matter how we execute it. If it got changed then we need to revisit previous decisions. The execution plan will be different, based on how we cut the regions and how we do materializations.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] feat: introduce materialized execution mode [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #4158:
URL: https://github.com/apache/texera/pull/4158#discussion_r2719587397
##########
common/workflow-core/src/main/scala/org/apache/texera/amber/core/workflow/WorkflowSettings.scala:
##########
@@ -21,5 +21,6 @@ package org.apache.texera.amber.core.workflow
case class WorkflowSettings(
dataTransferBatchSize: Int,
- outputPortsNeedingStorage: Set[GlobalPortIdentity] = Set.empty
+ outputPortsNeedingStorage: Set[GlobalPortIdentity] = Set.empty,
+ executionMode: ExecutionMode
Review Comment:
Fixed.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org