You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-1559 trim strings before compare on equal operator
This commit is contained in:
@@ -466,6 +466,7 @@ inline bool PredicateOperator::getBoolVal(rowgroup::Row& row, bool& isNull, Retu
|
||||
return false;
|
||||
|
||||
return strTrimCompare(val1, rop->getStrVal(row, isNull)) && !isNull;
|
||||
// return strCompare(val1, rop->getStrVal(row, isNull)) && !isNull;
|
||||
|
||||
}
|
||||
|
||||
|
@@ -1635,6 +1635,8 @@ const JobStepVector doSimpleFilter(SimpleFilter* sf, JobInfo& jobInfo)
|
||||
}
|
||||
|
||||
string constval(cc->constval());
|
||||
// Because, on a filter, we want to compare ignoring trailing spaces
|
||||
// boost::algorithm::trim_right(constval);
|
||||
|
||||
|
||||
CalpontSystemCatalog::OID dictOid = 0;
|
||||
@@ -2770,7 +2772,8 @@ const JobStepVector doConstantFilter(const ConstantFilter* cf, JobInfo& jobInfo)
|
||||
cop = COMPARE_NIL;
|
||||
|
||||
string value = cc->constval();
|
||||
|
||||
// Because, on a filter, we want to compare ignoring trailing spaces
|
||||
// boost::algorithm::trim_right(value);
|
||||
|
||||
pds->addFilter(cop, value);
|
||||
}
|
||||
@@ -2853,7 +2856,8 @@ const JobStepVector doConstantFilter(const ConstantFilter* cf, JobInfo& jobInfo)
|
||||
cop = COMPARE_NIL;
|
||||
|
||||
string value = cc->constval();
|
||||
|
||||
// Because, on a filter, we want to compare ignoring trailing spaces
|
||||
// boost::algorithm::trim_right(value);
|
||||
|
||||
pds->addFilter(cop, value);
|
||||
}
|
||||
@@ -2960,7 +2964,6 @@ const JobStepVector doConstantFilter(const ConstantFilter* cf, JobInfo& jobInfo)
|
||||
int64_t value = 0;
|
||||
string constval = cc->constval();
|
||||
|
||||
|
||||
// @bug 1151 string longer than colwidth of char/varchar.
|
||||
uint8_t rf = 0;
|
||||
bool isNull = ConstantColumn::NULLDATA == cc->type();
|
||||
|
Reference in New Issue
Block a user