leaves12138 opened a new pull request, #2368:
URL: https://github.com/apache/incubator-paimon/pull/2368

   ### Purpose
   
   Introduce procedure to migrate table from hive to paimon 
   Or
   Add file from hive to paimon.
   
   We should use `FlinkGenericCatalog` to migrate table.
   
   Example:
   ```sql
   --Migrate
   CREATE CATALOG PAIMON_GE WITH ('type'='paimon-generic', 'hive-conf-dir' = 
'xxx');
   USING CATALOG PAIMON_GE;
   CALL migrate_table('default.hivetable');
   ```
   ```sql
   --Add file
   CREATE CATALOG PAIMON_GE WITH ('type'='paimon-generic', 'hive-conf-dir' = 
'xxx');
   USING CATALOG PAIMON_GE;
   CALL add_file('hivetable', 'paimontable', false, false);
   ```
   
   ### Tests
   
   <!-- List UT and IT cases to verify this change -->
   
   IT case added.
   
   <!-- Does this change affect API or storage format -->
   
   ### Documentation
   
   I am writing for this. Come up the pull request first.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to