You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2019/12/27 07:09:14 UTC

[GitHub] [incubator-doris] xy720 edited a comment on issue #2456: support alter view & rename view

xy720 edited a comment on issue #2456: support alter view & rename view
URL: https://github.com/apache/incubator-doris/issues/2456#issuecomment-569207561
 
 
   In Doris, the concept of view is logical. We don't store view as an concrete entity physically,
   In fact, what we store is just an SQL statement. Every time a user queries the view, we will take this SQL statement out of the metadata and re-parse, re-call the analyze method, and finally get the result, which is not much difference from the ordinary query.
   Therefore, the process of alter view is to replace the stored SQL statement and update the schema structure of view.
   
   在Doris里面,view的概念是逻辑上的,我们不会将view作为实体存在物理存储上,
   实际上,我们存储的只是一条sql语句,每一次用户去查询view的时候,我们都会从元数据中取出这条sql语句,重新解析,调用analyze方法,最终得到结果,和普通的查询区别不大。
   因此,Alter view的过程,就是去替换这一条被存储的sql语句,并更新view的schema结构。

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org