http://git-wip-us.apache.org/repos/asf/hive/blob/cdcc35e6/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
----------------------------------------------------------------------
diff --git 
a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
 
b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
index 47b7afa..7ae18a1 100644
--- 
a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
+++ 
b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
@@ -158,6 +158,8 @@ public class ThriftHiveMetastore {
 
     public PartitionsByExprResult 
get_partitions_by_expr(PartitionsByExprRequest req) throws MetaException, 
NoSuchObjectException, org.apache.thrift.TException;
 
+    public int get_num_partitions_by_filter(String db_name, String tbl_name, 
String filter) throws MetaException, NoSuchObjectException, 
org.apache.thrift.TException;
+
     public List<Partition> get_partitions_by_names(String db_name, String 
tbl_name, List<String> names) throws MetaException, NoSuchObjectException, 
org.apache.thrift.TException;
 
     public void alter_partition(String db_name, String tbl_name, Partition 
new_part) throws InvalidOperationException, MetaException, 
org.apache.thrift.TException;
@@ -426,6 +428,8 @@ public class ThriftHiveMetastore {
 
     public void get_partitions_by_expr(PartitionsByExprRequest req, 
org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
 
+    public void get_num_partitions_by_filter(String db_name, String tbl_name, 
String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException;
+
     public void get_partitions_by_names(String db_name, String tbl_name, 
List<String> names, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException;
 
     public void alter_partition(String db_name, String tbl_name, Partition 
new_part, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws 
org.apache.thrift.TException;
@@ -2394,6 +2398,37 @@ public class ThriftHiveMetastore {
       throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "get_partitions_by_expr failed: unknown result");
     }
 
+    public int get_num_partitions_by_filter(String db_name, String tbl_name, 
String filter) throws MetaException, NoSuchObjectException, 
org.apache.thrift.TException
+    {
+      send_get_num_partitions_by_filter(db_name, tbl_name, filter);
+      return recv_get_num_partitions_by_filter();
+    }
+
+    public void send_get_num_partitions_by_filter(String db_name, String 
tbl_name, String filter) throws org.apache.thrift.TException
+    {
+      get_num_partitions_by_filter_args args = new 
get_num_partitions_by_filter_args();
+      args.setDb_name(db_name);
+      args.setTbl_name(tbl_name);
+      args.setFilter(filter);
+      sendBase("get_num_partitions_by_filter", args);
+    }
+
+    public int recv_get_num_partitions_by_filter() throws MetaException, 
NoSuchObjectException, org.apache.thrift.TException
+    {
+      get_num_partitions_by_filter_result result = new 
get_num_partitions_by_filter_result();
+      receiveBase(result, "get_num_partitions_by_filter");
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
+      if (result.o2 != null) {
+        throw result.o2;
+      }
+      throw new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT,
 "get_num_partitions_by_filter failed: unknown result");
+    }
+
     public List<Partition> get_partitions_by_names(String db_name, String 
tbl_name, List<String> names) throws MetaException, NoSuchObjectException, 
org.apache.thrift.TException
     {
       send_get_partitions_by_names(db_name, tbl_name, names);
@@ -6620,6 +6655,44 @@ public class ThriftHiveMetastore {
       }
     }
 
+    public void get_num_partitions_by_filter(String db_name, String tbl_name, 
String filter, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException {
+      checkReady();
+      get_num_partitions_by_filter_call method_call = new 
get_num_partitions_by_filter_call(db_name, tbl_name, filter, resultHandler, 
this, ___protocolFactory, ___transport);
+      this.___currentMethod = method_call;
+      ___manager.call(method_call);
+    }
+
+    public static class get_num_partitions_by_filter_call extends 
org.apache.thrift.async.TAsyncMethodCall {
+      private String db_name;
+      private String tbl_name;
+      private String filter;
+      public get_num_partitions_by_filter_call(String db_name, String 
tbl_name, String filter, org.apache.thrift.async.AsyncMethodCallback 
resultHandler, org.apache.thrift.async.TAsyncClient client, 
org.apache.thrift.protocol.TProtocolFactory protocolFactory, 
org.apache.thrift.transport.TNonblockingTransport transport) throws 
org.apache.thrift.TException {
+        super(client, protocolFactory, transport, resultHandler, false);
+        this.db_name = db_name;
+        this.tbl_name = tbl_name;
+        this.filter = filter;
+      }
+
+      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws 
org.apache.thrift.TException {
+        prot.writeMessageBegin(new 
org.apache.thrift.protocol.TMessage("get_num_partitions_by_filter", 
org.apache.thrift.protocol.TMessageType.CALL, 0));
+        get_num_partitions_by_filter_args args = new 
get_num_partitions_by_filter_args();
+        args.setDb_name(db_name);
+        args.setTbl_name(tbl_name);
+        args.setFilter(filter);
+        args.write(prot);
+        prot.writeMessageEnd();
+      }
+
+      public int getResult() throws MetaException, NoSuchObjectException, 
org.apache.thrift.TException {
+        if (getState() != 
org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
+          throw new IllegalStateException("Method call not finished!");
+        }
+        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = 
new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
+        org.apache.thrift.protocol.TProtocol prot = 
client.getProtocolFactory().getProtocol(memoryTransport);
+        return (new Client(prot)).recv_get_num_partitions_by_filter();
+      }
+    }
+
     public void get_partitions_by_names(String db_name, String tbl_name, 
List<String> names, org.apache.thrift.async.AsyncMethodCallback resultHandler) 
throws org.apache.thrift.TException {
       checkReady();
       get_partitions_by_names_call method_call = new 
get_partitions_by_names_call(db_name, tbl_name, names, resultHandler, this, 
___protocolFactory, ___transport);
@@ -9227,6 +9300,7 @@ public class ThriftHiveMetastore {
       processMap.put("get_partitions_by_filter", new 
get_partitions_by_filter());
       processMap.put("get_part_specs_by_filter", new 
get_part_specs_by_filter());
       processMap.put("get_partitions_by_expr", new get_partitions_by_expr());
+      processMap.put("get_num_partitions_by_filter", new 
get_num_partitions_by_filter());
       processMap.put("get_partitions_by_names", new get_partitions_by_names());
       processMap.put("alter_partition", new alter_partition());
       processMap.put("alter_partitions", new alter_partitions());
@@ -10854,6 +10928,33 @@ public class ThriftHiveMetastore {
       }
     }
 
+    public static class get_num_partitions_by_filter<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, get_num_partitions_by_filter_args> {
+      public get_num_partitions_by_filter() {
+        super("get_num_partitions_by_filter");
+      }
+
+      public get_num_partitions_by_filter_args getEmptyArgsInstance() {
+        return new get_num_partitions_by_filter_args();
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public get_num_partitions_by_filter_result getResult(I iface, 
get_num_partitions_by_filter_args args) throws org.apache.thrift.TException {
+        get_num_partitions_by_filter_result result = new 
get_num_partitions_by_filter_result();
+        try {
+          result.success = iface.get_num_partitions_by_filter(args.db_name, 
args.tbl_name, args.filter);
+          result.setSuccessIsSet(true);
+        } catch (MetaException o1) {
+          result.o1 = o1;
+        } catch (NoSuchObjectException o2) {
+          result.o2 = o2;
+        }
+        return result;
+      }
+    }
+
     public static class get_partitions_by_names<I extends Iface> extends 
org.apache.thrift.ProcessFunction<I, get_partitions_by_names_args> {
       public get_partitions_by_names() {
         super("get_partitions_by_names");
@@ -12770,6 +12871,7 @@ public class ThriftHiveMetastore {
       processMap.put("get_partitions_by_filter", new 
get_partitions_by_filter());
       processMap.put("get_part_specs_by_filter", new 
get_part_specs_by_filter());
       processMap.put("get_partitions_by_expr", new get_partitions_by_expr());
+      processMap.put("get_num_partitions_by_filter", new 
get_num_partitions_by_filter());
       processMap.put("get_partitions_by_names", new get_partitions_by_names());
       processMap.put("alter_partition", new alter_partition());
       processMap.put("alter_partitions", new alter_partitions());
@@ -16525,6 +16627,69 @@ public class ThriftHiveMetastore {
       }
     }
 
+    public static class get_num_partitions_by_filter<I extends AsyncIface> 
extends org.apache.thrift.AsyncProcessFunction<I, 
get_num_partitions_by_filter_args, Integer> {
+      public get_num_partitions_by_filter() {
+        super("get_num_partitions_by_filter");
+      }
+
+      public get_num_partitions_by_filter_args getEmptyArgsInstance() {
+        return new get_num_partitions_by_filter_args();
+      }
+
+      public AsyncMethodCallback<Integer> getResultHandler(final 
AsyncFrameBuffer fb, final int seqid) {
+        final org.apache.thrift.AsyncProcessFunction fcall = this;
+        return new AsyncMethodCallback<Integer>() { 
+          public void onComplete(Integer o) {
+            get_num_partitions_by_filter_result result = new 
get_num_partitions_by_filter_result();
+            result.success = o;
+            result.setSuccessIsSet(true);
+            try {
+              fcall.sendResponse(fb,result, 
org.apache.thrift.protocol.TMessageType.REPLY,seqid);
+              return;
+            } catch (Exception e) {
+              LOGGER.error("Exception writing to internal frame buffer", e);
+            }
+            fb.close();
+          }
+          public void onError(Exception e) {
+            byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;
+            org.apache.thrift.TBase msg;
+            get_num_partitions_by_filter_result result = new 
get_num_partitions_by_filter_result();
+            if (e instanceof MetaException) {
+                        result.o1 = (MetaException) e;
+                        result.setO1IsSet(true);
+                        msg = result;
+            }
+            else             if (e instanceof NoSuchObjectException) {
+                        result.o2 = (NoSuchObjectException) e;
+                        result.setO2IsSet(true);
+                        msg = result;
+            }
+             else 
+            {
+              msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION;
+              msg = (org.apache.thrift.TBase)new 
org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,
 e.getMessage());
+            }
+            try {
+              fcall.sendResponse(fb,msg,msgType,seqid);
+              return;
+            } catch (Exception ex) {
+              LOGGER.error("Exception writing to internal frame buffer", ex);
+            }
+            fb.close();
+          }
+        };
+      }
+
+      protected boolean isOneway() {
+        return false;
+      }
+
+      public void start(I iface, get_num_partitions_by_filter_args args, 
org.apache.thrift.async.AsyncMethodCallback<Integer> resultHandler) throws 
TException {
+        iface.get_num_partitions_by_filter(args.db_name, args.tbl_name, 
args.filter,resultHandler);
+      }
+    }
+
     public static class get_partitions_by_names<I extends AsyncIface> extends 
org.apache.thrift.AsyncProcessFunction<I, get_partitions_by_names_args, 
List<Partition>> {
       public get_partitions_by_names() {
         super("get_partitions_by_names");
@@ -20900,7 +21065,7 @@ public class ThriftHiveMetastore {
 
       public AsyncMethodCallback<CacheFileMetadataResult> 
getResultHandler(final AsyncFrameBuffer fb, final int seqid) {
         final org.apache.thrift.AsyncProcessFunction fcall = this;
-        return new AsyncMethodCallback<CacheFileMetadataResult>() {
+        return new AsyncMethodCallback<CacheFileMetadataResult>() { 
           public void onComplete(CacheFileMetadataResult o) {
             cache_file_metadata_result result = new 
cache_file_metadata_result();
             result.success = o;
@@ -87843,28 +88008,28 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class get_partitions_by_names_args implements 
org.apache.thrift.TBase<get_partitions_by_names_args, 
get_partitions_by_names_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_partitions_by_names_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_partitions_by_names_args");
+  public static class get_num_partitions_by_filter_args implements 
org.apache.thrift.TBase<get_num_partitions_by_filter_args, 
get_num_partitions_by_filter_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_num_partitions_by_filter_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_args");
 
     private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("db_name", 
org.apache.thrift.protocol.TType.STRING, (short)1);
     private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("tbl_name", 
org.apache.thrift.protocol.TType.STRING, (short)2);
-    private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = 
new org.apache.thrift.protocol.TField("names", 
org.apache.thrift.protocol.TType.LIST, (short)3);
+    private static final org.apache.thrift.protocol.TField FILTER_FIELD_DESC = 
new org.apache.thrift.protocol.TField("filter", 
org.apache.thrift.protocol.TType.STRING, (short)3);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
-      schemes.put(StandardScheme.class, new 
get_partitions_by_names_argsStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
get_partitions_by_names_argsTupleSchemeFactory());
+      schemes.put(StandardScheme.class, new 
get_num_partitions_by_filter_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
get_num_partitions_by_filter_argsTupleSchemeFactory());
     }
 
     private String db_name; // required
     private String tbl_name; // required
-    private List<String> names; // required
+    private String filter; // required
 
     /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
       DB_NAME((short)1, "db_name"),
       TBL_NAME((short)2, "tbl_name"),
-      NAMES((short)3, "names");
+      FILTER((short)3, "filter");
 
       private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
 
@@ -87883,8 +88048,8 @@ public class ThriftHiveMetastore {
             return DB_NAME;
           case 2: // TBL_NAME
             return TBL_NAME;
-          case 3: // NAMES
-            return NAMES;
+          case 3: // FILTER
+            return FILTER;
           default:
             return null;
         }
@@ -87932,52 +88097,50 @@ public class ThriftHiveMetastore {
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.TBL_NAME, new 
org.apache.thrift.meta_data.FieldMetaData("tbl_name", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-      tmpMap.put(_Fields.NAMES, new 
org.apache.thrift.meta_data.FieldMetaData("names", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-          new 
org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-              new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
+      tmpMap.put(_Fields.FILTER, new 
org.apache.thrift.meta_data.FieldMetaData("filter", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       metaDataMap = Collections.unmodifiableMap(tmpMap);
-      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class,
 metaDataMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_args.class,
 metaDataMap);
     }
 
-    public get_partitions_by_names_args() {
+    public get_num_partitions_by_filter_args() {
     }
 
-    public get_partitions_by_names_args(
+    public get_num_partitions_by_filter_args(
       String db_name,
       String tbl_name,
-      List<String> names)
+      String filter)
     {
       this();
       this.db_name = db_name;
       this.tbl_name = tbl_name;
-      this.names = names;
+      this.filter = filter;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public get_partitions_by_names_args(get_partitions_by_names_args other) {
+    public get_num_partitions_by_filter_args(get_num_partitions_by_filter_args 
other) {
       if (other.isSetDb_name()) {
         this.db_name = other.db_name;
       }
       if (other.isSetTbl_name()) {
         this.tbl_name = other.tbl_name;
       }
-      if (other.isSetNames()) {
-        List<String> __this__names = new ArrayList<String>(other.names);
-        this.names = __this__names;
+      if (other.isSetFilter()) {
+        this.filter = other.filter;
       }
     }
 
-    public get_partitions_by_names_args deepCopy() {
-      return new get_partitions_by_names_args(this);
+    public get_num_partitions_by_filter_args deepCopy() {
+      return new get_num_partitions_by_filter_args(this);
     }
 
     @Override
     public void clear() {
       this.db_name = null;
       this.tbl_name = null;
-      this.names = null;
+      this.filter = null;
     }
 
     public String getDb_name() {
@@ -88026,41 +88189,26 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public int getNamesSize() {
-      return (this.names == null) ? 0 : this.names.size();
-    }
-
-    public java.util.Iterator<String> getNamesIterator() {
-      return (this.names == null) ? null : this.names.iterator();
-    }
-
-    public void addToNames(String elem) {
-      if (this.names == null) {
-        this.names = new ArrayList<String>();
-      }
-      this.names.add(elem);
-    }
-
-    public List<String> getNames() {
-      return this.names;
+    public String getFilter() {
+      return this.filter;
     }
 
-    public void setNames(List<String> names) {
-      this.names = names;
+    public void setFilter(String filter) {
+      this.filter = filter;
     }
 
-    public void unsetNames() {
-      this.names = null;
+    public void unsetFilter() {
+      this.filter = null;
     }
 
-    /** Returns true if field names is set (has been assigned a value) and 
false otherwise */
-    public boolean isSetNames() {
-      return this.names != null;
+    /** Returns true if field filter is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetFilter() {
+      return this.filter != null;
     }
 
-    public void setNamesIsSet(boolean value) {
+    public void setFilterIsSet(boolean value) {
       if (!value) {
-        this.names = null;
+        this.filter = null;
       }
     }
 
@@ -88082,11 +88230,11 @@ public class ThriftHiveMetastore {
         }
         break;
 
-      case NAMES:
+      case FILTER:
         if (value == null) {
-          unsetNames();
+          unsetFilter();
         } else {
-          setNames((List<String>)value);
+          setFilter((String)value);
         }
         break;
 
@@ -88101,8 +88249,8 @@ public class ThriftHiveMetastore {
       case TBL_NAME:
         return getTbl_name();
 
-      case NAMES:
-        return getNames();
+      case FILTER:
+        return getFilter();
 
       }
       throw new IllegalStateException();
@@ -88119,8 +88267,8 @@ public class ThriftHiveMetastore {
         return isSetDb_name();
       case TBL_NAME:
         return isSetTbl_name();
-      case NAMES:
-        return isSetNames();
+      case FILTER:
+        return isSetFilter();
       }
       throw new IllegalStateException();
     }
@@ -88129,12 +88277,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof get_partitions_by_names_args)
-        return this.equals((get_partitions_by_names_args)that);
+      if (that instanceof get_num_partitions_by_filter_args)
+        return this.equals((get_num_partitions_by_filter_args)that);
       return false;
     }
 
-    public boolean equals(get_partitions_by_names_args that) {
+    public boolean equals(get_num_partitions_by_filter_args that) {
       if (that == null)
         return false;
 
@@ -88156,12 +88304,12 @@ public class ThriftHiveMetastore {
           return false;
       }
 
-      boolean this_present_names = true && this.isSetNames();
-      boolean that_present_names = true && that.isSetNames();
-      if (this_present_names || that_present_names) {
-        if (!(this_present_names && that_present_names))
+      boolean this_present_filter = true && this.isSetFilter();
+      boolean that_present_filter = true && that.isSetFilter();
+      if (this_present_filter || that_present_filter) {
+        if (!(this_present_filter && that_present_filter))
           return false;
-        if (!this.names.equals(that.names))
+        if (!this.filter.equals(that.filter))
           return false;
       }
 
@@ -88182,16 +88330,16 @@ public class ThriftHiveMetastore {
       if (present_tbl_name)
         list.add(tbl_name);
 
-      boolean present_names = true && (isSetNames());
-      list.add(present_names);
-      if (present_names)
-        list.add(names);
+      boolean present_filter = true && (isSetFilter());
+      list.add(present_filter);
+      if (present_filter)
+        list.add(filter);
 
       return list.hashCode();
     }
 
     @Override
-    public int compareTo(get_partitions_by_names_args other) {
+    public int compareTo(get_num_partitions_by_filter_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
@@ -88218,12 +88366,12 @@ public class ThriftHiveMetastore {
           return lastComparison;
         }
       }
-      lastComparison = 
Boolean.valueOf(isSetNames()).compareTo(other.isSetNames());
+      lastComparison = 
Boolean.valueOf(isSetFilter()).compareTo(other.isSetFilter());
       if (lastComparison != 0) {
         return lastComparison;
       }
-      if (isSetNames()) {
-        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, 
other.names);
+      if (isSetFilter()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.filter, 
other.filter);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -88245,7 +88393,7 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("get_partitions_by_names_args(");
+      StringBuilder sb = new 
StringBuilder("get_num_partitions_by_filter_args(");
       boolean first = true;
 
       sb.append("db_name:");
@@ -88264,11 +88412,11 @@ public class ThriftHiveMetastore {
       }
       first = false;
       if (!first) sb.append(", ");
-      sb.append("names:");
-      if (this.names == null) {
+      sb.append("filter:");
+      if (this.filter == null) {
         sb.append("null");
       } else {
-        sb.append(this.names);
+        sb.append(this.filter);
       }
       first = false;
       sb.append(")");
@@ -88296,15 +88444,15 @@ public class ThriftHiveMetastore {
       }
     }
 
-    private static class get_partitions_by_names_argsStandardSchemeFactory 
implements SchemeFactory {
-      public get_partitions_by_names_argsStandardScheme getScheme() {
-        return new get_partitions_by_names_argsStandardScheme();
+    private static class 
get_num_partitions_by_filter_argsStandardSchemeFactory implements SchemeFactory 
{
+      public get_num_partitions_by_filter_argsStandardScheme getScheme() {
+        return new get_num_partitions_by_filter_argsStandardScheme();
       }
     }
 
-    private static class get_partitions_by_names_argsStandardScheme extends 
StandardScheme<get_partitions_by_names_args> {
+    private static class get_num_partitions_by_filter_argsStandardScheme 
extends StandardScheme<get_num_partitions_by_filter_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -88330,20 +88478,10 @@ public class ThriftHiveMetastore {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
               }
               break;
-            case 3: // NAMES
-              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-                {
-                  org.apache.thrift.protocol.TList _list918 = 
iprot.readListBegin();
-                  struct.names = new ArrayList<String>(_list918.size);
-                  String _elem919;
-                  for (int _i920 = 0; _i920 < _list918.size; ++_i920)
-                  {
-                    _elem919 = iprot.readString();
-                    struct.names.add(_elem919);
-                  }
-                  iprot.readListEnd();
-                }
-                struct.setNamesIsSet(true);
+            case 3: // FILTER
+              if (schemeField.type == org.apache.thrift.protocol.TType.STRING) 
{
+                struct.filter = iprot.readString();
+                struct.setFilterIsSet(true);
               } else { 
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
               }
@@ -88357,7 +88495,7 @@ public class ThriftHiveMetastore {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -88371,16 +88509,9 @@ public class ThriftHiveMetastore {
           oprot.writeString(struct.tbl_name);
           oprot.writeFieldEnd();
         }
-        if (struct.names != null) {
-          oprot.writeFieldBegin(NAMES_FIELD_DESC);
-          {
-            oprot.writeListBegin(new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 
struct.names.size()));
-            for (String _iter921 : struct.names)
-            {
-              oprot.writeString(_iter921);
-            }
-            oprot.writeListEnd();
-          }
+        if (struct.filter != null) {
+          oprot.writeFieldBegin(FILTER_FIELD_DESC);
+          oprot.writeString(struct.filter);
           oprot.writeFieldEnd();
         }
         oprot.writeFieldStop();
@@ -88389,16 +88520,16 @@ public class ThriftHiveMetastore {
 
     }
 
-    private static class get_partitions_by_names_argsTupleSchemeFactory 
implements SchemeFactory {
-      public get_partitions_by_names_argsTupleScheme getScheme() {
-        return new get_partitions_by_names_argsTupleScheme();
+    private static class get_num_partitions_by_filter_argsTupleSchemeFactory 
implements SchemeFactory {
+      public get_num_partitions_by_filter_argsTupleScheme getScheme() {
+        return new get_num_partitions_by_filter_argsTupleScheme();
       }
     }
 
-    private static class get_partitions_by_names_argsTupleScheme extends 
TupleScheme<get_partitions_by_names_args> {
+    private static class get_num_partitions_by_filter_argsTupleScheme extends 
TupleScheme<get_num_partitions_by_filter_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetDb_name()) {
@@ -88407,7 +88538,7 @@ public class ThriftHiveMetastore {
         if (struct.isSetTbl_name()) {
           optionals.set(1);
         }
-        if (struct.isSetNames()) {
+        if (struct.isSetFilter()) {
           optionals.set(2);
         }
         oprot.writeBitSet(optionals, 3);
@@ -88417,19 +88548,13 @@ public class ThriftHiveMetastore {
         if (struct.isSetTbl_name()) {
           oprot.writeString(struct.tbl_name);
         }
-        if (struct.isSetNames()) {
-          {
-            oprot.writeI32(struct.names.size());
-            for (String _iter922 : struct.names)
-            {
-              oprot.writeString(_iter922);
-            }
-          }
+        if (struct.isSetFilter()) {
+          oprot.writeString(struct.filter);
         }
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_num_partitions_by_filter_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
@@ -88441,37 +88566,28 @@ public class ThriftHiveMetastore {
           struct.setTbl_nameIsSet(true);
         }
         if (incoming.get(2)) {
-          {
-            org.apache.thrift.protocol.TList _list923 = new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 
iprot.readI32());
-            struct.names = new ArrayList<String>(_list923.size);
-            String _elem924;
-            for (int _i925 = 0; _i925 < _list923.size; ++_i925)
-            {
-              _elem924 = iprot.readString();
-              struct.names.add(_elem924);
-            }
-          }
-          struct.setNamesIsSet(true);
+          struct.filter = iprot.readString();
+          struct.setFilterIsSet(true);
         }
       }
     }
 
   }
 
-  public static class get_partitions_by_names_result implements 
org.apache.thrift.TBase<get_partitions_by_names_result, 
get_partitions_by_names_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_partitions_by_names_result>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_partitions_by_names_result");
+  public static class get_num_partitions_by_filter_result implements 
org.apache.thrift.TBase<get_num_partitions_by_filter_result, 
get_num_partitions_by_filter_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_num_partitions_by_filter_result>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_num_partitions_by_filter_result");
 
-    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC 
= new org.apache.thrift.protocol.TField("success", 
org.apache.thrift.protocol.TType.LIST, (short)0);
+    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC 
= new org.apache.thrift.protocol.TField("success", 
org.apache.thrift.protocol.TType.I32, (short)0);
     private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new 
org.apache.thrift.protocol.TField("o1", 
org.apache.thrift.protocol.TType.STRUCT, (short)1);
     private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new 
org.apache.thrift.protocol.TField("o2", 
org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
-      schemes.put(StandardScheme.class, new 
get_partitions_by_names_resultStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
get_partitions_by_names_resultTupleSchemeFactory());
+      schemes.put(StandardScheme.class, new 
get_num_partitions_by_filter_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
get_num_partitions_by_filter_resultTupleSchemeFactory());
     }
 
-    private List<Partition> success; // required
+    private int success; // required
     private MetaException o1; // required
     private NoSuchObjectException o2; // required
 
@@ -88540,30 +88656,32 @@ public class ThriftHiveMetastore {
     }
 
     // isset id assignments
+    private static final int __SUCCESS_ISSET_ID = 0;
+    private byte __isset_bitfield = 0;
     public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
     static {
       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
       tmpMap.put(_Fields.SUCCESS, new 
org.apache.thrift.meta_data.FieldMetaData("success", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-          new 
org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-              new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 Partition.class))));
+          new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
       tmpMap.put(_Fields.O1, new 
org.apache.thrift.meta_data.FieldMetaData("o1", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
       tmpMap.put(_Fields.O2, new 
org.apache.thrift.meta_data.FieldMetaData("o2", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
       metaDataMap = Collections.unmodifiableMap(tmpMap);
-      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_result.class,
 metaDataMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_num_partitions_by_filter_result.class,
 metaDataMap);
     }
 
-    public get_partitions_by_names_result() {
+    public get_num_partitions_by_filter_result() {
     }
 
-    public get_partitions_by_names_result(
-      List<Partition> success,
+    public get_num_partitions_by_filter_result(
+      int success,
       MetaException o1,
       NoSuchObjectException o2)
     {
       this();
       this.success = success;
+      setSuccessIsSet(true);
       this.o1 = o1;
       this.o2 = o2;
     }
@@ -88571,14 +88689,9 @@ public class ThriftHiveMetastore {
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public get_partitions_by_names_result(get_partitions_by_names_result 
other) {
-      if (other.isSetSuccess()) {
-        List<Partition> __this__success = new 
ArrayList<Partition>(other.success.size());
-        for (Partition other_element : other.success) {
-          __this__success.add(new Partition(other_element));
-        }
-        this.success = __this__success;
-      }
+    public 
get_num_partitions_by_filter_result(get_num_partitions_by_filter_result other) {
+      __isset_bitfield = other.__isset_bitfield;
+      this.success = other.success;
       if (other.isSetO1()) {
         this.o1 = new MetaException(other.o1);
       }
@@ -88587,53 +88700,38 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public get_partitions_by_names_result deepCopy() {
-      return new get_partitions_by_names_result(this);
+    public get_num_partitions_by_filter_result deepCopy() {
+      return new get_num_partitions_by_filter_result(this);
     }
 
     @Override
     public void clear() {
-      this.success = null;
+      setSuccessIsSet(false);
+      this.success = 0;
       this.o1 = null;
       this.o2 = null;
     }
 
-    public int getSuccessSize() {
-      return (this.success == null) ? 0 : this.success.size();
-    }
-
-    public java.util.Iterator<Partition> getSuccessIterator() {
-      return (this.success == null) ? null : this.success.iterator();
-    }
-
-    public void addToSuccess(Partition elem) {
-      if (this.success == null) {
-        this.success = new ArrayList<Partition>();
-      }
-      this.success.add(elem);
-    }
-
-    public List<Partition> getSuccess() {
+    public int getSuccess() {
       return this.success;
     }
 
-    public void setSuccess(List<Partition> success) {
+    public void setSuccess(int success) {
       this.success = success;
+      setSuccessIsSet(true);
     }
 
     public void unsetSuccess() {
-      this.success = null;
+      __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, 
__SUCCESS_ISSET_ID);
     }
 
     /** Returns true if field success is set (has been assigned a value) and 
false otherwise */
     public boolean isSetSuccess() {
-      return this.success != null;
+      return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID);
     }
 
     public void setSuccessIsSet(boolean value) {
-      if (!value) {
-        this.success = null;
-      }
+      __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, 
__SUCCESS_ISSET_ID, value);
     }
 
     public MetaException getO1() {
@@ -88688,7 +88786,7 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetSuccess();
         } else {
-          setSuccess((List<Partition>)value);
+          setSuccess((Integer)value);
         }
         break;
 
@@ -88747,21 +88845,21 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof get_partitions_by_names_result)
-        return this.equals((get_partitions_by_names_result)that);
+      if (that instanceof get_num_partitions_by_filter_result)
+        return this.equals((get_num_partitions_by_filter_result)that);
       return false;
     }
 
-    public boolean equals(get_partitions_by_names_result that) {
+    public boolean equals(get_num_partitions_by_filter_result that) {
       if (that == null)
         return false;
 
-      boolean this_present_success = true && this.isSetSuccess();
-      boolean that_present_success = true && that.isSetSuccess();
+      boolean this_present_success = true;
+      boolean that_present_success = true;
       if (this_present_success || that_present_success) {
         if (!(this_present_success && that_present_success))
           return false;
-        if (!this.success.equals(that.success))
+        if (this.success != that.success)
           return false;
       }
 
@@ -88790,7 +88888,7 @@ public class ThriftHiveMetastore {
     public int hashCode() {
       List<Object> list = new ArrayList<Object>();
 
-      boolean present_success = true && (isSetSuccess());
+      boolean present_success = true;
       list.add(present_success);
       if (present_success)
         list.add(success);
@@ -88809,7 +88907,7 @@ public class ThriftHiveMetastore {
     }
 
     @Override
-    public int compareTo(get_partitions_by_names_result other) {
+    public int compareTo(get_num_partitions_by_filter_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
@@ -88863,15 +88961,11 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("get_partitions_by_names_result(");
+      StringBuilder sb = new 
StringBuilder("get_num_partitions_by_filter_result(");
       boolean first = true;
 
       sb.append("success:");
-      if (this.success == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.success);
-      }
+      sb.append(this.success);
       first = false;
       if (!first) sb.append(", ");
       sb.append("o1:");
@@ -88908,21 +89002,23 @@ public class ThriftHiveMetastore {
 
     private void readObject(java.io.ObjectInputStream in) throws 
java.io.IOException, ClassNotFoundException {
       try {
+        // it doesn't seem like you should have to do this, but java 
serialization is wacky, and doesn't call the default constructor.
+        __isset_bitfield = 0;
         read(new org.apache.thrift.protocol.TCompactProtocol(new 
org.apache.thrift.transport.TIOStreamTransport(in)));
       } catch (org.apache.thrift.TException te) {
         throw new java.io.IOException(te);
       }
     }
 
-    private static class get_partitions_by_names_resultStandardSchemeFactory 
implements SchemeFactory {
-      public get_partitions_by_names_resultStandardScheme getScheme() {
-        return new get_partitions_by_names_resultStandardScheme();
+    private static class 
get_num_partitions_by_filter_resultStandardSchemeFactory implements 
SchemeFactory {
+      public get_num_partitions_by_filter_resultStandardScheme getScheme() {
+        return new get_num_partitions_by_filter_resultStandardScheme();
       }
     }
 
-    private static class get_partitions_by_names_resultStandardScheme extends 
StandardScheme<get_partitions_by_names_result> {
+    private static class get_num_partitions_by_filter_resultStandardScheme 
extends StandardScheme<get_num_partitions_by_filter_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException 
{
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -88933,19 +89029,8 @@ public class ThriftHiveMetastore {
           }
           switch (schemeField.id) {
             case 0: // SUCCESS
-              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
-                {
-                  org.apache.thrift.protocol.TList _list926 = 
iprot.readListBegin();
-                  struct.success = new ArrayList<Partition>(_list926.size);
-                  Partition _elem927;
-                  for (int _i928 = 0; _i928 < _list926.size; ++_i928)
-                  {
-                    _elem927 = new Partition();
-                    _elem927.read(iprot);
-                    struct.success.add(_elem927);
-                  }
-                  iprot.readListEnd();
-                }
+              if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
+                struct.success = iprot.readI32();
                 struct.setSuccessIsSet(true);
               } else { 
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
@@ -88978,20 +89063,13 @@ public class ThriftHiveMetastore {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException 
{
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
-        if (struct.success != null) {
+        if (struct.isSetSuccess()) {
           oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-          {
-            oprot.writeListBegin(new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 
struct.success.size()));
-            for (Partition _iter929 : struct.success)
-            {
-              _iter929.write(oprot);
-            }
-            oprot.writeListEnd();
-          }
+          oprot.writeI32(struct.success);
           oprot.writeFieldEnd();
         }
         if (struct.o1 != null) {
@@ -89010,16 +89088,16 @@ public class ThriftHiveMetastore {
 
     }
 
-    private static class get_partitions_by_names_resultTupleSchemeFactory 
implements SchemeFactory {
-      public get_partitions_by_names_resultTupleScheme getScheme() {
-        return new get_partitions_by_names_resultTupleScheme();
+    private static class get_num_partitions_by_filter_resultTupleSchemeFactory 
implements SchemeFactory {
+      public get_num_partitions_by_filter_resultTupleScheme getScheme() {
+        return new get_num_partitions_by_filter_resultTupleScheme();
       }
     }
 
-    private static class get_partitions_by_names_resultTupleScheme extends 
TupleScheme<get_partitions_by_names_result> {
+    private static class get_num_partitions_by_filter_resultTupleScheme 
extends TupleScheme<get_num_partitions_by_filter_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException 
{
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetSuccess()) {
@@ -89033,13 +89111,7 @@ public class ThriftHiveMetastore {
         }
         oprot.writeBitSet(optionals, 3);
         if (struct.isSetSuccess()) {
-          {
-            oprot.writeI32(struct.success.size());
-            for (Partition _iter930 : struct.success)
-            {
-              _iter930.write(oprot);
-            }
-          }
+          oprot.writeI32(struct.success);
         }
         if (struct.isSetO1()) {
           struct.o1.write(oprot);
@@ -89050,21 +89122,11 @@ public class ThriftHiveMetastore {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_num_partitions_by_filter_result struct) throws org.apache.thrift.TException 
{
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
-          {
-            org.apache.thrift.protocol.TList _list931 = new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 
iprot.readI32());
-            struct.success = new ArrayList<Partition>(_list931.size);
-            Partition _elem932;
-            for (int _i933 = 0; _i933 < _list931.size; ++_i933)
-            {
-              _elem932 = new Partition();
-              _elem932.read(iprot);
-              struct.success.add(_elem932);
-            }
-          }
+          struct.success = iprot.readI32();
           struct.setSuccessIsSet(true);
         }
         if (incoming.get(1)) {
@@ -89082,28 +89144,28 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class alter_partition_args implements 
org.apache.thrift.TBase<alter_partition_args, alter_partition_args._Fields>, 
java.io.Serializable, Cloneable, Comparable<alter_partition_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("alter_partition_args");
+  public static class get_partitions_by_names_args implements 
org.apache.thrift.TBase<get_partitions_by_names_args, 
get_partitions_by_names_args._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_partitions_by_names_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_partitions_by_names_args");
 
     private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("db_name", 
org.apache.thrift.protocol.TType.STRING, (short)1);
     private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("tbl_name", 
org.apache.thrift.protocol.TType.STRING, (short)2);
-    private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC 
= new org.apache.thrift.protocol.TField("new_part", 
org.apache.thrift.protocol.TType.STRUCT, (short)3);
+    private static final org.apache.thrift.protocol.TField NAMES_FIELD_DESC = 
new org.apache.thrift.protocol.TField("names", 
org.apache.thrift.protocol.TType.LIST, (short)3);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
-      schemes.put(StandardScheme.class, new 
alter_partition_argsStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
alter_partition_argsTupleSchemeFactory());
+      schemes.put(StandardScheme.class, new 
get_partitions_by_names_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
get_partitions_by_names_argsTupleSchemeFactory());
     }
 
     private String db_name; // required
     private String tbl_name; // required
-    private Partition new_part; // required
+    private List<String> names; // required
 
     /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
       DB_NAME((short)1, "db_name"),
       TBL_NAME((short)2, "tbl_name"),
-      NEW_PART((short)3, "new_part");
+      NAMES((short)3, "names");
 
       private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
 
@@ -89122,8 +89184,8 @@ public class ThriftHiveMetastore {
             return DB_NAME;
           case 2: // TBL_NAME
             return TBL_NAME;
-          case 3: // NEW_PART
-            return NEW_PART;
+          case 3: // NAMES
+            return NAMES;
           default:
             return null;
         }
@@ -89171,50 +89233,52 @@ public class ThriftHiveMetastore {
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.TBL_NAME, new 
org.apache.thrift.meta_data.FieldMetaData("tbl_name", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-      tmpMap.put(_Fields.NEW_PART, new 
org.apache.thrift.meta_data.FieldMetaData("new_part", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
-          new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 Partition.class)));
+      tmpMap.put(_Fields.NAMES, new 
org.apache.thrift.meta_data.FieldMetaData("names", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+              new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
       metaDataMap = Collections.unmodifiableMap(tmpMap);
-      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_args.class,
 metaDataMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_args.class,
 metaDataMap);
     }
 
-    public alter_partition_args() {
+    public get_partitions_by_names_args() {
     }
 
-    public alter_partition_args(
+    public get_partitions_by_names_args(
       String db_name,
       String tbl_name,
-      Partition new_part)
+      List<String> names)
     {
       this();
       this.db_name = db_name;
       this.tbl_name = tbl_name;
-      this.new_part = new_part;
+      this.names = names;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public alter_partition_args(alter_partition_args other) {
+    public get_partitions_by_names_args(get_partitions_by_names_args other) {
       if (other.isSetDb_name()) {
         this.db_name = other.db_name;
       }
       if (other.isSetTbl_name()) {
         this.tbl_name = other.tbl_name;
       }
-      if (other.isSetNew_part()) {
-        this.new_part = new Partition(other.new_part);
+      if (other.isSetNames()) {
+        List<String> __this__names = new ArrayList<String>(other.names);
+        this.names = __this__names;
       }
     }
 
-    public alter_partition_args deepCopy() {
-      return new alter_partition_args(this);
+    public get_partitions_by_names_args deepCopy() {
+      return new get_partitions_by_names_args(this);
     }
 
     @Override
     public void clear() {
       this.db_name = null;
       this.tbl_name = null;
-      this.new_part = null;
+      this.names = null;
     }
 
     public String getDb_name() {
@@ -89263,26 +89327,41 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public Partition getNew_part() {
-      return this.new_part;
+    public int getNamesSize() {
+      return (this.names == null) ? 0 : this.names.size();
     }
 
-    public void setNew_part(Partition new_part) {
-      this.new_part = new_part;
+    public java.util.Iterator<String> getNamesIterator() {
+      return (this.names == null) ? null : this.names.iterator();
     }
 
-    public void unsetNew_part() {
-      this.new_part = null;
+    public void addToNames(String elem) {
+      if (this.names == null) {
+        this.names = new ArrayList<String>();
+      }
+      this.names.add(elem);
     }
 
-    /** Returns true if field new_part is set (has been assigned a value) and 
false otherwise */
-    public boolean isSetNew_part() {
-      return this.new_part != null;
+    public List<String> getNames() {
+      return this.names;
     }
 
-    public void setNew_partIsSet(boolean value) {
+    public void setNames(List<String> names) {
+      this.names = names;
+    }
+
+    public void unsetNames() {
+      this.names = null;
+    }
+
+    /** Returns true if field names is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetNames() {
+      return this.names != null;
+    }
+
+    public void setNamesIsSet(boolean value) {
       if (!value) {
-        this.new_part = null;
+        this.names = null;
       }
     }
 
@@ -89304,11 +89383,11 @@ public class ThriftHiveMetastore {
         }
         break;
 
-      case NEW_PART:
+      case NAMES:
         if (value == null) {
-          unsetNew_part();
+          unsetNames();
         } else {
-          setNew_part((Partition)value);
+          setNames((List<String>)value);
         }
         break;
 
@@ -89323,8 +89402,8 @@ public class ThriftHiveMetastore {
       case TBL_NAME:
         return getTbl_name();
 
-      case NEW_PART:
-        return getNew_part();
+      case NAMES:
+        return getNames();
 
       }
       throw new IllegalStateException();
@@ -89341,8 +89420,8 @@ public class ThriftHiveMetastore {
         return isSetDb_name();
       case TBL_NAME:
         return isSetTbl_name();
-      case NEW_PART:
-        return isSetNew_part();
+      case NAMES:
+        return isSetNames();
       }
       throw new IllegalStateException();
     }
@@ -89351,12 +89430,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof alter_partition_args)
-        return this.equals((alter_partition_args)that);
+      if (that instanceof get_partitions_by_names_args)
+        return this.equals((get_partitions_by_names_args)that);
       return false;
     }
 
-    public boolean equals(alter_partition_args that) {
+    public boolean equals(get_partitions_by_names_args that) {
       if (that == null)
         return false;
 
@@ -89378,12 +89457,12 @@ public class ThriftHiveMetastore {
           return false;
       }
 
-      boolean this_present_new_part = true && this.isSetNew_part();
-      boolean that_present_new_part = true && that.isSetNew_part();
-      if (this_present_new_part || that_present_new_part) {
-        if (!(this_present_new_part && that_present_new_part))
+      boolean this_present_names = true && this.isSetNames();
+      boolean that_present_names = true && that.isSetNames();
+      if (this_present_names || that_present_names) {
+        if (!(this_present_names && that_present_names))
           return false;
-        if (!this.new_part.equals(that.new_part))
+        if (!this.names.equals(that.names))
           return false;
       }
 
@@ -89404,16 +89483,16 @@ public class ThriftHiveMetastore {
       if (present_tbl_name)
         list.add(tbl_name);
 
-      boolean present_new_part = true && (isSetNew_part());
-      list.add(present_new_part);
-      if (present_new_part)
-        list.add(new_part);
+      boolean present_names = true && (isSetNames());
+      list.add(present_names);
+      if (present_names)
+        list.add(names);
 
       return list.hashCode();
     }
 
     @Override
-    public int compareTo(alter_partition_args other) {
+    public int compareTo(get_partitions_by_names_args other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
@@ -89440,12 +89519,12 @@ public class ThriftHiveMetastore {
           return lastComparison;
         }
       }
-      lastComparison = 
Boolean.valueOf(isSetNew_part()).compareTo(other.isSetNew_part());
+      lastComparison = 
Boolean.valueOf(isSetNames()).compareTo(other.isSetNames());
       if (lastComparison != 0) {
         return lastComparison;
       }
-      if (isSetNew_part()) {
-        lastComparison = 
org.apache.thrift.TBaseHelper.compareTo(this.new_part, other.new_part);
+      if (isSetNames()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.names, 
other.names);
         if (lastComparison != 0) {
           return lastComparison;
         }
@@ -89467,7 +89546,7 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("alter_partition_args(");
+      StringBuilder sb = new StringBuilder("get_partitions_by_names_args(");
       boolean first = true;
 
       sb.append("db_name:");
@@ -89486,11 +89565,11 @@ public class ThriftHiveMetastore {
       }
       first = false;
       if (!first) sb.append(", ");
-      sb.append("new_part:");
-      if (this.new_part == null) {
+      sb.append("names:");
+      if (this.names == null) {
         sb.append("null");
       } else {
-        sb.append(this.new_part);
+        sb.append(this.names);
       }
       first = false;
       sb.append(")");
@@ -89500,9 +89579,6 @@ public class ThriftHiveMetastore {
     public void validate() throws org.apache.thrift.TException {
       // check for required fields
       // check for sub-struct validity
-      if (new_part != null) {
-        new_part.validate();
-      }
     }
 
     private void writeObject(java.io.ObjectOutputStream out) throws 
java.io.IOException {
@@ -89521,15 +89597,15 @@ public class ThriftHiveMetastore {
       }
     }
 
-    private static class alter_partition_argsStandardSchemeFactory implements 
SchemeFactory {
-      public alter_partition_argsStandardScheme getScheme() {
-        return new alter_partition_argsStandardScheme();
+    private static class get_partitions_by_names_argsStandardSchemeFactory 
implements SchemeFactory {
+      public get_partitions_by_names_argsStandardScheme getScheme() {
+        return new get_partitions_by_names_argsStandardScheme();
       }
     }
 
-    private static class alter_partition_argsStandardScheme extends 
StandardScheme<alter_partition_args> {
+    private static class get_partitions_by_names_argsStandardScheme extends 
StandardScheme<get_partitions_by_names_args> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, 
alter_partition_args struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -89555,11 +89631,20 @@ public class ThriftHiveMetastore {
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
               }
               break;
-            case 3: // NEW_PART
-              if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
-                struct.new_part = new Partition();
-                struct.new_part.read(iprot);
-                struct.setNew_partIsSet(true);
+            case 3: // NAMES
+              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+                {
+                  org.apache.thrift.protocol.TList _list918 = 
iprot.readListBegin();
+                  struct.names = new ArrayList<String>(_list918.size);
+                  String _elem919;
+                  for (int _i920 = 0; _i920 < _list918.size; ++_i920)
+                  {
+                    _elem919 = iprot.readString();
+                    struct.names.add(_elem919);
+                  }
+                  iprot.readListEnd();
+                }
+                struct.setNamesIsSet(true);
               } else { 
                 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
               }
@@ -89573,7 +89658,7 @@ public class ThriftHiveMetastore {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, 
alter_partition_args struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
@@ -89587,9 +89672,16 @@ public class ThriftHiveMetastore {
           oprot.writeString(struct.tbl_name);
           oprot.writeFieldEnd();
         }
-        if (struct.new_part != null) {
-          oprot.writeFieldBegin(NEW_PART_FIELD_DESC);
-          struct.new_part.write(oprot);
+        if (struct.names != null) {
+          oprot.writeFieldBegin(NAMES_FIELD_DESC);
+          {
+            oprot.writeListBegin(new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 
struct.names.size()));
+            for (String _iter921 : struct.names)
+            {
+              oprot.writeString(_iter921);
+            }
+            oprot.writeListEnd();
+          }
           oprot.writeFieldEnd();
         }
         oprot.writeFieldStop();
@@ -89598,16 +89690,16 @@ public class ThriftHiveMetastore {
 
     }
 
-    private static class alter_partition_argsTupleSchemeFactory implements 
SchemeFactory {
-      public alter_partition_argsTupleScheme getScheme() {
-        return new alter_partition_argsTupleScheme();
+    private static class get_partitions_by_names_argsTupleSchemeFactory 
implements SchemeFactory {
+      public get_partitions_by_names_argsTupleScheme getScheme() {
+        return new get_partitions_by_names_argsTupleScheme();
       }
     }
 
-    private static class alter_partition_argsTupleScheme extends 
TupleScheme<alter_partition_args> {
+    private static class get_partitions_by_names_argsTupleScheme extends 
TupleScheme<get_partitions_by_names_args> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, 
alter_partition_args struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
         if (struct.isSetDb_name()) {
@@ -89616,7 +89708,7 @@ public class ThriftHiveMetastore {
         if (struct.isSetTbl_name()) {
           optionals.set(1);
         }
-        if (struct.isSetNew_part()) {
+        if (struct.isSetNames()) {
           optionals.set(2);
         }
         oprot.writeBitSet(optionals, 3);
@@ -89626,13 +89718,19 @@ public class ThriftHiveMetastore {
         if (struct.isSetTbl_name()) {
           oprot.writeString(struct.tbl_name);
         }
-        if (struct.isSetNew_part()) {
-          struct.new_part.write(oprot);
+        if (struct.isSetNames()) {
+          {
+            oprot.writeI32(struct.names.size());
+            for (String _iter922 : struct.names)
+            {
+              oprot.writeString(_iter922);
+            }
+          }
         }
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, 
alter_partition_args struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_args struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
         BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
@@ -89644,32 +89742,43 @@ public class ThriftHiveMetastore {
           struct.setTbl_nameIsSet(true);
         }
         if (incoming.get(2)) {
-          struct.new_part = new Partition();
-          struct.new_part.read(iprot);
-          struct.setNew_partIsSet(true);
+          {
+            org.apache.thrift.protocol.TList _list923 = new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 
iprot.readI32());
+            struct.names = new ArrayList<String>(_list923.size);
+            String _elem924;
+            for (int _i925 = 0; _i925 < _list923.size; ++_i925)
+            {
+              _elem924 = iprot.readString();
+              struct.names.add(_elem924);
+            }
+          }
+          struct.setNamesIsSet(true);
         }
       }
     }
 
   }
 
-  public static class alter_partition_result implements 
org.apache.thrift.TBase<alter_partition_result, 
alter_partition_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<alter_partition_result>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("alter_partition_result");
+  public static class get_partitions_by_names_result implements 
org.apache.thrift.TBase<get_partitions_by_names_result, 
get_partitions_by_names_result._Fields>, java.io.Serializable, Cloneable, 
Comparable<get_partitions_by_names_result>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("get_partitions_by_names_result");
 
+    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC 
= new org.apache.thrift.protocol.TField("success", 
org.apache.thrift.protocol.TType.LIST, (short)0);
     private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new 
org.apache.thrift.protocol.TField("o1", 
org.apache.thrift.protocol.TType.STRUCT, (short)1);
     private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new 
org.apache.thrift.protocol.TField("o2", 
org.apache.thrift.protocol.TType.STRUCT, (short)2);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
-      schemes.put(StandardScheme.class, new 
alter_partition_resultStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
alter_partition_resultTupleSchemeFactory());
+      schemes.put(StandardScheme.class, new 
get_partitions_by_names_resultStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
get_partitions_by_names_resultTupleSchemeFactory());
     }
 
-    private InvalidOperationException o1; // required
-    private MetaException o2; // required
+    private List<Partition> success; // required
+    private MetaException o1; // required
+    private NoSuchObjectException o2; // required
 
     /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
+      SUCCESS((short)0, "success"),
       O1((short)1, "o1"),
       O2((short)2, "o2");
 
@@ -89686,6 +89795,8 @@ public class ThriftHiveMetastore {
        */
       public static _Fields findByThriftId(int fieldId) {
         switch(fieldId) {
+          case 0: // SUCCESS
+            return SUCCESS;
           case 1: // O1
             return O1;
           case 2: // O2
@@ -89733,22 +89844,27 @@ public class ThriftHiveMetastore {
     public static final Map<_Fields, 
org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
     static {
       Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new 
EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
+      tmpMap.put(_Fields.SUCCESS, new 
org.apache.thrift.meta_data.FieldMetaData("success", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
+          new 
org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
+              new 
org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT,
 Partition.class))));
       tmpMap.put(_Fields.O1, new 
org.apache.thrift.meta_data.FieldMetaData("o1", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
       tmpMap.put(_Fields.O2, new 
org.apache.thrift.meta_data.FieldMetaData("o2", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
       metaDataMap = Collections.unmodifiableMap(tmpMap);
-      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(alter_partition_result.class,
 metaDataMap);
+      
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_by_names_result.class,
 metaDataMap);
     }
 
-    public alter_partition_result() {
+    public get_partitions_by_names_result() {
     }
 
-    public alter_partition_result(
-      InvalidOperationException o1,
-      MetaException o2)
+    public get_partitions_by_names_result(
+      List<Partition> success,
+      MetaException o1,
+      NoSuchObjectException o2)
     {
       this();
+      this.success = success;
       this.o1 = o1;
       this.o2 = o2;
     }
@@ -89756,30 +89872,76 @@ public class ThriftHiveMetastore {
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public alter_partition_result(alter_partition_result other) {
+    public get_partitions_by_names_result(get_partitions_by_names_result 
other) {
+      if (other.isSetSuccess()) {
+        List<Partition> __this__success = new 
ArrayList<Partition>(other.success.size());
+        for (Partition other_element : other.success) {
+          __this__success.add(new Partition(other_element));
+        }
+        this.success = __this__success;
+      }
       if (other.isSetO1()) {
-        this.o1 = new InvalidOperationException(other.o1);
+        this.o1 = new MetaException(other.o1);
       }
       if (other.isSetO2()) {
-        this.o2 = new MetaException(other.o2);
+        this.o2 = new NoSuchObjectException(other.o2);
       }
     }
 
-    public alter_partition_result deepCopy() {
-      return new alter_partition_result(this);
+    public get_partitions_by_names_result deepCopy() {
+      return new get_partitions_by_names_result(this);
     }
 
     @Override
     public void clear() {
+      this.success = null;
       this.o1 = null;
       this.o2 = null;
     }
 
-    public InvalidOperationException getO1() {
+    public int getSuccessSize() {
+      return (this.success == null) ? 0 : this.success.size();
+    }
+
+    public java.util.Iterator<Partition> getSuccessIterator() {
+      return (this.success == null) ? null : this.success.iterator();
+    }
+
+    public void addToSuccess(Partition elem) {
+      if (this.success == null) {
+        this.success = new ArrayList<Partition>();
+      }
+      this.success.add(elem);
+    }
+
+    public List<Partition> getSuccess() {
+      return this.success;
+    }
+
+    public void setSuccess(List<Partition> success) {
+      this.success = success;
+    }
+
+    public void unsetSuccess() {
+      this.success = null;
+    }
+
+    /** Returns true if field success is set (has been assigned a value) and 
false otherwise */
+    public boolean isSetSuccess() {
+      return this.success != null;
+    }
+
+    public void setSuccessIsSet(boolean value) {
+      if (!value) {
+        this.success = null;
+      }
+    }
+
+    public MetaException getO1() {
       return this.o1;
     }
 
-    public void setO1(InvalidOperationException o1) {
+    public void setO1(MetaException o1) {
       this.o1 = o1;
     }
 
@@ -89798,11 +89960,11 @@ public class ThriftHiveMetastore {
       }
     }
 
-    public MetaException getO2() {
+    public NoSuchObjectException getO2() {
       return this.o2;
     }
 
-    public void setO2(MetaException o2) {
+    public void setO2(NoSuchObjectException o2) {
       this.o2 = o2;
     }
 
@@ -89823,11 +89985,19 @@ public class ThriftHiveMetastore {
 
     public void setFieldValue(_Fields field, Object value) {
       switch (field) {
+      case SUCCESS:
+        if (value == null) {
+          unsetSuccess();
+        } else {
+          setSuccess((List<Partition>)value);
+        }
+        break;
+
       case O1:
         if (value == null) {
           unsetO1();
         } else {
-          setO1((InvalidOperationException)value);
+          setO1((MetaException)value);
         }
         break;
 
@@ -89835,7 +90005,7 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO2();
         } else {
-          setO2((MetaException)value);
+          setO2((NoSuchObjectException)value);
         }
         break;
 
@@ -89844,6 +90014,9 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(_Fields field) {
       switch (field) {
+      case SUCCESS:
+        return getSuccess();
+
       case O1:
         return getO1();
 
@@ -89861,6 +90034,8 @@ public class ThriftHiveMetastore {
       }
 
       switch (field) {
+      case SUCCESS:
+        return isSetSuccess();
       case O1:
         return isSetO1();
       case O2:
@@ -89873,15 +90048,24 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof alter_partition_result)
-        return this.equals((alter_partition_result)that);
+      if (that instanceof get_partitions_by_names_result)
+        return this.equals((get_partitions_by_names_result)that);
       return false;
     }
 
-    public boolean equals(alter_partition_result that) {
+    public boolean equals(get_partitions_by_names_result that) {
       if (that == null)
         return false;
 
+      boolean this_present_success = true && this.isSetSuccess();
+      boolean that_present_success = true && that.isSetSuccess();
+      if (this_present_success || that_present_success) {
+        if (!(this_present_success && that_present_success))
+          return false;
+        if (!this.success.equals(that.success))
+          return false;
+      }
+
       boolean this_present_o1 = true && this.isSetO1();
       boolean that_present_o1 = true && that.isSetO1();
       if (this_present_o1 || that_present_o1) {
@@ -89907,6 +90091,11 @@ public class ThriftHiveMetastore {
     public int hashCode() {
       List<Object> list = new ArrayList<Object>();
 
+      boolean present_success = true && (isSetSuccess());
+      list.add(present_success);
+      if (present_success)
+        list.add(success);
+
       boolean present_o1 = true && (isSetO1());
       list.add(present_o1);
       if (present_o1)
@@ -89921,13 +90110,23 @@ public class ThriftHiveMetastore {
     }
 
     @Override
-    public int compareTo(alter_partition_result other) {
+    public int compareTo(get_partitions_by_names_result other) {
       if (!getClass().equals(other.getClass())) {
         return getClass().getName().compareTo(other.getClass().getName());
       }
 
       int lastComparison = 0;
 
+      lastComparison = 
Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess());
+      if (lastComparison != 0) {
+        return lastComparison;
+      }
+      if (isSetSuccess()) {
+        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, 
other.success);
+        if (lastComparison != 0) {
+          return lastComparison;
+        }
+      }
       lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1());
       if (lastComparison != 0) {
         return lastComparison;
@@ -89965,9 +90164,17 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("alter_partition_result(");
+      StringBuilder sb = new StringBuilder("get_partitions_by_names_result(");
       boolean first = true;
 
+      sb.append("success:");
+      if (this.success == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.success);
+      }
+      first = false;
+      if (!first) sb.append(", ");
       sb.append("o1:");
       if (this.o1 == null) {
         sb.append("null");
@@ -90008,15 +90215,15 @@ public class ThriftHiveMetastore {
       }
     }
 
-    private static class alter_partition_resultStandardSchemeFactory 
implements SchemeFactory {
-      public alter_partition_resultStandardScheme getScheme() {
-        return new alter_partition_resultStandardScheme();
+    private static class get_partitions_by_names_resultStandardSchemeFactory 
implements SchemeFactory {
+      public get_partitions_by_names_resultStandardScheme getScheme() {
+        return new get_partitions_by_names_resultStandardScheme();
       }
     }
 
-    private static class alter_partition_resultStandardScheme extends 
StandardScheme<alter_partition_result> {
+    private static class get_partitions_by_names_resultStandardScheme extends 
StandardScheme<get_partitions_by_names_result> {
 
-      public void read(org.apache.thrift.protocol.TProtocol iprot, 
alter_partition_result struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol iprot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
         org.apache.thrift.protocol.TField schemeField;
         iprot.readStructBegin();
         while (true)
@@ -90026,9 +90233,28 @@ public class ThriftHiveMetastore {
             break;
           }
           switch (schemeField.id) {
+            case 0: // SUCCESS
+              if (schemeField.type == org.apache.thrift.protocol.TType.LIST) {
+                {
+                  org.apache.thrift.protocol.TList _list926 = 
iprot.readListBegin();
+                  struct.success = new ArrayList<Partition>(_list926.size);
+                  Partition _elem927;
+                  for (int _i928 = 0; _i928 < _list926.size; ++_i928)
+                  {
+                    _elem927 = new Partition();
+                    _elem927.read(iprot);
+                    struct.success.add(_elem927);
+                  }
+                  iprot.readListEnd();
+                }
+                struct.setSuccessIsSet(true);
+              } else { 
+                org.apache.thrift.protocol.TProtocolUtil.skip(iprot, 
schemeField.type);
+              }
+              break;
             case 1: // O1
               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
-                struct.o1 = new InvalidOperationException();
+                struct.o1 = new MetaException();
                 struct.o1.read(iprot);
                 struct.setO1IsSet(true);
               } else { 
@@ -90037,7 +90263,7 @@ public class ThriftHiveMetastore {
               break;
             case 2: // O2
               if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) 
{
-                struct.o2 = new MetaException();
+                struct.o2 = new NoSuchObjectException();
                 struct.o2.read(iprot);
                 struct.setO2IsSet(true);
               } else { 
@@ -90053,10 +90279,22 @@ public class ThriftHiveMetastore {
         struct.validate();
       }
 
-      public void write(org.apache.thrift.protocol.TProtocol oprot, 
alter_partition_result struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol oprot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
         struct.validate();
 
         oprot.writeStructBegin(STRUCT_DESC);
+        if (struct.success != null) {
+          oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
+          {
+            oprot.writeListBegin(new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 
struct.success.size()));
+            for (Partition _iter929 : struct.success)
+            {
+              _iter929.write(oprot);
+            }
+            oprot.writeListEnd();
+          }
+          oprot.writeFieldEnd();
+        }
         if (struct.o1 != null) {
           oprot.writeFieldBegin(O1_FIELD_DESC);
           struct.o1.write(oprot);
@@ -90073,25 +90311,37 @@ public class ThriftHiveMetastore {
 
     }
 
-    private static class alter_partition_resultTupleSchemeFactory implements 
SchemeFactory {
-      public alter_partition_resultTupleScheme getScheme() {
-        return new alter_partition_resultTupleScheme();
+    private static class get_partitions_by_names_resultTupleSchemeFactory 
implements SchemeFactory {
+      public get_partitions_by_names_resultTupleScheme getScheme() {
+        return new get_partitions_by_names_resultTupleScheme();
       }
     }
 
-    private static class alter_partition_resultTupleScheme extends 
TupleScheme<alter_partition_result> {
+    private static class get_partitions_by_names_resultTupleScheme extends 
TupleScheme<get_partitions_by_names_result> {
 
       @Override
-      public void write(org.apache.thrift.protocol.TProtocol prot, 
alter_partition_result struct) throws org.apache.thrift.TException {
+      public void write(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
         TTupleProtocol oprot = (TTupleProtocol) prot;
         BitSet optionals = new BitSet();
-        if (struct.isSetO1()) {
+        if (struct.isSetSuccess()) {
           optionals.set(0);
         }
-        if (struct.isSetO2()) {
+        if (struct.isSetO1()) {
           optionals.set(1);
         }
-        oprot.writeBitSet(optionals, 2);
+        if (struct.isSetO2()) {
+          optionals.set(2);
+        }
+        oprot.writeBitSet(optionals, 3);
+        if (struct.isSetSuccess()) {
+          {
+            oprot.writeI32(struct.success.size());
+            for (Partition _iter930 : struct.success)
+            {
+              _iter930.write(oprot);
+            }
+          }
+        }
         if (struct.isSetO1()) {
           struct.o1.write(oprot);
         }
@@ -90101,16 +90351,30 @@ public class ThriftHiveMetastore {
       }
 
       @Override
-      public void read(org.apache.thrift.protocol.TProtocol prot, 
alter_partition_result struct) throws org.apache.thrift.TException {
+      public void read(org.apache.thrift.protocol.TProtocol prot, 
get_partitions_by_names_result struct) throws org.apache.thrift.TException {
         TTupleProtocol iprot = (TTupleProtocol) prot;
-        BitSet incoming = iprot.readBitSet(2);
+        BitSet incoming = iprot.readBitSet(3);
         if (incoming.get(0)) {
-          struct.o1 = new InvalidOperationException();
+          {
+            org.apache.thrift.protocol.TList _list931 = new 
org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 
iprot.readI32());
+            struct.success = new ArrayList<Partition>(_list931.size);
+            Partition _elem932;
+            for (int _i933 = 0; _i933 < _list931.size; ++_i933)
+            {
+              _elem932 = new Partition();
+              _elem932.read(iprot);
+              struct.success.add(_elem932);
+            }
+          }
+          struct.setSuccessIsSet(true);
+        }
+        if (incoming.get(1)) {
+          struct.o1 = new MetaException();
           struct.o1.read(iprot);
           struct.setO1IsSet(true);
         }
-        if (incoming.get(1)) {
-          struct.o2 = new MetaException();
+        if (incoming.get(2)) {
+          struct.o2 = new NoSuchObjectException();
           struct.o2.read(iprot);
           struct.setO2IsSet(true);
         }
@@ -90119,28 +90383,28 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class alter_partitions_args implements 
org.apache.thrift.TBase<alter_partitions_args, alter_partitions_args._Fields>, 
java.io.Serializable, Cloneable, Comparable<alter_partitions_args>   {
-    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("alter_partitions_args");
+  public static class alter_partition_args implements 
org.apache.thrift.TBase<alter_partition_args, alter_partition_args._Fields>, 
java.io.Serializable, Cloneable, Comparable<alter_partition_args>   {
+    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new 
org.apache.thrift.protocol.TStruct("alter_partition_args");
 
     private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("db_name", 
org.apache.thrift.protocol.TType.STRING, (short)1);
     private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC 
= new org.apache.thrift.protocol.TField("tbl_name", 
org.apache.thrift.protocol.TType.STRING, (short)2);
-    private static final org.apache.thrift.protocol.TField 
NEW_PARTS_FIELD_DESC = new org.apache.thrift.protocol.TField("new_parts", 
org.apache.thrift.protocol.TType.LIST, (short)3);
+    private static final org.apache.thrift.protocol.TField NEW_PART_FIELD_DESC 
= new org.apache.thrift.protocol.TField("new_part", 
org.apache.thrift.protocol.TType.STRUCT, (short)3);
 
     private static final Map<Class<? extends IScheme>, SchemeFactory> schemes 
= new HashMap<Class<? extends IScheme>, SchemeFactory>();
     static {
-      schemes.put(StandardScheme.class, new 
alter_partitions_argsStandardSchemeFactory());
-      schemes.put(TupleScheme.class, new 
alter_partitions_argsTupleSchemeFactory());
+      schemes.put(StandardScheme.class, new 
alter_partition_argsStandardSchemeFactory());
+      schemes.put(TupleScheme.class, new 
alter_partition_argsTupleSchemeFactory());
     }
 
     private String db_name; // required
     private String tbl_name; // required
-    private List<Partition> new_parts; // required
+    private Partition new_part; // required
 
     /** The set of fields this struct contains, along with convenience methods 
for finding and manipulating them. */
     public enum _Fields implements org.apache.thrift.TFieldIdEnum {
       DB_NAME((short)1, "db_name"),
       TBL_NAME((short)2, "tbl_name"),
-      NEW_PARTS((short)3, "new_parts");
+      NEW_PART((short)3, "new_part");
 
       private static final Map<String, _Fields> byName = new HashMap<String, 
_Fields>();
 
@@ -90159,8 +90423,8 @@ public class ThriftHiveMetastore {
             return DB_NAME;
           case 2: // TBL_NAME
             return TBL_NAME;
-          case 3: // NEW_PARTS
-            return NEW_PARTS;
+          case 3: // NEW_PART
+            return NEW_PART;
           default:
             return null;
         }
@@ -90208,55 +90472,50 @@ public class ThriftHiveMetastore {
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
       tmpMap.put(_Fields.TBL_NAME, new 
org.apache.thrift.meta_data.FieldMetaData("tbl_name", 
org.apache.thrift.TFieldRequirementType.DEFAULT, 
           new 
org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-      tmpMap.put

<TRUNCATED>

Reply via email to