1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

regexp_replace, regexp_substr and regexp_instr functions

This commit is contained in:
Leonid Fedorov
2024-03-06 15:51:43 +00:00
parent e2e694b323
commit 0c3d4004bf
3 changed files with 177 additions and 8 deletions

View File

@ -470,6 +470,61 @@ class Func_replace : public Func_Str
execplan::CalpontSystemCatalog::ColType& op_ct);
};
class Func_regexp_replace : public Func_Str
{
public:
Func_regexp_replace() : Func_Str("regexp_replace")
{
}
virtual ~Func_regexp_replace()
{
}
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp,
execplan::CalpontSystemCatalog::ColType& resultType);
std::string getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
};
class Func_regexp_instr : public Func_Str
{
public:
Func_regexp_instr() : Func_Str("regexp_instr")
{
}
virtual ~Func_regexp_instr()
{
}
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp,
execplan::CalpontSystemCatalog::ColType& resultType);
std::string getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
};
class Func_regexp_substr : public Func_Str
{
public:
Func_regexp_substr() : Func_Str("regexp_substr")
{
}
virtual ~Func_regexp_substr()
{
}
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp,
execplan::CalpontSystemCatalog::ColType& resultType);
std::string getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
};
class Func_replace_oracle : public Func_Str
{
public: