default:
throw new SemanticException("Unrecognized token in CREATE DATABASE statement");
}
}
CreateDatabaseDesc createDatabaseDesc = new CreateDatabaseDesc();
createDatabaseDesc.setName(dbName);
createDatabaseDesc.setComment(dbComment);
createDatabaseDesc.setIfNotExists(ifNotExists);
createDatabaseDesc.setLocationUri(null);
if (dbProps != null) {
createDatabaseDesc.setDatabaseProperties(dbProps);
}
rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(),
createDatabaseDesc), conf));
}