You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-1822 add LONG DOUBLE support
This commit is contained in:
@ -702,6 +702,9 @@ void Row::initToNull()
|
||||
*((uint64_t*) &data[offsets[i]]) = joblist::DOUBLENULL;
|
||||
break;
|
||||
|
||||
case CalpontSystemCatalog::LONGDOUBLE:
|
||||
*((long double*) &data[offsets[i]]) = joblist::LONGDOUBLENULL;
|
||||
|
||||
case CalpontSystemCatalog::DATETIME:
|
||||
*((uint64_t*) &data[offsets[i]]) = joblist::DATETIMENULL;
|
||||
break;
|
||||
@ -804,13 +807,6 @@ void Row::initToNull()
|
||||
*((uint64_t*) &data[offsets[i]]) = joblist::UBIGINTNULL;
|
||||
break;
|
||||
|
||||
case CalpontSystemCatalog::LONGDOUBLE:
|
||||
{
|
||||
// no NULL value for long double yet, this is a nan.
|
||||
memset(&data[offsets[i]], 0xFF, getColumnWidth(i));
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
ostringstream os;
|
||||
os << "Row::initToNull(): got bad column type (" << types[i] <<
|
||||
@ -956,7 +952,7 @@ bool Row::isNullValue(uint32_t colIndex) const
|
||||
return (*((uint64_t*) &data[offsets[colIndex]]) == joblist::UBIGINTNULL);
|
||||
|
||||
case CalpontSystemCatalog::LONGDOUBLE:
|
||||
// return false; // no NULL value for long double yet
|
||||
return (*((long double*) &data[offsets[colIndex]]) == joblist::LONGDOUBLENULL);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user