ujc714 opened a new pull request #2478:
URL: https://github.com/apache/hive/pull/2478


   ### What changes were proposed in this pull request?
   Use a default directory for MANAGEDLOCATION if it's not assigned in CREATE 
DATABASE query.
   
   ### Why are the changes needed?
   HMS doesn't create MANAGEDLOCATION directory if it's NULL. If we run a CTAS 
query immediately after the CREATE DATABASE query and the staging directory is 
not under the MANAGEDLOCATION directory, the CTAS query will fail in MOVE task.
   
   ### Does this PR introduce _any_ user-facing change?
   No.
   
   
   ### How was this patch tested?
   mvn test -Dtest=TestMiniTezCliDriver -Dqfile=create_database.q


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