层次结构缩减在Kylin中如何工作

时间:2019-06-22 02:54:17

标签: kylin

下面的图片说明了层次结构维度缩减的效果。

将长方体的数量从2 ^ N减少到N + 1

enter image description here

通过减少维度,我想知道以下查询如何给出正确答案?

  1. 选择B,从X组中按B计数(1)
  2. 选择C,从X组中按C计数(1)
  3. 从X组中按B,C选择B,C,count(1)

1 个答案:

答案 0 :(得分:0)

看起来我找到了答案:=>等于

group by A,B => group by A,B
group by B,C => group by C => group by A,B,C
group by A,C => group by C => group by A,B,C
group by A => group by A
group by B => group by A,B
group by C => group by A,B,C
group by B,C => group by A,B,C