@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    ctx.setResFile(ctx.getLocalTmpPath());
    Task<? extends Serializable> task =
        hiveAuthorizationTaskFactory.createShowCurrentRoleTask(getInputs(), getOutputs(), ctx.getResFile());
    rootTasks.add(task);

    task.setFetchSource(true);
    setFetchTask(createFetchTask(ShowRolesDesc.SCHEMA));
  }
Analyzer for showing the current role command.
ql/src/java/org/apache/hadoop/hive/ql/ddl/privilege/role/show/ShowCurrentRoleAnalyzer.java