You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-12-24 14:20:59 +03:00
MCOL-3536 Collation
This commit is contained in:
@@ -1061,7 +1061,7 @@ bool Row::equals(const Row& r2, const std::vector<uint32_t>& keyCols) const
|
||||
const uint32_t& col = keyCols[i];
|
||||
|
||||
if (UNLIKELY(getColType(col) == execplan::CalpontSystemCatalog::VARCHAR ||
|
||||
getColType(col) == execplan::CalpontSystemCatalog::CHAR ||
|
||||
(getColType(col) == execplan::CalpontSystemCatalog::CHAR && (colWidths[col] > 1)) ||
|
||||
getColType(col) == execplan::CalpontSystemCatalog::TEXT))
|
||||
{
|
||||
CHARSET_INFO* cs = getCharset(col);
|
||||
@@ -1112,7 +1112,7 @@ bool Row::equals(const Row& r2, uint32_t lastCol) const
|
||||
for (uint32_t col = 0; col <= lastCol; col++)
|
||||
{
|
||||
if (UNLIKELY(getColType(col) == execplan::CalpontSystemCatalog::VARCHAR ||
|
||||
getColType(col) == execplan::CalpontSystemCatalog::CHAR ||
|
||||
(getColType(col) == execplan::CalpontSystemCatalog::CHAR && (colWidths[col] > 1)) ||
|
||||
getColType(col) == execplan::CalpontSystemCatalog::TEXT))
|
||||
{
|
||||
CHARSET_INFO* cs = getCharset(col);
|
||||
@@ -1210,12 +1210,11 @@ RowGroup::RowGroup(uint32_t colCount,
|
||||
stOffsets[i + 1] = stOffsets[i] + colWidths[i];
|
||||
|
||||
execplan::CalpontSystemCatalog::ColDataType type = types[i];
|
||||
if (type == execplan::CalpontSystemCatalog::CHAR ||
|
||||
if ((type == execplan::CalpontSystemCatalog::CHAR && (colWidths[i] > 1)) ||
|
||||
type == execplan::CalpontSystemCatalog::VARCHAR ||
|
||||
type == execplan::CalpontSystemCatalog::TEXT)
|
||||
{
|
||||
hasStrings = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user