1.概述
上一篇文章:【Doris】Doris 数据划分
Doris 的数据模型主要分为3类:Aggregate、Uniq、Duplicatef
2. Aggregate 模型
2.1 概述
表中的列按照是否设置了 AggregationType,分 Key(维度列)和 Value(指标列)。没有设置AggregationType 的称为 Key,设置了 AggregationType 的称为 Value。
当我们导入数据时,对于 Key 烈相同的行会聚合成一行,而 Value 烈按照设置的AggregationType 进行聚合。
AggregationType 目前有以下四种聚合方式:
SUM:求和,多行的 Value 进行累加。