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";<[email protected]>;
????????: 2016??11??13??(??????) ????11:47
??????: "dev"<[email protected]>; 

????: 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;
  }
}

Reply via email to