@Override public boolean execute(HiveRegister register) throws IOException { register.dropPartitionIfExists(this.dbName, this.tableName, this.partitionKeys, this.partitionValues); return true; }
@Override public void execute() throws IOException { HiveTable hiveTable = HiveMetaStoreUtils.getHiveTable(this.table); try (HiveRegister hiveRegister = HiveRegister.get(this.props, this.metastoreURI)) { hiveRegister.dropPartitionIfExists(this.partition.getDbName(), this.partition.getTableName(), hiveTable.getPartitionKeys(), this.partition.getValues()); } }
@Override public boolean execute(HiveRegister register) throws IOException { register.dropPartitionIfExists(this.dbName, this.tableName, this.partitionKeys, this.partitionValues); return true; }
@Override public void execute() throws IOException { HiveTable hiveTable = HiveMetaStoreUtils.getHiveTable(this.table); try (HiveRegister hiveRegister = HiveRegister.get(this.props, this.metastoreURI)) { hiveRegister.dropPartitionIfExists(this.partition.getDbName(), this.partition.getTableName(), hiveTable.getPartitionKeys(), this.partition.getValues()); } }