You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by ling miao <li...@apache.org> on 2022/03/31 03:03:42 UTC

Re: doris物化视图问题求助

I will reproduce this problem

Ling Miao

tschüss <si...@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
>
> 望您不吝赐教!
> 非常感谢!
>

Re: doris物化视图问题求助

Posted by ling miao <li...@apache.org>.
This is indeed a scene where automatic selection is not overridden.
I will arrange students to optimize this function later~

*Or if you want, you can also help us with a PR*

Ling Miao

tschüss <si...@foxmail.com> 于2022年4月11日周一 15:57写道:

> Dear Ling,
>
> 我们另外测试了StarRocks 2.1.3,这个问题被他们优化了。
>
> ------------------ 原始邮件 ------------------
> *发件人:* "ling miao" <li...@apache.org>;
> *发送时间:* 2022年3月31日(星期四) 下午2:44
> *收件人:* "tschüss"<si...@doris.apache.org>;
> *主题:* Re: doris物化视图问题求助
>
> 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 <li...@apache.org> 于2022年3月31日周四 11:03写道:
>
>> I will reproduce this problem
>>
>> Ling Miao
>>
>> tschüss <si...@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
>>>
>>> 望您不吝赐教!
>>> 非常感谢!
>>>
>>

Re: doris物化视图问题求助

Posted by ling miao <li...@apache.org>.
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 <li...@apache.org> 于2022年3月31日周四 11:03写道:

> I will reproduce this problem
>
> Ling Miao
>
> tschüss <si...@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
>>
>> 望您不吝赐教!
>> 非常感谢!
>>
>