1
0
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:
Roman Nozdrin
2023-03-02 18:37:09 +00:00
parent a0cb59f5bc
commit 786b9da5b0
12 changed files with 85 additions and 90 deletions

View File

@ -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