You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
MCOL-698 Fix joiner for LONGTEXT
It turns out not many machines have 32TB of RAM, so lets try not to allocate that much for a LONGTEXT key join...
This commit is contained in:
@ -112,7 +112,12 @@ TupleJoiner::TupleJoiner(
|
|||||||
smallRG.getColTypes()[smallKeyColumns[i]] == CalpontSystemCatalog::VARCHAR
|
smallRG.getColTypes()[smallKeyColumns[i]] == CalpontSystemCatalog::VARCHAR
|
||||||
||
|
||
|
||||||
smallRG.getColTypes()[smallKeyColumns[i]] == CalpontSystemCatalog::TEXT)
|
smallRG.getColTypes()[smallKeyColumns[i]] == CalpontSystemCatalog::TEXT)
|
||||||
|
{
|
||||||
keyLength += smallRG.getColumnWidth(smallKeyColumns[i]) + 1; // +1 null char
|
keyLength += smallRG.getColumnWidth(smallKeyColumns[i]) + 1; // +1 null char
|
||||||
|
// MCOL-698: if we don't do this LONGTEXT allocates 32TB RAM
|
||||||
|
if (keyLength > 65536)
|
||||||
|
keyLength = 65536;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
keyLength += 8;
|
keyLength += 8;
|
||||||
// Set bSignedUnsignedJoin if one or more join columns are signed to unsigned compares.
|
// Set bSignedUnsignedJoin if one or more join columns are signed to unsigned compares.
|
||||||
|
Reference in New Issue
Block a user