You've already forked mariadb-columnstore-engine
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:
@ -77,7 +77,7 @@ double Func_rand::getDoubleVal(rowgroup::Row& row,
|
|||||||
fSeedSet = false;
|
fSeedSet = false;
|
||||||
fSeedIndex += 1;
|
fSeedIndex += 1;
|
||||||
}
|
}
|
||||||
else if (fFirstRow == 0)
|
else if (fFirstRow == nullptr)
|
||||||
{
|
{
|
||||||
// Store first row
|
// Store first row
|
||||||
fFirstRow = row.getData();
|
fFirstRow = row.getData();
|
||||||
|
@ -38,7 +38,7 @@ namespace funcexp
|
|||||||
class Func_rand : public Func
|
class Func_rand : public Func
|
||||||
{
|
{
|
||||||
public:
|
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() {}
|
virtual ~Func_rand() {}
|
||||||
|
|
||||||
double getRand();
|
double getRand();
|
||||||
@ -46,7 +46,6 @@ public:
|
|||||||
{
|
{
|
||||||
fSeedSet = seedSet;
|
fSeedSet = seedSet;
|
||||||
fMultipleSeedsSet = seedSet;
|
fMultipleSeedsSet = seedSet;
|
||||||
fFirstRow = nullptr;
|
|
||||||
}
|
}
|
||||||
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);
|
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user