@Override
  public void analyzeInternal(ASTNode root) throws SemanticException {
    String viewName = getUnescapedName((ASTNode) root.getChild(0));
    boolean ifExists = (root.getFirstChildWithType(HiveParser.TOK_IFEXISTS) != null);

    boolean throwException = !ifExists && !HiveConf.getBoolVar(conf, ConfVars.DROP_IGNORES_NON_EXISTENT);
    Table materializedView = getTable(viewName, throwException);
    if (materializedView != null) {
      inputs.add(new ReadEntity(materializedView));

      boolean tableWithSuffix = AcidUtils.isTableSoftDeleteEnabled(materializedView, conf);
      outputs.add(new WriteEntity(materializedView,
        tableWithSuffix ? WriteType.DDL_EXCL_WRITE : WriteType.DDL_EXCLUSIVE));
    }

    DropMaterializedViewDesc desc = new DropMaterializedViewDesc(viewName, ifExists);
    rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), desc)));
  }
Analyzer for drop materialized view commands.
ql/src/java/org/apache/hadoop/hive/ql/ddl/view/materialized/drop/DropMaterializedViewAnalyzer.java