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-5438 COUNT() in math causes SEGV
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
// Author: Patrick LeBlanc <pleblanc@calpont.com>, (C) 2008
|
||||
//
|
||||
|
||||
//#define NDEBUG
|
||||
// #define NDEBUG
|
||||
#include <sstream>
|
||||
#include <iterator>
|
||||
using namespace std;
|
||||
@ -682,7 +682,7 @@ void Row::initToNull()
|
||||
break;
|
||||
|
||||
case CalpontSystemCatalog::BIGINT:
|
||||
if (precision[i] != 9999)
|
||||
if (precision[i] != MagicPrecisionForCountAgg)
|
||||
*((uint64_t*)&data[offsets[i]]) = joblist::BIGINTNULL;
|
||||
else // work around for count() in outer join result.
|
||||
*((uint64_t*)&data[offsets[i]]) = 0;
|
||||
@ -1751,4 +1751,3 @@ RowGroup RowGroup::truncate(uint32_t cols)
|
||||
}
|
||||
|
||||
} // namespace rowgroup
|
||||
|
||||
|
Reference in New Issue
Block a user