Skip to content

Commit

Permalink
formated
Browse files Browse the repository at this point in the history
Signed-off-by: fzhedu <[email protected]>
  • Loading branch information
fzhedu committed Jun 16, 2022
1 parent c49de8e commit a21809b
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions dbms/src/DataStreams/CreatingSetsBlockInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,13 +133,14 @@ void CreatingSetsBlockInputStream::createAll()
if (!exception_from_workers.empty())
{
LOG_ERROR(log,
"Creating all tasks of " << std::to_string(mpp_task_id) << " takes " << std::to_string(watch.elapsedSeconds())
<< " sec with exception and rethrow the first of total " << exception_from_workers.size()
<< " exceptions.");
"Creating all tasks of " << std::to_string(mpp_task_id) << " takes " << std::to_string(watch.elapsedSeconds())
<< " sec with exception and rethrow the first of total " << exception_from_workers.size()
<< " exceptions.");
std::rethrow_exception(exception_from_workers.front());
}
LOG_DEBUG(
log, "Creating all tasks of " << std::to_string(mpp_task_id) << " takes " << std::to_string(watch.elapsedSeconds()) << "sec. ");
log,
"Creating all tasks of " << std::to_string(mpp_task_id) << " takes " << std::to_string(watch.elapsedSeconds()) << "sec. ");

created = true;
}
Expand All @@ -151,9 +152,9 @@ void CreatingSetsBlockInputStream::createOne(SubqueryForSet & subquery)
try
{
LOG_DEBUG(log,
(subquery.set ? "Creating set. " : "")
<< (subquery.join ? "Creating join. " : "") << (subquery.table ? "Filling temporary table. " : "") << " for task "
<< std::to_string(mpp_task_id));
(subquery.set ? "Creating set. " : "")
<< (subquery.join ? "Creating join. " : "") << (subquery.table ? "Filling temporary table. " : "") << " for task "
<< std::to_string(mpp_task_id));
BlockOutputStreamPtr table_out;
if (subquery.table)
table_out = subquery.table->write({}, {});
Expand Down Expand Up @@ -268,8 +269,8 @@ void CreatingSetsBlockInputStream::createOne(SubqueryForSet & subquery)
if (subquery.join)
subquery.join->setBuildTableState(Join::BuildTableState::FAILED);
LOG_ERROR(log,
"task" << std::to_string(mpp_task_id) << " throw exception: " << getCurrentExceptionMessage(false, true) << " In "
<< std::to_string(watch.elapsedSeconds()) << " sec. ");
"task" << std::to_string(mpp_task_id) << " throw exception: " << getCurrentExceptionMessage(false, true) << " In "
<< std::to_string(watch.elapsedSeconds()) << " sec. ");
}
}

Expand Down

0 comments on commit a21809b

Please sign in to comment.