I tested it myself, and it does exist problem. I need time to analyze it.

BTW, why do you need to get the row count of the materialized view? Or is
it possible to bypass it in other ways?

Ling Miao

ling miao <lingm...@apache.org> 于2022年3月31日周四 11:03写道:

> I will reproduce this problem
>
> Ling Miao
>
> tschüss <sinyo.w...@foxmail.com> 于2022年3月30日周三 19:58写道:
>
>> Dear Emmy,
>>
>> 冒昧打扰到您,
>> 我们团队在使用Doris 0.15的时候遇到了这样的问题:
>> 一个场景需要统计"a表"中的一个物化视图数据集的条数,我们将物化视图SQL作为子查询,外层SQL在count(*)计算记录条数的时候,发现走了全表扫描,不会走物化视图,尝试了
>> "[]" 和 "/** */"这类hint都无效,请问有没有办法让子查询的物化视图生效呢?
>>
>> 下面github链接是问题明细描述:
>> https://github.com/apache/incubator-doris/issues/6640
>>
>> 望您不吝赐教!
>> 非常感谢!
>>
>

Reply via email to