public static void checkColumnName(String columnName) throws SemanticException {
    if (VirtualColumn.VIRTUAL_COLUMN_NAMES.contains(columnName.toUpperCase())) {
      throw new SemanticException(ErrorMsg.INVALID_COLUMN_NAME.getMsg(columnName));
    }
  }
Get the list of FieldSchema out of the ASTNode.
ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java