@ -88,7 +88,7 @@ AGGREGATE KEY(`user_id`, `date`, `timestamp`, `city`, `age`, `sex`)
|
||||
|
||||
表中的列按照是否设置了 `AggregationType`,分为 Key (维度列) 和 Value(指标列)。没有设置 `AggregationType` 的,如 `user_id`、`date`、`age` ... 等称为 **Key**,而设置了 `AggregationType` 的称为 **Value**。
|
||||
|
||||
当我们导入数据时,对于 Key 列相同的行和聚合成一行,而 Value 列会按照设置的 `AggregationType` 进行聚合。 `AggregationType` 目前有以下四种聚合方式:
|
||||
当我们导入数据时,对于 Key 列相同的行会聚合成一行,而 Value 列会按照设置的 `AggregationType` 进行聚合。 `AggregationType` 目前有以下四种聚合方式:
|
||||
|
||||
1. SUM:求和,多行的 Value 进行累加。
|
||||
2. REPLACE:替代,下一批数据中的 Value 会替换之前导入过的行中的 Value。
|
||||
|
||||
Reference in New Issue
Block a user