Skip to content

Commit

Permalink
Fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
small-turtle-1 committed Dec 29, 2023
1 parent d896ede commit dacf253
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/executor/operator_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ bool QueueSourceState::GetData() {
SharedPtr<FragmentDataBase> fragment_data_base = nullptr;
source_queue_.Dequeue(fragment_data_base);

OperatorState *next_op_state1 = this->next_op_state_;
if (next_op_state1->operator_type_ == PhysicalOperatorType::kFusion) {
int a = 1;
}

switch (fragment_data_base->type_) {
case FragmentDataType::kData: {
auto *fragment_data = static_cast<FragmentData *>(fragment_data_base.get());
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler/fragment_task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void FragmentTask::OnExecute(i64) {

bool execute_success{false};
bool source_complete = source_op->Execute(fragment_context->query_context(), source_state_.get());
if (source_state_->error_message_.get() == nullptr) {
if(source_state_->error_message_.get() == nullptr) {
// No source error
Vector<PhysicalOperator *> &operator_refs = fragment_context->GetOperators();

Expand Down Expand Up @@ -120,8 +120,8 @@ bool FragmentTask::QuitFromWorkerLoop() {
return false;
}
if (source_state_->state_type_ != SourceStateType::kQueue) {
// fragment's source is not from queue
return false;
// Error<SchedulerException>("SourceStateType is not kQueue");
}
auto *queue_state = static_cast<QueueSourceState *>(source_state_.get());

Expand Down
2 changes: 1 addition & 1 deletion src/scheduler/task_scheduler.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace infinity {
class QueryContext;
class PlanFragment;

using FragmentTaskBlockQueue = BlockingQueue<FragmentTask *>;
using FragmentTaskBlockQueue = BlockingQueue<FragmentTask*>;

struct Worker {
Worker(u64 cpu_id, UniquePtr<FragmentTaskBlockQueue> queue, UniquePtr<Thread> thread)
Expand Down

0 comments on commit dacf253

Please sign in to comment.