Skip to content

Commit

Permalink
Remove typecast for ROOT_TASK_* constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanicky Chen committed May 17, 2024
1 parent 5a0c927 commit f54bb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/frontend/src/scheduler/distributed/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,12 +392,12 @@ impl QueryRunner {
let root_task_id_prost = TaskIdPb {
query_id: self.query.query_id.clone().id,
stage_id: self.query.root_stage_id(),
task_id: ROOT_TASK_ID as u64,
task_id: ROOT_TASK_ID,
};

TaskOutputIdPb {
task_id: Some(root_task_id_prost),
output_id: ROOT_TASK_OUTPUT_ID as u64,
output_id: ROOT_TASK_OUTPUT_ID,
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/frontend/src/scheduler/distributed/stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ impl StageRunner {
let root_stage_id = self.stage.id;
// Currently, the dml or table scan should never be root fragment, so the partition is None.
// And root fragment only contain one task.
let plan_fragment = self.create_plan_fragment(ROOT_TASK_ID as u64, None);
let plan_fragment = self.create_plan_fragment(ROOT_TASK_ID, None);
let plan_node = plan_fragment.root.unwrap();
let task_id = TaskIdBatch {
query_id: self.stage.query_id.id.clone(),
Expand Down

0 comments on commit f54bb6c

Please sign in to comment.