doris版本 2.0.14
查询语句与建物化视图语句一样,但没有命中物化视图 ,请教下可能是什么原因呢。表里有数据
explain SELECT ads_rev_vip_abtest_order_unbind_di
.dt
AS d0
, ads_rev_vip_abtest_order_unbind_di
.exp_name
AS d1
, ads_rev_vip_abtest_order_unbind_di
.bucket_name
AS d2
, SUM(ads_rev_vip_abtest_order_unbind_di
.order_cnt
) AS m0
, SUM((CASE WHEN (ads_rev_vip_abtest_order_unbind_di
.unbind_0d_cnt
> 0) THEN ads_rev_vip_abtest_order_unbind_di
.unbind_0d_cnt
ELSE 0 END)) AS m1
, SUM((CASE WHEN (ads_rev_vip_abtest_order_unbind_di
.order_cnt
> 0) THEN ads_rev_vip_abtest_order_unbind_di
.order_cnt
ELSE 0 END)) AS m2
, SUM((CASE WHEN (ads_rev_vip_abtest_order_unbind_di
.unbind_1d_cnt
> 0) THEN ads_rev_vip_abtest_order_unbind_di
.unbind_1d_cnt
ELSE 0 END)) AS m3
, SUM(ads_rev_vip_abtest_order_unbind_di
.unbind_0d_cnt
) AS m4
, SUM(ads_rev_vip_abtest_order_unbind_di
.unbind_1d_cnt
) AS m5
, SUM(ads_rev_vip_abtest_order_unbind_di
.unbind_7d_cnt
) AS m6
FROM music_new_dm
.ads_rev_vip_abtest_order_unbind_di
WHERE (((CASE WHEN (ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_unit_price
> 0) THEN FLOOR(ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_unit_price
) ELSE CEIL(ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_unit_price
) END) IS NOT NULL) AND ((CASE WHEN (ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_month_cnt
> 0) THEN FLOOR(ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_month_cnt
) ELSE CEIL(ads_rev_vip_abtest_order_unbind_di
.last_12_month_order_month_cnt
) END) IS NOT NULL)) GROUP BY ads_rev_vip_abtest_order_unbind_di
.dt
, ads_rev_vip_abtest_order_unbind_di
.exp_name
, ads_rev_vip_abtest_order_unbind_di
.bucket_name
;
表结构