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