seawinde commented on code in PR #39265: URL: https://github.com/apache/doris/pull/39265#discussion_r1719556242
########## regression-test/suites/nereids_syntax_p0/mv/ut/distinctQuery.groovy: ########## @@ -45,27 +45,9 @@ suite ("distinctQuery") { sql """insert into distinctQuery values("2020-01-01",2,"a",1,1,1);""" sql "analyze table distinctQuery with sync;" - sql """set enable_stats=false;""" + + mv_rewrite_success("select distinct deptno from distinctQuery;", "distinctQuery_mv") - explain { - sql("select distinct deptno from distinctQuery;") - contains "(distinctQuery_mv)" - } - - explain { - sql("select deptno, count(distinct empid) from distinctQuery group by deptno;") - contains "(distinctQuery_mv2)" - } - - sql """set enable_stats=true;""" - Review Comment: the same with avove -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org