mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 10:02:01 +00:00
WindowTransform::moveRowNumber fix
This commit is contained in:
parent
ec1fe244c6
commit
4859108feb
@ -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 (;;)
|
||||
{
|
||||
|
@ -0,0 +1 @@
|
||||
\N
|
@ -0,0 +1 @@
|
||||
SELECT nth_value(NULL, 1048577) OVER (Rows BETWEEN 1023 FOLLOWING AND UNBOUNDED FOLLOWING)
|
Loading…
Reference in New Issue
Block a user