You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-10-31 18:30:33 +03:00
add check for null value
This commit is contained in:
@@ -337,6 +337,10 @@ class SimpleColumn : public ReturnedColumn
|
|||||||
double getDoubleVal(rowgroup::Row& row, bool& isNull) override
|
double getDoubleVal(rowgroup::Row& row, bool& isNull) override
|
||||||
{
|
{
|
||||||
evaluate(row, isNull);
|
evaluate(row, isNull);
|
||||||
|
if (isNull)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return TreeNode::getDoubleVal();
|
return TreeNode::getDoubleVal();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user