Skip to content

Commit

Permalink
[skip ci] rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rfdavid committed Sep 8, 2023
1 parent 507013f commit e5bd0fd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/processor/processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ std::shared_ptr<FactorizedTable> QueryProcessor::execute(
}

void QueryProcessor::decomposePlanIntoTasks(
PhysicalOperator* op, PhysicalOperator* parent, Task* parentTask, ExecutionContext* context) {
PhysicalOperator* op, PhysicalOperator* parent, Task* parentTask, ExecutionContext* context) {
if (op->isSink() && parent != nullptr) {
auto childTask = std::make_unique<ProcessorTask>(reinterpret_cast<Sink*>(op), context);
if (op->getOperatorType() == PhysicalOperatorType::AGGREGATE) {
Expand All @@ -49,10 +49,6 @@ void QueryProcessor::decomposePlanIntoTasks(
for (auto i = (int64_t)op->getNumChildren() - 1; i >= 0; --i) {
decomposePlanIntoTasks(op->getChild(i), op, childTask.get(), context);
}
if (op->getOperatorType() == PhysicalOperatorType::COPY_TO) {
childTask->setSingleThreadedTask();
}
decomposePlanIntoTasks(op->getChild(0), op, childTask.get(), context);
parentTask->addChildTask(std::move(childTask));
} else {
// Schedule the right most side (e.g., build side of the hash join) first.
Expand Down

0 comments on commit e5bd0fd

Please sign in to comment.