mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update LimitTransform.
This commit is contained in:
parent
f94eb7a0ff
commit
a19c8b3d37
@ -76,7 +76,7 @@ LimitTransform::Status LimitTransform::prepare()
|
|||||||
if (!input.hasData())
|
if (!input.hasData())
|
||||||
return Status::NeedData;
|
return Status::NeedData;
|
||||||
|
|
||||||
current_chunk = input.pull();
|
current_chunk = input.pull(true);
|
||||||
has_block = true;
|
has_block = true;
|
||||||
|
|
||||||
auto rows = current_chunk.getNumRows();
|
auto rows = current_chunk.getNumRows();
|
||||||
@ -95,6 +95,7 @@ LimitTransform::Status LimitTransform::prepare()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Now, we pulled from input, and it must be empty.
|
/// Now, we pulled from input, and it must be empty.
|
||||||
|
input.setNeeded();
|
||||||
return Status::NeedData;
|
return Status::NeedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +115,7 @@ LimitTransform::Status LimitTransform::prepare()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Now, we pulled from input, and it must be empty.
|
/// Now, we pulled from input, and it must be empty.
|
||||||
|
input.setNeeded();
|
||||||
return Status::NeedData;
|
return Status::NeedData;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user