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 2020/09/01 12:57:32 UTC

[GitHub] [incubator-doris] HappenLee opened a new issue #4501: Support where clause in show resource

HappenLee opened a new issue #4501:
URL: https://github.com/apache/incubator-doris/issues/4501


   **Is your feature request related to a problem? Please describe.**
   Now,we can use ```show resources``` to show all resource in doris
   ```
   | Name            | ResourceType | Key                                                 | Value                                                                                    |
   +-----------------+--------------+-----------------------------------------------------+------------------------------------------------------------------------------------------+
   | yarnbaidu2      | spark        | spark.master                                        | yarn                                                                                     |
   | yarnbaidu2      | spark        | spark.yarn.stage.dir                                | /xuyang                                     |
   | yarnbaidu2      | spark        | spark.yarn.dist.archives                            | archives/spark-opensource-2.4.5.zip |
   | yarnbaidu2      | spark        | spark.hadoop.yarn.resourcemanager.address           |                                                  |
   | yarnbaidu2      | spark        | spark.submit.deployMode                             | cluster                                                                                  |
   | yarnbaidu2      | spark        | spark.hadoop.fs.defaultFS                           |                                                  |
   | yarnbaidu2      | spark        | working_dir                                         | /user/xuyang/etl                                 |
   | yarnbaidu2      | spark        | broker                                              | apache_doris                                                                             |
   ``` 
   
   if there are many resource, it is difficult to find useful infomation of resource, so we need support `where clause` in `show 
   resource`
   
   the grammer like this:
   ```
   Grammar
   
       SHOW RESOURCES
       [
           WHERE 
           [NAME [ = "your_resource_name" | LIKE "name_matcher"]]
           [RESOURCETYPE = ["SPARK"]]
       ]
       [ORDER BY ...]
       [LIMIT limit][OFFSET offset];
       
   Explain:
       1) If use NAME LIKE, the name of resource is matched to show.
       2) If use NAME =, the specified name is exactly matched.
       3) RESOURCETYPE is specified, the corresponding rerouce type is matched.
       4) Use ORDER BY to sort any combination of columns.
       5) If LIMIT is specified, limit matching records are displayed. Otherwise, it is all displayed.
       6) If OFFSET is specified, the query results are displayed starting with the offset offset. The offset is 0 by default.
   ```
   **Describe the solution you'd like**
   change the `showresourcestmt` to support where, limit, order by clause.
   
   
   


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



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


[GitHub] [incubator-doris] morningman closed issue #4501: Support where clause in show resource

Posted by GitBox <gi...@apache.org>.
morningman closed issue #4501:
URL: https://github.com/apache/incubator-doris/issues/4501


   


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



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