1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Implement SPACE() and QUOTE() functions.

This commit is contained in:
Gagan Goel
2019-11-28 02:11:22 +00:00
parent a9717ad49d
commit feaa9cb659
5 changed files with 192 additions and 0 deletions

View File

@ -848,6 +848,40 @@ public:
execplan::CalpontSystemCatalog::ColType& op_ct);
};
/** @brief Func_space class
*/
class Func_space : public Func_Str
{
public:
Func_space() : Func_Str("space") {}
virtual ~Func_space() {}
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);
};
/** @brief Func_quote class
*/
class Func_quote : public Func_Str
{
public:
Func_quote() : Func_Str("quote") {}
virtual ~Func_quote() {}
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);
};
}
#endif