wecharyu opened a new pull request, #5255:
URL: https://github.com/apache/hive/pull/5255

   ### What changes were proposed in this pull request?
   In `HMSHandler#drop_database_core`, it needs to collect all partition paths 
that were not in the subdirectory of the table path, but now it only fetch the 
last batch of paths.
   1. Collect all customized partition paths while dropping tables.
   2. Add a unit test to cover this case.
   
   ### Why are the changes needed?
   Fix the bug, otherwise some partition paths that were not in the 
subdirectory of table path would not be deleted correctly.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   ### Is the change a dependency upgrade?
   No.
   
   
   ### How was this patch tested?
   Add a unit test:
   ```bash
   mvn test -Dtest.groups= 
-Dtest=org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore#testDropDatabase
 -pl :hive-standalone-metastore-server
   ```
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to