private void processLateralViewSelect(ASTNode lateralViewSelect) throws SemanticException {
    ASTNode selExprToken = (ASTNode) lateralViewSelect.getChild(0);
    if (selExprToken.getToken().getType() != HiveParser.TOK_SELEXPR) {
      throw new SemanticException(ASTErrorUtils.getMsg(
          ErrorMsg.LATERAL_VIEW_INVALID_CHILD.getMsg(), selExprToken));
    }
    for (Object o : selExprToken.getChildren()) {
      ASTNode node = (ASTNode) o;
      switch (node.getToken().getType()) {
        case HiveParser.TOK_FUNCTION:
          break;
        case HiveParser.Identifier:
          unparseTranslator.addIdentifierTranslation(node);
          break;
        case HiveParser.TOK_TABALIAS:
          unparseTranslator.addIdentifierTranslation((ASTNode) node.getChild(0));
          break;
        default:
          throw new SemanticException(ASTErrorUtils.getMsg(
              ErrorMsg.LATERAL_VIEW_INVALID_CHILD.getMsg(), selExprToken));
      }
    }
  }
Goes though the tabref tree and finds the alias for the table. Once found,
it records the table name-> alias association in aliasToTabs. It also makes
an association from the alias to the table AST in parse info.

@return the alias of the table
ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java