1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-11-02 06:13:16 +03:00

add check for null value

This commit is contained in:
mariadb-KristinaPavlova
2025-10-28 13:37:47 +02:00
parent 66b2a8d19c
commit 5851e028a8

View File

@@ -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();
} }