Add money_format function (#1064)

This commit is contained in:
kangkaisen
2019-04-29 18:31:24 +08:00
committed by ZHAO Chun
parent 9a570af9a3
commit b2a022b348
9 changed files with 372 additions and 99 deletions

View File

@ -172,6 +172,9 @@ public:
doris_udf::FunctionContext* ctx, int num_args, const doris_udf::DecimalV2Val* val);
static doris_udf::DecimalV2Val greatest(
doris_udf::FunctionContext* ctx, int num_args, const doris_udf::DecimalV2Val* val);
static double my_double_round(double value, int64_t dec, bool dec_unsigned, bool truncate);
private:
static const int32_t MIN_BASE = 2;
static const int32_t MAX_BASE = 36;