Skip to content

Commit

Permalink
fix static code checks by clang-tidy and formated
Browse files Browse the repository at this point in the history
Signed-off-by: fzhedu <[email protected]>
  • Loading branch information
fzhedu committed Jun 17, 2022
1 parent c33fb6f commit a89bf29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dbms/src/DataStreams/CreatingSetsBlockInputStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void CreatingSetsBlockInputStream::readPrefixImpl()

Block CreatingSetsBlockInputStream::getTotals()
{
auto *input = dynamic_cast<IProfilingBlockInputStream *>(children.back().get());
auto * input = dynamic_cast<IProfilingBlockInputStream *>(children.back().get());

if (input)
return input->getTotals();
Expand Down
4 changes: 2 additions & 2 deletions dbms/src/Interpreters/Join.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void NO_INLINE insertFromBlockImplTypeCase(
if (rows_not_inserted_to_map)
{
/// for right/full out join, need to record the rows not inserted to map
auto *elem = reinterpret_cast<Join::RowRefList *>(pool.alloc(sizeof(Join::RowRefList)));
auto * elem = reinterpret_cast<Join::RowRefList *>(pool.alloc(sizeof(Join::RowRefList)));
insertRowToList(rows_not_inserted_to_map, elem, stored_block, i);
}
continue;
Expand Down Expand Up @@ -570,7 +570,7 @@ void NO_INLINE insertFromBlockImplTypeCaseWithLock(
for (auto index : segment_index_info[segment_index])
{
/// for right/full out join, need to record the rows not inserted to map
auto *elem = reinterpret_cast<Join::RowRefList *>(pool.alloc(sizeof(Join::RowRefList)));
auto * elem = reinterpret_cast<Join::RowRefList *>(pool.alloc(sizeof(Join::RowRefList)));
insertRowToList(rows_not_inserted_to_map, elem, stored_block, index);
}
}
Expand Down

0 comments on commit a89bf29

Please sign in to comment.