You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +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:
@@ -325,8 +325,7 @@ void ExpressionStep::populateColumnInfo(ReturnedColumn* rc, JobInfo& jobInfo)
|
||||
{
|
||||
// As of bug3695, make sure varbinary is not used in function expression.
|
||||
if ((rc->resultType().colDataType == CalpontSystemCatalog::VARBINARY ||
|
||||
rc->resultType().colDataType == CalpontSystemCatalog::BLOB ||
|
||||
rc->resultType().colDataType == CalpontSystemCatalog::TEXT) && !fVarBinOK)
|
||||
rc->resultType().colDataType == CalpontSystemCatalog::BLOB) && !fVarBinOK)
|
||||
throw runtime_error("VARBINARY/BLOB in filter or function is not supported.");
|
||||
|
||||
SimpleColumn* sc = dynamic_cast<SimpleColumn*>(rc);
|
||||
@@ -347,8 +346,7 @@ void ExpressionStep::populateColumnInfo(SimpleColumn* sc, JobInfo& jobInfo)
|
||||
{
|
||||
// As of bug3695, make sure varbinary is not used in function expression.
|
||||
if ((sc->resultType().colDataType == CalpontSystemCatalog::VARBINARY ||
|
||||
sc->resultType().colDataType == CalpontSystemCatalog::BLOB ||
|
||||
sc->resultType().colDataType == CalpontSystemCatalog::TEXT) && !fVarBinOK)
|
||||
sc->resultType().colDataType == CalpontSystemCatalog::BLOB) && !fVarBinOK)
|
||||
throw runtime_error ("VARBINARY/BLOB in filter or function is not supported.");
|
||||
|
||||
CalpontSystemCatalog::OID tblOid = joblist::tableOid(sc, jobInfo.csc);
|
||||
@@ -414,8 +412,7 @@ void ExpressionStep::populateColumnInfo(WindowFunctionColumn* wc, JobInfo& jobIn
|
||||
{
|
||||
// As of bug3695, make sure varbinary is not used in function expression.
|
||||
if ((wc->resultType().colDataType == CalpontSystemCatalog::VARBINARY ||
|
||||
wc->resultType().colDataType == CalpontSystemCatalog::BLOB ||
|
||||
wc->resultType().colDataType == CalpontSystemCatalog::TEXT) && !fVarBinOK)
|
||||
wc->resultType().colDataType == CalpontSystemCatalog::BLOB) && !fVarBinOK)
|
||||
throw runtime_error("VARBINARY/BLOB in filter or function is not supported.");
|
||||
|
||||
// This is for window function in IN/EXISTS sub-query.
|
||||
@@ -441,8 +438,7 @@ void ExpressionStep::populateColumnInfo(AggregateColumn* ac, JobInfo& jobInfo)
|
||||
{
|
||||
// As of bug3695, make sure varbinary is not used in function expression.
|
||||
if ((ac->resultType().colDataType == CalpontSystemCatalog::VARBINARY ||
|
||||
ac->resultType().colDataType == CalpontSystemCatalog::BLOB ||
|
||||
ac->resultType().colDataType == CalpontSystemCatalog::TEXT) && !fVarBinOK)
|
||||
ac->resultType().colDataType == CalpontSystemCatalog::BLOB) && !fVarBinOK)
|
||||
throw runtime_error("VARBINARY/BLOB in filter or function is not supported.");
|
||||
|
||||
// This is for aggregate function in IN/EXISTS sub-query.
|
||||
|
Reference in New Issue
Block a user