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-4620 Add charset to various RowGroup initializers
Specifically to operator+=
This commit is contained in:
@ -1253,6 +1253,8 @@ RowGroup::RowGroup() : columnCount(0), data(NULL), rgData(NULL), strings(NULL),
|
|||||||
oids.reserve(10);
|
oids.reserve(10);
|
||||||
keys.reserve(10);
|
keys.reserve(10);
|
||||||
types.reserve(10);
|
types.reserve(10);
|
||||||
|
charsetNumbers.reserve(10);
|
||||||
|
charsets.reserve(10);
|
||||||
scale.reserve(10);
|
scale.reserve(10);
|
||||||
precision.reserve(10);
|
precision.reserve(10);
|
||||||
}
|
}
|
||||||
@ -1644,6 +1646,8 @@ RowGroup& RowGroup::operator+=(const RowGroup& rhs)
|
|||||||
oids.insert(oids.end(), rhs.oids.begin(), rhs.oids.end());
|
oids.insert(oids.end(), rhs.oids.begin(), rhs.oids.end());
|
||||||
keys.insert(keys.end(), rhs.keys.begin(), rhs.keys.end());
|
keys.insert(keys.end(), rhs.keys.begin(), rhs.keys.end());
|
||||||
types.insert(types.end(), rhs.types.begin(), rhs.types.end());
|
types.insert(types.end(), rhs.types.begin(), rhs.types.end());
|
||||||
|
charsetNumbers.insert(charsetNumbers.end(), rhs.charsetNumbers.begin(), rhs.charsetNumbers.end());
|
||||||
|
charsets.insert(charsets.end(), rhs.charsets.begin(), rhs.charsets.end());
|
||||||
scale.insert(scale.end(), rhs.scale.begin(), rhs.scale.end());
|
scale.insert(scale.end(), rhs.scale.begin(), rhs.scale.end());
|
||||||
precision.insert(precision.end(), rhs.precision.begin(), rhs.precision.end());
|
precision.insert(precision.end(), rhs.precision.begin(), rhs.precision.end());
|
||||||
colWidths.insert(colWidths.end(), rhs.colWidths.begin(), rhs.colWidths.end());
|
colWidths.insert(colWidths.end(), rhs.colWidths.begin(), rhs.colWidths.end());
|
||||||
@ -1894,6 +1898,8 @@ RowGroup RowGroup::truncate(uint32_t cols)
|
|||||||
ret.oids.resize(cols);
|
ret.oids.resize(cols);
|
||||||
ret.keys.resize(cols);
|
ret.keys.resize(cols);
|
||||||
ret.types.resize(cols);
|
ret.types.resize(cols);
|
||||||
|
ret.charsetNumbers.resize(cols);
|
||||||
|
ret.charsets.resize(cols);
|
||||||
ret.scale.resize(cols);
|
ret.scale.resize(cols);
|
||||||
ret.precision.resize(cols);
|
ret.precision.resize(cols);
|
||||||
ret.forceInline.reset(new bool[cols]);
|
ret.forceInline.reset(new bool[cols]);
|
||||||
|
Reference in New Issue
Block a user