hudi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [incubator-hudi] prashantwason opened a new pull request #1416: [HUDI-717] Fixed usage of HiveDriver for DDL statements for Hive 2.x
Date Tue, 17 Mar 2020 19:40:31 GMT
prashantwason opened a new pull request #1416: [HUDI-717] Fixed usage of HiveDriver for DDL
statements for Hive 2.x
URL: https://github.com/apache/incubator-hudi/pull/1416
 
 
   ## What is the purpose of the pull request
   
   When using the HiveDriver mode in HudiHiveClient, Hive 2.x DDL operations like ALTER may
fail. This is because Hive 2.x doesn't like `db`.`table_name` for operations.
   
   Commit 129e43364 used the first way to fix this only for ALTER PARTITION statement. This
is a comprehensive fix which fixes for all statements.
   
   ## Brief change log
   
   When using the HiveDriver mode in HudiHiveClient, Hive 2.x DDL operations like ALTER PARTITION
may fail. This is because Hive 2.x doesn't like `db`.`table_name` for operations.
   
   In this fix, we set the name of the database in the SessionState create for the Driver.
   
   Added a unit test for the fix as well as additional unit tests for HoodieHiveClient.
   
   ## Verify this pull request
   
   This pull request is already covered by existing tests, such as TestHiveSyncTool.java
   Additional unit test cases have been added.
   
   ## Committer checklist
   
    - [ ] Has a corresponding JIRA in PR title & commit
    
    - [ ] Commit message is descriptive of the change
    
    - [ ] CI is green
   
    - [ ] Necessary doc changes done or have another open PR
          
    - [ ] For large changes, please consider breaking it into sub-tasks under an umbrella
JIRA.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message