1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-06-15 03:21:42 +03:00

MCOL-1793 Window functions return garbage if current row outside of window frame.

This commit is contained in:
David Hall
2018-11-06 10:11:45 -06:00
parent 826fdc82d5
commit d01fe36fdc
3 changed files with 14 additions and 5 deletions

View File

@ -188,7 +188,7 @@ void WindowFunction::operator()()
}
// If b > e then the frame is entirely outside of the partition
// and there's no values to add
// and there's no values to drop
if (b <= e)
{
// UDAnF functions may have a dropValue function implemented.
@ -207,15 +207,15 @@ void WindowFunction::operator()()
}
else
{
// dropValues failed so do the entire frame.
// dropValues failed or doesn't exist
// so do the entire frame.
fFunctionType->resetData();
}
}
fFunctionType->operator()(b, e, i); // Calls nextValue
}
prevFrame = w;
fFunctionType->operator()(b, e, i); // UDAnF: Calls nextValue and evaluate
firstTime = false;
prevFrame = w;
}
}
}