@Override
  protected AbstractAlterCatalogDesc buildAlterCatalogDesc(ASTNode root) throws SemanticException {
    String catalogName = getUnescapedName((ASTNode) root.getChild(0));
    String newLocation = unescapeSQLString(root.getChild(1).getText());

    outputs.add(toWriteEntity(newLocation));

    return new AlterCatalogSetLocationDesc(catalogName, newLocation);
  }
Analyzer for catalog set location commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/catalog/alter/location/AlterCatalogSetLocationAnalyzer.java