You've already forked mariadb-columnstore-engine
							
							
				mirror of
				https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
				synced 2025-11-03 17:13:17 +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