WindowTransform::moveRowNumber fix

This commit is contained in:
ndchikin 2022-05-20 20:49:10 +00:00
parent ec1fe244c6
commit 4859108feb
3 changed files with 3 additions and 1 deletions

View File

@ -425,7 +425,7 @@ auto WindowTransform::moveRowNumberNoCheck(const RowNumber & _x, int64_t offset)
{
RowNumber x = _x;
if (offset > 0)
if (offset > 0 && x != blocksEnd())
{
for (;;)
{

View File

@ -0,0 +1 @@
SELECT nth_value(NULL, 1048577) OVER (Rows BETWEEN 1023 FOLLOWING AND UNBOUNDED FOLLOWING)