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-664 Add function support for TEXT
For the initial BLOB/TEXT pull request we put them in the same bucket as VARBINARY, forcing many functions to be disabled. This patch enables the same TEXT function support as VARCHAR.
This commit is contained in:
@ -122,6 +122,7 @@ int64_t Func_ceil::getIntVal(Row& row,
|
||||
|
||||
case CalpontSystemCatalog::VARCHAR:
|
||||
case CalpontSystemCatalog::CHAR:
|
||||
case CalpontSystemCatalog::TEXT:
|
||||
{
|
||||
const string& str = parm[0]->data()->getStrVal(row, isNull);
|
||||
if (!isNull)
|
||||
@ -197,6 +198,7 @@ uint64_t Func_ceil::getUintVal(Row& row,
|
||||
|
||||
case CalpontSystemCatalog::VARCHAR:
|
||||
case CalpontSystemCatalog::CHAR:
|
||||
case CalpontSystemCatalog::TEXT:
|
||||
{
|
||||
const string& str = parm[0]->data()->getStrVal(row, isNull);
|
||||
if (!isNull)
|
||||
@ -247,7 +249,8 @@ double Func_ceil::getDoubleVal(Row& row,
|
||||
ret = ceil(parm[0]->data()->getDoubleVal(row, isNull));
|
||||
}
|
||||
else if (op_ct.colDataType == CalpontSystemCatalog::VARCHAR ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::CHAR)
|
||||
op_ct.colDataType == CalpontSystemCatalog::CHAR ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::TEXT)
|
||||
{
|
||||
const string& str = parm[0]->data()->getStrVal(row, isNull);
|
||||
if (!isNull)
|
||||
@ -280,7 +283,8 @@ string Func_ceil::getStrVal(Row& row,
|
||||
op_ct.colDataType == CalpontSystemCatalog::FLOAT ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::UFLOAT ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::VARCHAR ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::CHAR)
|
||||
op_ct.colDataType == CalpontSystemCatalog::CHAR ||
|
||||
op_ct.colDataType == CalpontSystemCatalog::TEXT)
|
||||
{
|
||||
snprintf(tmp, 511, "%f", getDoubleVal(row, parm, isNull, op_ct));
|
||||
|
||||
|
Reference in New Issue
Block a user