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 2022/04/24 10:59:22 UTC

[GitHub] [incubator-doris] dataalive opened a new issue, #9196: [Feature] Support show create MATERIALIZED VIEW sql

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: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [incubator-doris] hf200012 closed issue #9196: [Feature] Support show create MATERIALIZED VIEW sql

Posted by GitBox <gi...@apache.org>.
hf200012 closed issue #9196: [Feature] Support show create MATERIALIZED VIEW sql 
URL: https://github.com/apache/incubator-doris/issues/9196


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [incubator-doris] dataalive commented on issue #9196: [Feature] Support show create MATERIALIZED VIEW sql

Posted by GitBox <gi...@apache.org>.
dataalive commented on issue #9196:
URL: https://github.com/apache/incubator-doris/issues/9196#issuecomment-1117000035

   > 
   
   OK, Great . I'm not working on this, @morningman pls assign to @stalary 


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [incubator-doris] stalary commented on issue #9196: [Feature] Support show create MATERIALIZED VIEW sql

Posted by GitBox <gi...@apache.org>.
stalary commented on issue #9196:
URL: https://github.com/apache/incubator-doris/issues/9196#issuecomment-1109763604

   Are you working on it? If not, assign it to me


-- 
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-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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