mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Add logs
This commit is contained in:
parent
7dd4c2931c
commit
9d7c470d4e
@ -2,8 +2,10 @@
|
||||
|
||||
#include <Interpreters/sortBlock.h>
|
||||
#include <base/sort.h>
|
||||
#include "Common/Logger.h"
|
||||
#include <Common/PODArray.h>
|
||||
#include <Common/iota.h>
|
||||
#include <Common/logger_useful.h>
|
||||
|
||||
#include <numeric>
|
||||
|
||||
@ -151,6 +153,15 @@ void RowOrderOptimizer::optimize(const Block & block, const SortDescription & de
|
||||
}
|
||||
|
||||
const EqualRanges equal_ranges = getEqualRanges(block, description, permutation);
|
||||
LoggerPtr log = getLogger("RowOrderOptimizer");
|
||||
LOG_TRACE(
|
||||
log,
|
||||
"block.columns(): {}, block.rows(): {}, description.size(): {}, equal_ranges.size(): {}",
|
||||
block.columns(),
|
||||
block.rows(),
|
||||
description.size(),
|
||||
equal_ranges.size());
|
||||
|
||||
const std::vector<size_t> other_columns_indexes = getOtherColumnIndexes(block, description);
|
||||
|
||||
for (const auto & equal_range : equal_ranges)
|
||||
|
Loading…
Reference in New Issue
Block a user