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

      task.setFetchSource(true);
      setFetchTask(createFetchTask(ShowRoleGrantDesc.SCHEMA));
    }
  }
Analyzer for showing role grant commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/privilege/show/rolegrant/ShowRoleGrantAnalyzer.java