You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-347 Fix NULLIF() for DATETIME with DATE
Comparing DATETIME with DATE compared two different date int formats
This commit is contained in:
@ -362,7 +362,8 @@ int64_t Func_nullif::getDatetimeIntVal(rowgroup::Row& row,
|
||||
}
|
||||
case execplan::CalpontSystemCatalog::DATE:
|
||||
{
|
||||
exp2 = parm[1]->data()->getDateIntVal(row, isNull);
|
||||
// Upgrade to datetime for proper comparison
|
||||
exp2 = parm[1]->data()->getDatetimeIntVal(row, isNull);
|
||||
if (isNull) {
|
||||
isNull = false;
|
||||
return exp1;
|
||||
|
Reference in New Issue
Block a user