yes,The measure type only support bigint, double, decimal.
------------------ 原始邮件 ------------------
发件人: "Jay";<
[hidden email]>;
发送时间: 2016年11月14日(星期一) 上午10:38
收件人: "dev"<
[hidden email]>;
主题: 回复:Questions about AggType
Hi, Sea
carbon use this aggType to distinguish the measure type, for double "n", decimal 'b', bigint 'l', and maybe ByteArrayValue 'c'.
here, the name aggType maybe a little bit confused, while, this consideration is about supporting aggregation table type in the future,
so, it is a name to compatible.
Reagrds
Jay
------------------ 原始邮件 ------------------
发件人: "Sea";<
[hidden email]>;
发送时间: 2016年11月13日(星期天) 晚上11:47
收件人: "dev"<
[hidden email]>;
主题: Questions about AggType
Hi,all:
I feel a little confused abount AggType, Anyone can explain ?
public static char getAggType(DataType dataType) {
switch (dataType) {
case DECIMAL:
return CarbonCommonConstants.BIG_DECIMAL_MEASURE;
case INT:
case LONG:
return CarbonCommonConstants.BIG_INT_MEASURE;
default:
return CarbonCommonConstants.SUM_COUNT_VALUE_MEASURE;
}
}