dataalive opened a new issue, #9196:
URL: https://github.com/apache/incubator-doris/issues/9196

   ### 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.
   
   
   ### Description
   
   after we create  materialized view , we can only use ```desc table_name all 
``` to show all the materialized view which have been created. 
   ```
   MySQL [test]> create table sales_records(record_id int, seller_id int, 
store_id int, sale_date date, sale_amt bigint) distributed by hash(record_id) 
properties("replication_num" = "1");
   Query OK, 0 rows affected (0.00 sec)
   
   MySQL [test]> create materialized view store_amt as select store_id, 
sum(sale_amt) from sales_records group by store_id; 
   Query OK, 0 rows affected (0.00 sec)
   
   MySQL [test]> desc  sales_records all;
   
+---------------+---------------+-----------+--------+------+-------+---------+-------+---------+
   | IndexName     | IndexKeysType | Field     | Type   | Null | Key   | 
Default | Extra | Visible |
   
+---------------+---------------+-----------+--------+------+-------+---------+-------+---------+
   | sales_records | DUP_KEYS      | record_id | INT    | Yes  | true  | NULL   
 |       | true    |
   |               |               | seller_id | INT    | Yes  | true  | NULL   
 |       | true    |
   |               |               | store_id  | INT    | Yes  | true  | NULL   
 |       | true    |
   |               |               | sale_date | DATE   | Yes  | false | NULL   
 | NONE  | true    |
   |               |               | sale_amt  | BIGINT | Yes  | false | NULL   
 | NONE  | true    |
   |               |               |           |        |      |       |        
 |       |         |
   | store_amt     | AGG_KEYS      | store_id  | INT    | Yes  | true  | NULL   
 |       | true    |
   |               |               | sale_amt  | BIGINT | Yes  | false | NULL   
 | SUM   | true    |
   
+---------------+---------------+-----------+--------+------+-------+---------+-------+---------+
   8 rows in set (0.00 sec)
   
   ```
   but sometimes we need to know the create materialized view sql like ```show 
create table table_name ``` shows.
   
   so the new feature should react like 
   ```
   show create materialized view store_amt;
   ```
   and the result is the complete sql.
   
   
   
   
   ### Use case
   
   _No response_
   
   ### Related issues
   
   _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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to