mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
updated MergeTreePrewhereRangeReader; renamed MergeTreePrewhereRangeReader to MergeTreeRangeReader
This commit is contained in:
parent
58b6b7570f
commit
77a3989558
@ -428,7 +428,7 @@ MergeTreeRangeReader::ReadResult MergeTreeRangeReader::startReadingChain(size_t
|
|||||||
/// result.num_rows_read if the last granule in range also the last in part (so we have to adjust last granule).
|
/// result.num_rows_read if the last granule in range also the last in part (so we have to adjust last granule).
|
||||||
{
|
{
|
||||||
size_t space_left = max_rows;
|
size_t space_left = max_rows;
|
||||||
while (space_left && !stream.isFinished() && !ranges.empty())
|
while (space_left && (!stream.isFinished() || !ranges.empty()))
|
||||||
{
|
{
|
||||||
if (stream.isFinished())
|
if (stream.isFinished())
|
||||||
{
|
{
|
||||||
|
@ -114,7 +114,7 @@ public:
|
|||||||
size_t getNumAddedRows() const { return num_added_rows; }
|
size_t getNumAddedRows() const { return num_added_rows; }
|
||||||
/// The number of filtered rows at all steps in reading chain.
|
/// The number of filtered rows at all steps in reading chain.
|
||||||
size_t getNumFilteredRows() const { return num_filtered_rows; }
|
size_t getNumFilteredRows() const { return num_filtered_rows; }
|
||||||
/// Filter you need to allply to newly-read columns in order to add them to block.
|
/// Filter you need to apply to newly-read columns in order to add them to block.
|
||||||
const ColumnPtr & getFilter() const { return filter; }
|
const ColumnPtr & getFilter() const { return filter; }
|
||||||
|
|
||||||
void addGranule(size_t num_rows);
|
void addGranule(size_t num_rows);
|
||||||
|
Loading…
Reference in New Issue
Block a user