mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
update
This commit is contained in:
parent
a3060f7d2b
commit
6fe9b782a1
@ -1548,9 +1548,7 @@ struct WindowFunctionRank final : public StatelessWindowFunction
|
|||||||
|
|
||||||
RowNumber firstRequiredRowInFrame(const WindowTransform * transform) const override
|
RowNumber firstRequiredRowInFrame(const WindowTransform * transform) const override
|
||||||
{
|
{
|
||||||
/// Current block is the only one required to be kept in memory.
|
return transform->peer_group_start;
|
||||||
auto [row, _] = transform->moveRowNumber(transform->current_row, -1);
|
|
||||||
return row;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1573,9 +1571,7 @@ struct WindowFunctionDenseRank final : public StatelessWindowFunction
|
|||||||
|
|
||||||
RowNumber firstRequiredRowInFrame(const WindowTransform * transform) const override
|
RowNumber firstRequiredRowInFrame(const WindowTransform * transform) const override
|
||||||
{
|
{
|
||||||
/// Current block is the only one required to be kept in memory.
|
return transform->peer_group_start;
|
||||||
auto [row, _] = transform->moveRowNumber(transform->current_row, -1);
|
|
||||||
return row;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user