You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +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:
|
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) {
|
if (isNull) {
|
||||||
isNull = false;
|
isNull = false;
|
||||||
return exp1;
|
return exp1;
|
||||||
|
Reference in New Issue
Block a user