dujl opened a new pull request, #9559:
URL: https://github.com/apache/incubator-doris/pull/9559

   # Proposed changes
   
   
   Issue Number: close https://github.com/apache/incubator-doris/issues/9557
   
   Support create hudi external table in Doris.
   
   This is the first pr to support hudi external table.
   
   ## Feature Summary:
   
   ### The propose of the pr is:
   support create hudi table
   support show create table for hudi table
   
   ### Design
   1. create hudi table without schema(recommanded)
   ```
       CREATE [EXTERNAL] TABLE table_name
       ENGINE = HUDI
       [COMMENT "comment"]
       PROPERTIES (
       "hudi.database" = "hudi_db_in_hive_metastore",
       "hudi.table" = "hudi_table_in_hive_metastore",
       "hudi.hive.metastore.uris" = "thrift://127.0.0.1:9083"
       );
   ```
   
   2. create hudi table with schema
   ```
       CREATE [EXTERNAL] TABLE table_name
       [(column_definition1[, column_definition2, ...])]
       ENGINE = HUDI
       [COMMENT "comment"]
       PROPERTIES (
       "hudi.database" = "hudi_db_in_hive_metastore",
       "hudi.table" = "hudi_table_in_hive_metastore",
       "hudi.hive.metastore.uris" = "thrift://127.0.0.1:9083"
       );
   ```
   When create hudi table with schema, the columns must exist in corresponding 
table in hive metastore.
   
   3. show create table
   
   ```
   
   MySQL [db_demo]> show create table t_hudi;
   
+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | Table  | Create Table                                                      
                                                                                
                                                                                
                                            |
   
+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   | t_hudi | CREATE TABLE `t_hudi` (
   
   ) ENGINE=HUDI
   COMMENT "HUDI"
   PROPERTIES (
   "hudi.database" = "hudi_db",
   "hudi.table" = "hudi_ctas_cow_pt_tbl",
   "hudi.hive.metastore.uris"  =  "thrift://10.248.178.76:9083"
   ) |
   
+--------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
   1 row in set (0.01 sec)
   ```
   
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (No)
   2. Has unit tests been added: (Yes)
   6. Has document been added or modified: (Yes)
   7. Does it need to update dependencies: (Yes)
   8. 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