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-1246 Fix for non-DSS step
For TEXT columns (and some other scenarios) we don't do a DSS step to scan dictionaries and do it directly in the BPS step instead. This patch applies the previous fix to this case too.
This commit is contained in:
@ -773,8 +773,10 @@ void PrimitiveProcessor::p_Dictionary(const DictInput *in, vector<uint8_t> *out,
|
||||
filterOffset = sizeof(DictInput) + (in->NVALS * sizeof(PrimToken));
|
||||
|
||||
if (eqFilter) {
|
||||
bool gotIt = (eqFilter->find(string((char *) sigptr.data, sigptr.len))
|
||||
!= eqFilter->end());
|
||||
// MCOL-1246 Trim whitespace before match
|
||||
string strData((char*)sigptr.data, sigptr.len);
|
||||
boost::trim_right(strData);
|
||||
bool gotIt = eqFilter->find(strData) != eqFilter->end();
|
||||
if ((gotIt && eqOp == COMPARE_EQ) || (!gotIt && eqOp == COMPARE_NE))
|
||||
goto store;
|
||||
goto no_store;
|
||||
|
Reference in New Issue
Block a user