[BUG] Fix Memory Leak in SchemaChange And Fix some DCHECK error (#5491)

This commit is contained in:
stdpain
2021-03-17 09:27:05 +08:00
committed by GitHub
parent 105a86d1cd
commit a1bce25677
16 changed files with 180 additions and 154 deletions

View File

@ -141,7 +141,7 @@ FloatVal Literal::get_float_val(ExprContext* context, TupleRow* row) {
}
DoubleVal Literal::get_double_val(ExprContext* context, TupleRow* row) {
DCHECK_EQ(_type.type, TYPE_DOUBLE) << _type;
DCHECK(_type.type == TYPE_DOUBLE || _type.type == TYPE_TIME) << _type;
return DoubleVal(_value.double_val);
}