zy-kkk opened a new issue, #12759:
URL: https://github.com/apache/doris/issues/12759

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### Version
   
   Doris-1.1.2-rc05
   Doris-trunk-c6c84a278
   
   ### What's Wrong?
   
   I created a view with comment by referring to the official website. However, 
when I run the command `show create table` or `show create view` to view this 
view, the result does not show the comment information
   
   `mysql> CREATE TABLE `test` (
       -> `test` int NULL
       -> ) ENGINE=OLAP
       -> UNIQUE KEY(`test`)
       -> COMMENT 'OLAP'
       -> DISTRIBUTED BY HASH(`test`) BUCKETS 3
       -> PROPERTIES (
       -> "replication_allocation" = "tag.location.default: 1"
       -> );
   Query OK, 0 rows affected (0.08 sec)
   
   mysql> CREATE VIEW test.testview
       -> (
       -> test COMMENT "test"
       -> )
       -> COMMENT "my test view"
       -> AS
       -> SELECT SUM(test) FROM test.test;
   Query OK, 0 rows affected (0.00 sec)
   
   mysql> show create table test.testview;
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   | View     | Create View                                                     
                           | character_set_client | collation_connection |
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   | testview | CREATE VIEW `testview` AS SELECT sum(`test`) AS `test` FROM 
`default_cluster:test`.`test`; | utf8                 | utf8_general_ci      |
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   1 row in set (0.00 sec)
   
   mysql> show create view test.testview;
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   | View     | Create View                                                     
                           | character_set_client | collation_connection |
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   | testview | CREATE VIEW `testview` AS SELECT sum(`test`) AS `test` FROM 
`default_cluster:test`.`test`; | utf8                 | utf8_general_ci      |
   
+----------+--------------------------------------------------------------------------------------------+----------------------+----------------------+
   1 row in set (0.00 sec)`
   
   ### What You Expected?
   
   Comment information of the view can be displayed normally
   
   ### How to Reproduce?
   
   _No response_
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] 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