MoonBottle opened a new issue, #33541:
URL: https://github.com/apache/doris/issues/33541

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/doris/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Version
   
   2.1.1
   
   ### What's Wrong?
   
   使用官方文档上的 demo 创建物化视图报错
   
https://doris.apache.org/zh-CN/docs/query-acceleration/async-materialized-view/#%E6%B3%A8%E6%84%8F%E4%BA%8B%E9%A1%B9
   
   ```
   CREATE MATERIALIZED VIEW mv1 
           BUILD DEFERRED REFRESH AUTO ON MANUAL
           partition by(l_shipdate)
           DISTRIBUTED BY RANDOM BUCKETS 2
           PROPERTIES ('replication_num' = '1') 
           AS 
           select l_shipdate, o_orderdate, l_partkey, l_suppkey, 
sum(o_totalprice) as sum_total
               from lineitem
               left join orders on lineitem.l_orderkey = orders.o_orderkey and 
l_shipdate = o_orderdate
               group by
               l_shipdate,
               o_orderdate,
               l_partkey,
               l_suppkey;
   ```
   
![image](https://github.com/apache/doris/assets/12904505/2faf411e-a943-43be-a2f9-50e5f1a401cd)
   
   Execution failed: Error Failed to execute sql: 
org.apache.doris.common.AnalysisException: errCode = 2, detailMessage = Syntax 
error in line 2: BUILD DEFERRED REFRESH AUTO ON MANUAL ^ Encountered: BUILD 
Expected
   
   
   ### What You Expected?
   
   能正确创建异步物化视图
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.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

Reply via email to