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/06/08 06:45:23 UTC

[GitHub] [incubator-doris] SaintBacchus opened a new issue, #10010: [Feature] [multi-catalog]DataSource operation syntax

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

   ### 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
   
   Impl the dataSource operation syntax
   ## Create
   ```sql
   CREATE EXTERNAL DATASOURCE my_datasource 
   properties("k" = "v", ...);
   ```
   hms example:
   ```sql
   CREATE EXTERNAL DATASOURCE hms_datasource 
   properties(
     "type" = "hms", 
     "hive.metastore.uris"="thrift://localhost:9083"
   );
   ```
   
   mysql example:
   ```sql
   CREATE EXTERNAL DATASOURCE mysql_datasource 
   properties(
     "type" = "mysql",  
     "mysql.host"="localhost", 
     "mysql.host"="3306",
     "mysql.username"="test_user",
     "mysql.password"="test_password"
   );
   ```
   
   > The propertiy of "type" is necessary for all the external DataSource. And other properties will be different.
   
   ## DROP
   ```sql
   DROP EXTERNAL DATASOURCE my_datasource;
   ```
   
   ## ALTER
   ```
   ALTER EXTERNAL DATASOURCE my_datasource RENAME your_datasource;
   ALTER EXTERNAL DATASOURCE my_datasource SET ("k" = "v", ...);
   ``` 
   ## SHOW
   ```
   -- get list of datasoruces, return type (name, typeName)
   SHOW DATASOURCES;
   -- get the specific datasource, return type(name, typeName, propertiesString)
   SHOW DATASOURCE my_datasource;
   ``` 
   
   ### Use case
   
   _No response_
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] 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] [doris] morningman closed issue #10010: [Feature] [multi-catalog]Catalog operation syntax

Posted by GitBox <gi...@apache.org>.
morningman closed issue #10010: [Feature] [multi-catalog]Catalog operation syntax
URL: https://github.com/apache/doris/issues/10010


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