1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-3474 TIMEDIFF() returns incorrect result fix

This commit is contained in:
Jose Rojas
2019-10-17 21:19:10 +00:00
parent 5fd0873215
commit 46e2701fed

View File

@ -119,9 +119,7 @@ string Func_timediff::getStrVal(rowgroup::Row& row,
case execplan::CalpontSystemCatalog::TIME:
case execplan::CalpontSystemCatalog::DATETIME:
// Diff between time and datetime returns NULL in MariaDB
if ((type2 == execplan::CalpontSystemCatalog::TIME ||
type2 == execplan::CalpontSystemCatalog::DATETIME) &&
type1 != type2)
if (type1 != type2)
{
isNull = true;
break;