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

MCOL-3760 Fix issue with random seed list not being initilized to empty

This commit is contained in:
jmrojas2332
2020-03-05 17:30:02 +00:00
parent 52dec05a52
commit 04afbf59c7
2 changed files with 2 additions and 3 deletions

View File

@ -77,7 +77,7 @@ double Func_rand::getDoubleVal(rowgroup::Row& row,
fSeedSet = false;
fSeedIndex += 1;
}
else if (fFirstRow == 0)
else if (fFirstRow == nullptr)
{
// Store first row
fFirstRow = row.getData();

View File

@ -38,7 +38,7 @@ namespace funcexp
class Func_rand : public Func
{
public:
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false), fMultipleSeedsSet(false), fFirstRow(nullptr){}
Func_rand() : Func("rand"), fSeed1(0), fSeed2(0), fSeedSet(false), fMultipleSeedsSet(false), fFirstRow(nullptr), fSeeds(){}
virtual ~Func_rand() {}
double getRand();
@ -46,7 +46,6 @@ public:
{
fSeedSet = seedSet;
fMultipleSeedsSet = seedSet;
fFirstRow = nullptr;
}
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);