private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException { if (!MetaStoreUtils.validateName(db.getName(), null)) { throw new InvalidObjectException(db.getName() + " is not a valid database name");
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName(), null)) { throw new InvalidObjectException("Invalid type name"); } boolean success = false; try { ms.openTransaction(); if (is_type_exists(ms, type.getName())) { throw new AlreadyExistsException("Type " + type.getName() + " already exists"); } ms.createType(type); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } } }
if (!MetaStoreUtils.validateName(tbl.getTableName(), conf)) { throw new InvalidObjectException(tbl.getTableName() + " is not a valid object name");
String newDbName = newt.getDbName().toLowerCase(); if (!MetaStoreUtils.validateName(newTblName, handler.getConf())) { throw new InvalidOperationException(newTblName + " is not a valid object name");
|| !MetaStoreUtils.validateName(name, conf)) { throw new HiveException("[" + name + "]: is not a valid table name");
private void validateFunctionInfo(Function func) throws InvalidObjectException, MetaException { if (func == null) { throw new MetaException("Function cannot be null."); } if (func.getFunctionName() == null) { throw new MetaException("Function name cannot be null."); } if (func.getDbName() == null) { throw new MetaException("Database name in Function cannot be null."); } if (!MetaStoreUtils.validateName(func.getFunctionName(), null)) { throw new InvalidObjectException(func.getFunctionName() + " is not a valid object name"); } String className = func.getClassName(); if (className == null) { throw new InvalidObjectException("Function class name cannot be null"); } if (func.getOwnerType() == null) { throw new MetaException("Function owner type cannot be null."); } if (func.getFunctionType() == null) { throw new MetaException("Function type cannot be null."); } }
if (!MetaStoreUtils.validateName(catalog.getName(), null)) { throw new InvalidObjectException(catalog.getName() + " is not a valid catalog name");
private void validateFunctionInfo(Function func) throws InvalidObjectException, MetaException { if (!MetaStoreUtils.validateName(func.getFunctionName(), null)) { throw new InvalidObjectException(func.getFunctionName() + " is not a valid object name"); } String className = func.getClassName(); if (className == null) { throw new InvalidObjectException("Function class name cannot be null"); } }
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName(), null)) { throw new InvalidObjectException("Invalid type name"); } boolean success = false; try { ms.openTransaction(); if (is_type_exists(ms, type.getName())) { throw new AlreadyExistsException("Type " + type.getName() + " already exists"); } ms.createType(type); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } } }
throws AlreadyExistsException, MetaException, InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName(), conf)) { throw new InvalidObjectException(tbl.getTableName() + " is not a valid object name");
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException { if (!MetaStoreUtils.validateName(db.getName(), null)) { throw new InvalidObjectException(db.getName() + " is not a valid database name");
String newDbName = newt.getDbName().toLowerCase(); if (!MetaStoreUtils.validateName(newTblName, handler.getConf())) { throw new InvalidOperationException(newTblName + " is not a valid object name");
if (!MetaStoreUtils.validateName(catalog.getName(), null)) { throw new InvalidObjectException(catalog.getName() + " is not a valid catalog name");