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

MCOL-3839 Count as window function with constants fix

This commit is contained in:
Jose
2020-04-27 16:17:12 +00:00
parent 08d9d40c6a
commit cc52467c42

View File

@ -120,11 +120,12 @@ void WF_count<T>::operator()(int64_t b, int64_t e, int64_t c)
if (cc) if (cc)
{ {
bool isNull = false; bool isNull = false;
int val = cc->getIntVal(fRow, isNull); cc->getIntVal(fRow, isNull);
if (!isNull) if (!isNull)
{ {
fCount = val; // constant, set fCount to row count
fCount = e - b + 1;
} }
} }
} }