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-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::TEXT)
|
||||
{
|
||||
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
|
||||
keyLength += 8;
|
||||
// Set bSignedUnsignedJoin if one or more join columns are signed to unsigned compares.
|
||||
|
Reference in New Issue
Block a user