|| !MetaStoreUtils.validateName(name, conf)) { throw new HiveException("[" + name + "]: is not a valid table name");
public static boolean validateSkewedColNames(List<String> cols) { if (null == cols) { return true; } for (String col : cols) { if (!validateName(col)) { return false; } } return true; }
static public boolean validateColNames(List<FieldSchema> cols) { for (FieldSchema fieldSchema : cols) { if (!validateName(fieldSchema.getName())) { return false; } } return true; }
static public boolean validateTblColumns(List<FieldSchema> cols) { for (FieldSchema fieldSchema : cols) { if (!validateName(fieldSchema.getName())) { return false; } if (!validateColumnType(fieldSchema.getType())) { return false; } } return true; }
private void validateFunctionInfo(Function func) throws InvalidObjectException, MetaException { if (!MetaStoreUtils.validateName(func.getFunctionName())) { 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 validateFunctionInfo(Function func) throws InvalidObjectException, MetaException { if (!MetaStoreUtils.validateName(func.getFunctionName())) { 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"); } }
|| !MetaStoreUtils.validateName(name)) { throw new HiveException("[" + name + "]: is not a valid table name");
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException, IOException { if (!validateName(db.getName())) { throw new InvalidObjectException(db.getName() + " is not a valid database name"); } boolean success = false; try { ms.openTransaction(); if (null == db.getLocationUri()) { db.setLocationUri(wh.getDefaultDatabasePath(db.getName()).toString()); } ms.createDatabase(db); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } else { wh.mkdirs(new Path(db.getLocationUri())); } } }
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName())) { 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(); } } }
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName())) { 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(); } } }
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName())) { 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(); } } }
private void create_type_core(final RawStore ms, final Type type) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(type.getName())) { 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(); } } }
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException { if (!validateName(db.getName())) { throw new InvalidObjectException(db.getName() + " is not a valid database name");
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException { if (!validateName(db.getName())) { throw new InvalidObjectException(db.getName() + " is not a valid database name");
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException { if (!validateName(db.getName())) { throw new InvalidObjectException(db.getName() + " is not a valid database name");
|| !MetaStoreUtils.validateName(name)) { throw new HiveException("[" + name + "]: is not a valid table name");
private void create_table_core(final RawStore ms, final Table tbl) throws AlreadyExistsException, MetaException, InvalidObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName()) || !MetaStoreUtils.validateColNames(tbl.getSd().getCols()) || (tbl.getPartitionKeys() != null && !MetaStoreUtils
InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName()) || !MetaStoreUtils.validateTblColumns(tbl.getSd().getCols()) || (tbl.getPartitionKeys() != null && !MetaStoreUtils
InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName())) { throw new InvalidObjectException(tbl.getTableName() + " is not a valid object name");
InvalidObjectException, NoSuchObjectException { if (!MetaStoreUtils.validateName(tbl.getTableName())) { throw new InvalidObjectException(tbl.getTableName() + " is not a valid object name");