AshinGau opened a new pull request, #10521:
URL: https://github.com/apache/doris/pull/10521

   ## What is changed
   Get through the previous pull requests that support multi-catalog, and end 
to end to achieve multi-catalog.
   
   ## Usage
   ### Add catalog
   ```
   MySQL [tpch1]> create catalog hive properties('type' = 'hms', 
'hive.metastore.uris' = 'thrift://172.21.16.34:7004');
   
   MySQL [tpch1]> show catalogs;
   +------------------+----------+
   | CatalogName      | Type     |
   +------------------+----------+
   | hive             | hms      |
   | internal_catalog | internal |
   +------------------+----------+
   ```
   ### Switch catalog & Describe hive table
   ```
   MySQL [tpch1]> switch hive;
   Query OK, 0 rows affected (0.00 sec)
   MySQL [tpch1]> show databases;
   +---------------+
   | Database      |
   +---------------+
   | cmy           |
   | db            |
   | default       |
   | tpch1         |
   | tpch100       |
   | tpch1_parquet |
   +---------------+
   MySQL [tpch1]> use tpch1_parquet;
   Database changed
   MySQL [tpch1_parquet]> show tables;
   +-------------------------+
   | Tables_in_tpch1_parquet |
   +-------------------------+
   | customer                |
   | lineitem                |
   | nation                  |
   | orders                  |
   | part                    |
   | partsupp                |
   | region                  |
   | supplier                |
   +-------------------------+
   MySQL [tpch1_parquet]> describe nation;
   +-------------+---------+---------+
   | Field       | Type    | Comment |
   +-------------+---------+---------+
   | n_nationkey | int(11) | NULL    |
   | n_name      | text    | NULL    |
   | n_regionkey | int(11) | NULL    |
   | n_comment   | text    | NULL    |
   +-------------+---------+---------+
   ```
   ### Query
   ```
   MySQL [tpch1_parquet]> select count(*) from nation;
   +----------+
   | count(*) |
   +----------+
   |       25 |
   +----------+
   ```
   
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (No)
   2. Has unit tests been added: (No)
   3. Has document been added or modified: (No)
   4. Does it need to update dependencies: (No)
   5. Are there any changes that cannot be rolled back: (No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   


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

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

Reply via email to