}
@Override
protected void authorizeDDLWork(HiveSemanticAnalyzerHookContext context,
Hive hive, DDLWork work) throws HiveException {
CreateDatabaseDesc createDb = work.getCreateDatabaseDesc();
if (createDb != null) {
Database db = new Database(createDb.getName(), createDb.getComment(),
createDb.getLocationUri(), createDb.getDatabaseProperties());
authorize(db, Privilege.CREATE);
}
}