Examples of DropPartitionEvent


Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for (MetaStoreEventListener listener : listeners) {
          DropPartitionEvent dropPartitionEvent =
            new DropPartitionEvent(tbl, part, success, deleteData, this);
          dropPartitionEvent.setEnvironmentContext(envContext);
          listener.onDropPartition(dropPartitionEvent);
        }
      }
      return true;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

    assertEquals(partMarkEvent.getTable().getTableName(), "tmptbl");

    driver.run(String.format("alter table %s drop partition (b='2011')", tblName));
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropPartitionEvent dropPart = (DropPartitionEvent)notifyList.get(listSize - 1);
    assert dropPart.getStatus();
    assertEquals(part.getValues(), dropPart.getPartition().getValues());
    assertEquals(part.getDbName(), dropPart.getPartition().getDbName());
    assertEquals(part.getTableName(), dropPart.getPartition().getTableName());

    driver.run("drop table " + tblName);
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropTableEvent dropTbl = (DropTableEvent)notifyList.get(listSize-1);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for(MetaStoreEventListener listener : listeners){
          listener.onDropPartition(new DropPartitionEvent(part, success, this));
      }
      }
      return true;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for (MetaStoreEventListener listener : listeners) {
          DropPartitionEvent dropPartitionEvent =
            new DropPartitionEvent(tbl, part, success, deleteData, this);
          dropPartitionEvent.setEnvironmentContext(envContext);
          listener.onDropPartition(dropPartitionEvent);
        }
      }
      return true;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

          }
        }
        if (parts != null) {
          for (Partition part : parts) {
            for (MetaStoreEventListener listener : listeners) {
              DropPartitionEvent dropPartitionEvent =
                new DropPartitionEvent(tbl, part, success, deleteData, this);
              dropPartitionEvent.setEnvironmentContext(envContext);
              listener.onDropPartition(dropPartitionEvent);
            }
          }
        }
      }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

    driver.run(String.format("alter table %s drop partition (b='2011')", tblName));
    listSize++;
    assertEquals(notifyList.size(), listSize);
    assertEquals(preNotifyList.size(), listSize);

    DropPartitionEvent dropPart = (DropPartitionEvent)notifyList.get(listSize - 1);
    assert dropPart.getStatus();
    validateDropPartition(part, dropPart.getPartition());
    validateTableInDropPartition(tbl, dropPart.getTable());

    PreDropPartitionEvent preDropPart = (PreDropPartitionEvent)preNotifyList.get(listSize - 1);
    validateDropPartition(part, preDropPart.getPartition());

    driver.run("drop table " + tblName);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for (MetaStoreEventListener listener : listeners) {
          listener.onDropPartition(new DropPartitionEvent(tbl, part, success, this));
        }
      }
      return true;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

    assertEquals(partMarkEvent.getTable().getTableName(), "tmptbl");

    driver.run(String.format("alter table %s drop partition (b='2011')", tblName));
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropPartitionEvent dropPart = (DropPartitionEvent)notifyList.get(listSize - 1);
    assert dropPart.getStatus();
    assertEquals(part.getValues(), dropPart.getPartition().getValues());
    assertEquals(part.getDbName(), dropPart.getPartition().getDbName());
    assertEquals(part.getTableName(), dropPart.getPartition().getTableName());

    driver.run("drop table " + tblName);
    listSize++;
    assertEquals(notifyList.size(), listSize);
    DropTableEvent dropTbl = (DropTableEvent)notifyList.get(listSize-1);
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for(MetaStoreEventListener listener : listeners){
          listener.onDropPartition(new DropPartitionEvent(part, success, this));
      }
      }
      return true;
    }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.events.DropPartitionEvent

            }
            // ok even if the data is not deleted
          }
        }
        for (MetaStoreEventListener listener : listeners) {
          listener.onDropPartition(new DropPartitionEvent(part, success, this));
        }
      }
      return true;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.