DanielZhu58 opened a new pull request, #3477: URL: https://github.com/apache/hive/pull/3477
### What changes were proposed in this pull request? Change the CreateDatabaseRequest struct, to add a boolean value skipFSWrites. This boolean value decides whether to create the directory of this database in file system or not. Same as CreateTableRequest struct and AddPartitionsRequest struct. Meanwhile, enhance the HMS API to accept additional boolean skipFSWrites parameters to skip the creation on a need-to basis. ### Why are the changes needed? The following DDL statements in hive result in creation of a directories on the DFS filesystem. "create database", "create table", "alter table 'table_name' add partition" This is done to ensure that the user (be it be the service user or end user) has the privileges to access the underlying filesystem location. But it also sets up the subsequent queries from not having the burden of creating the directories “on demand”. For example, having the execution for “create table” statement also create the database root directories would be a little out of place. Making this change can let the users to skip the creation on a need-to basis. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Unit tests, Thrift build, Maven build -- 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]
