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-1559 trailing space compare
This commit is contained in:
@@ -456,11 +456,19 @@ inline bool PredicateOperator::getBoolVal(rowgroup::Row& row, bool& isNull, Retu
|
|||||||
isNull = false;
|
isNull = false;
|
||||||
return !ret;
|
return !ret;
|
||||||
}
|
}
|
||||||
|
#if 0
|
||||||
|
if (isNull)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
const std::string& val1 = lop->getStrVal(row, isNull);
|
||||||
|
|
||||||
if (isNull)
|
if (isNull)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
std::string val1 = lop->getStrVal(row, isNull);
|
return strCompare(val1, rop->getStrVal(row, isNull)) && !isNull;
|
||||||
|
#endif
|
||||||
|
// MCOL-1559
|
||||||
|
std::string val1 = lop->getStrVal(row, isNull);
|
||||||
if (isNull)
|
if (isNull)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -472,7 +480,7 @@ inline bool PredicateOperator::getBoolVal(rowgroup::Row& row, bool& isNull, Retu
|
|||||||
boost::trim_right_if(val2, boost::is_any_of(" "));
|
boost::trim_right_if(val2, boost::is_any_of(" "));
|
||||||
|
|
||||||
return strCompare(val1, val2);
|
return strCompare(val1, val2);
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIXME: ???
|
//FIXME: ???
|
||||||
case execplan::CalpontSystemCatalog::VARBINARY:
|
case execplan::CalpontSystemCatalog::VARBINARY:
|
||||||
|
@@ -1636,7 +1636,7 @@ const JobStepVector doSimpleFilter(SimpleFilter* sf, JobInfo& jobInfo)
|
|||||||
}
|
}
|
||||||
|
|
||||||
string constval(cc->constval());
|
string constval(cc->constval());
|
||||||
boost::trim_right_if(constval, boost::is_any_of(" "));
|
// boost::trim_right_if(constval, boost::is_any_of(" "));
|
||||||
|
|
||||||
|
|
||||||
CalpontSystemCatalog::OID dictOid = 0;
|
CalpontSystemCatalog::OID dictOid = 0;
|
||||||
|
Reference in New Issue
Block a user