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

1. Implement bit_count() distributed function.

2. Handle hexadecimal string literals in buildReturnedColumn().
This commit is contained in:
Gagan Goel
2019-11-21 15:32:29 +00:00
parent 6b916675d5
commit 2e16fe674c
4 changed files with 71 additions and 0 deletions

View File

@ -365,6 +365,23 @@ public:
};
/** @brief Func_bit_count class
*/
class Func_bit_count : public Func_Int
{
public:
Func_bit_count() : Func_Int("bit_count") {}
virtual ~Func_bit_count() {}
execplan::CalpontSystemCatalog::ColType operationType(FunctionParm& fp, execplan::CalpontSystemCatalog::ColType& resultType);
int64_t getIntVal(rowgroup::Row& row,
FunctionParm& fp,
bool& isNull,
execplan::CalpontSystemCatalog::ColType& op_ct);
};
/** @brief Func_hour class
*/
class Func_hour : public Func_Int