You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by na...@apache.org on 2010/09/16 19:09:43 UTC

svn commit: r997851 [4/12] - in /hadoop/hive/branches/branch-0.6: ./ eclipse-templates/ metastore/if/ metastore/src/gen-cpp/ metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ metastore/src/gen-php/ metastore/src/gen-php/hive_metastore/ m...

Modified: hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=997851&r1=997850&r2=997851&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
+++ hadoop/hive/branches/branch-0.6/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Thu Sep 16 17:09:41 2010
@@ -25,19 +25,21 @@ public class ThriftHiveMetastore {
    */
   public interface Iface extends com.facebook.fb303.FacebookService.Iface {
 
-    public boolean create_database(String name, String description) throws AlreadyExistsException, MetaException, TException;
+    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
 
     public Database get_database(String name) throws NoSuchObjectException, MetaException, TException;
 
-    public boolean drop_database(String name) throws MetaException, TException;
+    public void drop_database(String name, boolean deleteData) throws NoSuchObjectException, InvalidOperationException, MetaException, TException;
 
-    public List<String> get_databases() throws MetaException, TException;
+    public List<String> get_databases(String pattern) throws MetaException, TException;
 
-    public Type get_type(String name) throws MetaException, TException;
+    public List<String> get_all_databases() throws MetaException, TException;
+
+    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException;
 
     public boolean create_type(Type type) throws AlreadyExistsException, InvalidObjectException, MetaException, TException;
 
-    public boolean drop_type(String type) throws MetaException, TException;
+    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException;
 
     public Map<String,Type> get_type_all(String name) throws MetaException, TException;
 
@@ -51,6 +53,8 @@ public class ThriftHiveMetastore {
 
     public List<String> get_tables(String db_name, String pattern) throws MetaException, TException;
 
+    public List<String> get_all_tables(String db_name) throws MetaException, TException;
+
     public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException;
 
     public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException;
@@ -98,24 +102,23 @@ public class ThriftHiveMetastore {
       super(iprot, oprot);
     }
 
-    public boolean create_database(String name, String description) throws AlreadyExistsException, MetaException, TException
+    public void create_database(Database database) throws AlreadyExistsException, InvalidObjectException, MetaException, TException
     {
-      send_create_database(name, description);
-      return recv_create_database();
+      send_create_database(database);
+      recv_create_database();
     }
 
-    public void send_create_database(String name, String description) throws TException
+    public void send_create_database(Database database) throws TException
     {
       oprot_.writeMessageBegin(new TMessage("create_database", TMessageType.CALL, seqid_));
       create_database_args args = new create_database_args();
-      args.name = name;
-      args.description = description;
+      args.database = database;
       args.write(oprot_);
       oprot_.writeMessageEnd();
       oprot_.getTransport().flush();
     }
 
-    public boolean recv_create_database() throws AlreadyExistsException, MetaException, TException
+    public void recv_create_database() throws AlreadyExistsException, InvalidObjectException, MetaException, TException
     {
       TMessage msg = iprot_.readMessageBegin();
       if (msg.type == TMessageType.EXCEPTION) {
@@ -126,16 +129,16 @@ public class ThriftHiveMetastore {
       create_database_result result = new create_database_result();
       result.read(iprot_);
       iprot_.readMessageEnd();
-      if (result.isSetSuccess()) {
-        return result.success;
-      }
       if (result.o1 != null) {
         throw result.o1;
       }
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_database failed: unknown result");
+      if (result.o3 != null) {
+        throw result.o3;
+      }
+      return;
     }
 
     public Database get_database(String name) throws NoSuchObjectException, MetaException, TException
@@ -177,23 +180,24 @@ public class ThriftHiveMetastore {
       throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_database failed: unknown result");
     }
 
-    public boolean drop_database(String name) throws MetaException, TException
+    public void drop_database(String name, boolean deleteData) throws NoSuchObjectException, InvalidOperationException, MetaException, TException
     {
-      send_drop_database(name);
-      return recv_drop_database();
+      send_drop_database(name, deleteData);
+      recv_drop_database();
     }
 
-    public void send_drop_database(String name) throws TException
+    public void send_drop_database(String name, boolean deleteData) throws TException
     {
       oprot_.writeMessageBegin(new TMessage("drop_database", TMessageType.CALL, seqid_));
       drop_database_args args = new drop_database_args();
       args.name = name;
+      args.deleteData = deleteData;
       args.write(oprot_);
       oprot_.writeMessageEnd();
       oprot_.getTransport().flush();
     }
 
-    public boolean recv_drop_database() throws MetaException, TException
+    public void recv_drop_database() throws NoSuchObjectException, InvalidOperationException, MetaException, TException
     {
       TMessage msg = iprot_.readMessageBegin();
       if (msg.type == TMessageType.EXCEPTION) {
@@ -204,25 +208,29 @@ public class ThriftHiveMetastore {
       drop_database_result result = new drop_database_result();
       result.read(iprot_);
       iprot_.readMessageEnd();
-      if (result.isSetSuccess()) {
-        return result.success;
+      if (result.o1 != null) {
+        throw result.o1;
       }
       if (result.o2 != null) {
         throw result.o2;
       }
-      throw new TApplicationException(TApplicationException.MISSING_RESULT, "drop_database failed: unknown result");
+      if (result.o3 != null) {
+        throw result.o3;
+      }
+      return;
     }
 
-    public List<String> get_databases() throws MetaException, TException
+    public List<String> get_databases(String pattern) throws MetaException, TException
     {
-      send_get_databases();
+      send_get_databases(pattern);
       return recv_get_databases();
     }
 
-    public void send_get_databases() throws TException
+    public void send_get_databases(String pattern) throws TException
     {
       oprot_.writeMessageBegin(new TMessage("get_databases", TMessageType.CALL, seqid_));
       get_databases_args args = new get_databases_args();
+      args.pattern = pattern;
       args.write(oprot_);
       oprot_.writeMessageEnd();
       oprot_.getTransport().flush();
@@ -248,7 +256,42 @@ public class ThriftHiveMetastore {
       throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_databases failed: unknown result");
     }
 
-    public Type get_type(String name) throws MetaException, TException
+    public List<String> get_all_databases() throws MetaException, TException
+    {
+      send_get_all_databases();
+      return recv_get_all_databases();
+    }
+
+    public void send_get_all_databases() throws TException
+    {
+      oprot_.writeMessageBegin(new TMessage("get_all_databases", TMessageType.CALL, seqid_));
+      get_all_databases_args args = new get_all_databases_args();
+      args.write(oprot_);
+      oprot_.writeMessageEnd();
+      oprot_.getTransport().flush();
+    }
+
+    public List<String> recv_get_all_databases() throws MetaException, TException
+    {
+      TMessage msg = iprot_.readMessageBegin();
+      if (msg.type == TMessageType.EXCEPTION) {
+        TApplicationException x = TApplicationException.read(iprot_);
+        iprot_.readMessageEnd();
+        throw x;
+      }
+      get_all_databases_result result = new get_all_databases_result();
+      result.read(iprot_);
+      iprot_.readMessageEnd();
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
+      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_databases failed: unknown result");
+    }
+
+    public Type get_type(String name) throws MetaException, NoSuchObjectException, TException
     {
       send_get_type(name);
       return recv_get_type();
@@ -264,7 +307,7 @@ public class ThriftHiveMetastore {
       oprot_.getTransport().flush();
     }
 
-    public Type recv_get_type() throws MetaException, TException
+    public Type recv_get_type() throws MetaException, NoSuchObjectException, TException
     {
       TMessage msg = iprot_.readMessageBegin();
       if (msg.type == TMessageType.EXCEPTION) {
@@ -278,6 +321,9 @@ public class ThriftHiveMetastore {
       if (result.isSetSuccess()) {
         return result.success;
       }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
       if (result.o2 != null) {
         throw result.o2;
       }
@@ -326,7 +372,7 @@ public class ThriftHiveMetastore {
       throw new TApplicationException(TApplicationException.MISSING_RESULT, "create_type failed: unknown result");
     }
 
-    public boolean drop_type(String type) throws MetaException, TException
+    public boolean drop_type(String type) throws MetaException, NoSuchObjectException, TException
     {
       send_drop_type(type);
       return recv_drop_type();
@@ -342,7 +388,7 @@ public class ThriftHiveMetastore {
       oprot_.getTransport().flush();
     }
 
-    public boolean recv_drop_type() throws MetaException, TException
+    public boolean recv_drop_type() throws MetaException, NoSuchObjectException, TException
     {
       TMessage msg = iprot_.readMessageBegin();
       if (msg.type == TMessageType.EXCEPTION) {
@@ -356,6 +402,9 @@ public class ThriftHiveMetastore {
       if (result.isSetSuccess()) {
         return result.success;
       }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
       if (result.o2 != null) {
         throw result.o2;
       }
@@ -601,6 +650,42 @@ public class ThriftHiveMetastore {
       throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_tables failed: unknown result");
     }
 
+    public List<String> get_all_tables(String db_name) throws MetaException, TException
+    {
+      send_get_all_tables(db_name);
+      return recv_get_all_tables();
+    }
+
+    public void send_get_all_tables(String db_name) throws TException
+    {
+      oprot_.writeMessageBegin(new TMessage("get_all_tables", TMessageType.CALL, seqid_));
+      get_all_tables_args args = new get_all_tables_args();
+      args.db_name = db_name;
+      args.write(oprot_);
+      oprot_.writeMessageEnd();
+      oprot_.getTransport().flush();
+    }
+
+    public List<String> recv_get_all_tables() throws MetaException, TException
+    {
+      TMessage msg = iprot_.readMessageBegin();
+      if (msg.type == TMessageType.EXCEPTION) {
+        TApplicationException x = TApplicationException.read(iprot_);
+        iprot_.readMessageEnd();
+        throw x;
+      }
+      get_all_tables_result result = new get_all_tables_result();
+      result.read(iprot_);
+      iprot_.readMessageEnd();
+      if (result.isSetSuccess()) {
+        return result.success;
+      }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
+      throw new TApplicationException(TApplicationException.MISSING_RESULT, "get_all_tables failed: unknown result");
+    }
+
     public Table get_table(String dbname, String tbl_name) throws MetaException, NoSuchObjectException, TException
     {
       send_get_table(dbname, tbl_name);
@@ -1290,6 +1375,7 @@ public class ThriftHiveMetastore {
       processMap_.put("get_database", new get_database());
       processMap_.put("drop_database", new drop_database());
       processMap_.put("get_databases", new get_databases());
+      processMap_.put("get_all_databases", new get_all_databases());
       processMap_.put("get_type", new get_type());
       processMap_.put("create_type", new create_type());
       processMap_.put("drop_type", new drop_type());
@@ -1299,6 +1385,7 @@ public class ThriftHiveMetastore {
       processMap_.put("create_table", new create_table());
       processMap_.put("drop_table", new drop_table());
       processMap_.put("get_tables", new get_tables());
+      processMap_.put("get_all_tables", new get_all_tables());
       processMap_.put("get_table", new get_table());
       processMap_.put("alter_table", new alter_table());
       processMap_.put("add_partition", new add_partition());
@@ -1346,12 +1433,13 @@ public class ThriftHiveMetastore {
         iprot.readMessageEnd();
         create_database_result result = new create_database_result();
         try {
-          result.success = iface_.create_database(args.name, args.description);
-          result.__isset.success = true;
+          iface_.create_database(args.database);
         } catch (AlreadyExistsException o1) {
           result.o1 = o1;
-        } catch (MetaException o2) {
+        } catch (InvalidObjectException o2) {
           result.o2 = o2;
+        } catch (MetaException o3) {
+          result.o3 = o3;
         } catch (Throwable th) {
           LOGGER.error("Internal error processing create_database", th);
           TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing create_database");
@@ -1407,10 +1495,13 @@ public class ThriftHiveMetastore {
         iprot.readMessageEnd();
         drop_database_result result = new drop_database_result();
         try {
-          result.success = iface_.drop_database(args.name);
-          result.__isset.success = true;
-        } catch (MetaException o2) {
+          iface_.drop_database(args.name, args.deleteData);
+        } catch (NoSuchObjectException o1) {
+          result.o1 = o1;
+        } catch (InvalidOperationException o2) {
           result.o2 = o2;
+        } catch (MetaException o3) {
+          result.o3 = o3;
         } catch (Throwable th) {
           LOGGER.error("Internal error processing drop_database", th);
           TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing drop_database");
@@ -1436,7 +1527,7 @@ public class ThriftHiveMetastore {
         iprot.readMessageEnd();
         get_databases_result result = new get_databases_result();
         try {
-          result.success = iface_.get_databases();
+          result.success = iface_.get_databases(args.pattern);
         } catch (MetaException o1) {
           result.o1 = o1;
         } catch (Throwable th) {
@@ -1456,6 +1547,34 @@ public class ThriftHiveMetastore {
 
     }
 
+    private class get_all_databases implements ProcessFunction {
+      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
+      {
+        get_all_databases_args args = new get_all_databases_args();
+        args.read(iprot);
+        iprot.readMessageEnd();
+        get_all_databases_result result = new get_all_databases_result();
+        try {
+          result.success = iface_.get_all_databases();
+        } catch (MetaException o1) {
+          result.o1 = o1;
+        } catch (Throwable th) {
+          LOGGER.error("Internal error processing get_all_databases", th);
+          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_all_databases");
+          oprot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.EXCEPTION, seqid));
+          x.write(oprot);
+          oprot.writeMessageEnd();
+          oprot.getTransport().flush();
+          return;
+        }
+        oprot.writeMessageBegin(new TMessage("get_all_databases", TMessageType.REPLY, seqid));
+        result.write(oprot);
+        oprot.writeMessageEnd();
+        oprot.getTransport().flush();
+      }
+
+    }
+
     private class get_type implements ProcessFunction {
       public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
       {
@@ -1465,7 +1584,9 @@ public class ThriftHiveMetastore {
         get_type_result result = new get_type_result();
         try {
           result.success = iface_.get_type(args.name);
-        } catch (MetaException o2) {
+        } catch (MetaException o1) {
+          result.o1 = o1;
+        } catch (NoSuchObjectException o2) {
           result.o2 = o2;
         } catch (Throwable th) {
           LOGGER.error("Internal error processing get_type", th);
@@ -1527,7 +1648,9 @@ public class ThriftHiveMetastore {
         try {
           result.success = iface_.drop_type(args.type);
           result.__isset.success = true;
-        } catch (MetaException o2) {
+        } catch (MetaException o1) {
+          result.o1 = o1;
+        } catch (NoSuchObjectException o2) {
           result.o2 = o2;
         } catch (Throwable th) {
           LOGGER.error("Internal error processing drop_type", th);
@@ -1730,6 +1853,34 @@ public class ThriftHiveMetastore {
 
     }
 
+    private class get_all_tables implements ProcessFunction {
+      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
+      {
+        get_all_tables_args args = new get_all_tables_args();
+        args.read(iprot);
+        iprot.readMessageEnd();
+        get_all_tables_result result = new get_all_tables_result();
+        try {
+          result.success = iface_.get_all_tables(args.db_name);
+        } catch (MetaException o1) {
+          result.o1 = o1;
+        } catch (Throwable th) {
+          LOGGER.error("Internal error processing get_all_tables", th);
+          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing get_all_tables");
+          oprot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.EXCEPTION, seqid));
+          x.write(oprot);
+          oprot.writeMessageEnd();
+          oprot.getTransport().flush();
+          return;
+        }
+        oprot.writeMessageBegin(new TMessage("get_all_tables", TMessageType.REPLY, seqid));
+        result.write(oprot);
+        oprot.writeMessageEnd();
+        oprot.getTransport().flush();
+      }
+
+    }
+
     private class get_table implements ProcessFunction {
       public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
       {
@@ -2240,23 +2391,18 @@ public class ThriftHiveMetastore {
 
   public static class create_database_args implements TBase, java.io.Serializable, Cloneable   {
     private static final TStruct STRUCT_DESC = new TStruct("create_database_args");
-    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
-    private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);
+    private static final TField DATABASE_FIELD_DESC = new TField("database", TType.STRUCT, (short)1);
 
-    private String name;
-    public static final int NAME = 1;
-    private String description;
-    public static final int DESCRIPTION = 2;
+    private Database database;
+    public static final int DATABASE = 1;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
-      put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.STRING)));
-      put(DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.STRING)));
+      put(DATABASE, new FieldMetaData("database", TFieldRequirementType.DEFAULT, 
+          new StructMetaData(TType.STRUCT, Database.class)));
     }});
 
     static {
@@ -2267,23 +2413,18 @@ public class ThriftHiveMetastore {
     }
 
     public create_database_args(
-      String name,
-      String description)
+      Database database)
     {
       this();
-      this.name = name;
-      this.description = description;
+      this.database = database;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
     public create_database_args(create_database_args other) {
-      if (other.isSetName()) {
-        this.name = other.name;
-      }
-      if (other.isSetDescription()) {
-        this.description = other.description;
+      if (other.isSetDatabase()) {
+        this.database = new Database(other.database);
       }
     }
 
@@ -2292,55 +2433,30 @@ public class ThriftHiveMetastore {
       return new create_database_args(this);
     }
 
-    public String getName() {
-      return this.name;
-    }
-
-    public void setName(String name) {
-      this.name = name;
-    }
-
-    public void unsetName() {
-      this.name = null;
-    }
-
-    // Returns true if field name is set (has been asigned a value) and false otherwise
-    public boolean isSetName() {
-      return this.name != null;
-    }
-
-    public String getDescription() {
-      return this.description;
+    public Database getDatabase() {
+      return this.database;
     }
 
-    public void setDescription(String description) {
-      this.description = description;
+    public void setDatabase(Database database) {
+      this.database = database;
     }
 
-    public void unsetDescription() {
-      this.description = null;
+    public void unsetDatabase() {
+      this.database = null;
     }
 
-    // Returns true if field description is set (has been asigned a value) and false otherwise
-    public boolean isSetDescription() {
-      return this.description != null;
+    // Returns true if field database is set (has been asigned a value) and false otherwise
+    public boolean isSetDatabase() {
+      return this.database != null;
     }
 
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
-      case NAME:
+      case DATABASE:
         if (value == null) {
-          unsetName();
-        } else {
-          setName((String)value);
-        }
-        break;
-
-      case DESCRIPTION:
-        if (value == null) {
-          unsetDescription();
+          unsetDatabase();
         } else {
-          setDescription((String)value);
+          setDatabase((Database)value);
         }
         break;
 
@@ -2351,11 +2467,8 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case NAME:
-        return getName();
-
-      case DESCRIPTION:
-        return getDescription();
+      case DATABASE:
+        return getDatabase();
 
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
@@ -2365,10 +2478,8 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
-      case NAME:
-        return isSetName();
-      case DESCRIPTION:
-        return isSetDescription();
+      case DATABASE:
+        return isSetDatabase();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -2387,21 +2498,12 @@ public class ThriftHiveMetastore {
       if (that == null)
         return false;
 
-      boolean this_present_name = true && this.isSetName();
-      boolean that_present_name = true && that.isSetName();
-      if (this_present_name || that_present_name) {
-        if (!(this_present_name && that_present_name))
-          return false;
-        if (!this.name.equals(that.name))
-          return false;
-      }
-
-      boolean this_present_description = true && this.isSetDescription();
-      boolean that_present_description = true && that.isSetDescription();
-      if (this_present_description || that_present_description) {
-        if (!(this_present_description && that_present_description))
+      boolean this_present_database = true && this.isSetDatabase();
+      boolean that_present_database = true && that.isSetDatabase();
+      if (this_present_database || that_present_database) {
+        if (!(this_present_database && that_present_database))
           return false;
-        if (!this.description.equals(that.description))
+        if (!this.database.equals(that.database))
           return false;
       }
 
@@ -2424,16 +2526,10 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
-          case NAME:
-            if (field.type == TType.STRING) {
-              this.name = iprot.readString();
-            } else { 
-              TProtocolUtil.skip(iprot, field.type);
-            }
-            break;
-          case DESCRIPTION:
-            if (field.type == TType.STRING) {
-              this.description = iprot.readString();
+          case DATABASE:
+            if (field.type == TType.STRUCT) {
+              this.database = new Database();
+              this.database.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
@@ -2453,14 +2549,9 @@ public class ThriftHiveMetastore {
       validate();
 
       oprot.writeStructBegin(STRUCT_DESC);
-      if (this.name != null) {
-        oprot.writeFieldBegin(NAME_FIELD_DESC);
-        oprot.writeString(this.name);
-        oprot.writeFieldEnd();
-      }
-      if (this.description != null) {
-        oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);
-        oprot.writeString(this.description);
+      if (this.database != null) {
+        oprot.writeFieldBegin(DATABASE_FIELD_DESC);
+        this.database.write(oprot);
         oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
@@ -2472,19 +2563,11 @@ public class ThriftHiveMetastore {
       StringBuilder sb = new StringBuilder("create_database_args(");
       boolean first = true;
 
-      sb.append("name:");
-      if (this.name == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.name);
-      }
-      first = false;
-      if (!first) sb.append(", ");
-      sb.append("description:");
-      if (this.description == null) {
+      sb.append("database:");
+      if (this.database == null) {
         sb.append("null");
       } else {
-        sb.append(this.description);
+        sb.append(this.database);
       }
       first = false;
       sb.append(")");
@@ -2500,29 +2583,28 @@ public class ThriftHiveMetastore {
 
   public static class create_database_result implements TBase, java.io.Serializable, Cloneable   {
     private static final TStruct STRUCT_DESC = new TStruct("create_database_result");
-    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
     private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1);
     private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2);
+    private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3);
 
-    private boolean success;
-    public static final int SUCCESS = 0;
     private AlreadyExistsException o1;
     public static final int O1 = 1;
-    private MetaException o2;
+    private InvalidObjectException o2;
     public static final int O2 = 2;
+    private MetaException o3;
+    public static final int O3 = 3;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
-      public boolean success = false;
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
-      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.BOOL)));
       put(O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
       put(O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
+      put(O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
     }});
 
     static {
@@ -2533,28 +2615,28 @@ public class ThriftHiveMetastore {
     }
 
     public create_database_result(
-      boolean success,
       AlreadyExistsException o1,
-      MetaException o2)
+      InvalidObjectException o2,
+      MetaException o3)
     {
       this();
-      this.success = success;
-      this.__isset.success = true;
       this.o1 = o1;
       this.o2 = o2;
+      this.o3 = o3;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
     public create_database_result(create_database_result other) {
-      __isset.success = other.__isset.success;
-      this.success = other.success;
       if (other.isSetO1()) {
         this.o1 = new AlreadyExistsException(other.o1);
       }
       if (other.isSetO2()) {
-        this.o2 = new MetaException(other.o2);
+        this.o2 = new InvalidObjectException(other.o2);
+      }
+      if (other.isSetO3()) {
+        this.o3 = new MetaException(other.o3);
       }
     }
 
@@ -2563,24 +2645,6 @@ public class ThriftHiveMetastore {
       return new create_database_result(this);
     }
 
-    public boolean isSuccess() {
-      return this.success;
-    }
-
-    public void setSuccess(boolean success) {
-      this.success = success;
-      this.__isset.success = true;
-    }
-
-    public void unsetSuccess() {
-      this.__isset.success = false;
-    }
-
-    // Returns true if field success is set (has been asigned a value) and false otherwise
-    public boolean isSetSuccess() {
-      return this.__isset.success;
-    }
-
     public AlreadyExistsException getO1() {
       return this.o1;
     }
@@ -2598,11 +2662,11 @@ public class ThriftHiveMetastore {
       return this.o1 != null;
     }
 
-    public MetaException getO2() {
+    public InvalidObjectException getO2() {
       return this.o2;
     }
 
-    public void setO2(MetaException o2) {
+    public void setO2(InvalidObjectException o2) {
       this.o2 = o2;
     }
 
@@ -2615,16 +2679,25 @@ public class ThriftHiveMetastore {
       return this.o2 != null;
     }
 
+    public MetaException getO3() {
+      return this.o3;
+    }
+
+    public void setO3(MetaException o3) {
+      this.o3 = o3;
+    }
+
+    public void unsetO3() {
+      this.o3 = null;
+    }
+
+    // Returns true if field o3 is set (has been asigned a value) and false otherwise
+    public boolean isSetO3() {
+      return this.o3 != null;
+    }
+
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
-      case SUCCESS:
-        if (value == null) {
-          unsetSuccess();
-        } else {
-          setSuccess((Boolean)value);
-        }
-        break;
-
       case O1:
         if (value == null) {
           unsetO1();
@@ -2637,7 +2710,15 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO2();
         } else {
-          setO2((MetaException)value);
+          setO2((InvalidObjectException)value);
+        }
+        break;
+
+      case O3:
+        if (value == null) {
+          unsetO3();
+        } else {
+          setO3((MetaException)value);
         }
         break;
 
@@ -2648,15 +2729,15 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case SUCCESS:
-        return new Boolean(isSuccess());
-
       case O1:
         return getO1();
 
       case O2:
         return getO2();
 
+      case O3:
+        return getO3();
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -2665,12 +2746,12 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
-      case SUCCESS:
-        return isSetSuccess();
       case O1:
         return isSetO1();
       case O2:
         return isSetO2();
+      case O3:
+        return isSetO3();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -2689,15 +2770,6 @@ public class ThriftHiveMetastore {
       if (that == null)
         return false;
 
-      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 != 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) {
@@ -2716,6 +2788,15 @@ public class ThriftHiveMetastore {
           return false;
       }
 
+      boolean this_present_o3 = true && this.isSetO3();
+      boolean that_present_o3 = true && that.isSetO3();
+      if (this_present_o3 || that_present_o3) {
+        if (!(this_present_o3 && that_present_o3))
+          return false;
+        if (!this.o3.equals(that.o3))
+          return false;
+      }
+
       return true;
     }
 
@@ -2735,14 +2816,6 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
-          case SUCCESS:
-            if (field.type == TType.BOOL) {
-              this.success = iprot.readBool();
-              this.__isset.success = true;
-            } else { 
-              TProtocolUtil.skip(iprot, field.type);
-            }
-            break;
           case O1:
             if (field.type == TType.STRUCT) {
               this.o1 = new AlreadyExistsException();
@@ -2753,12 +2826,20 @@ public class ThriftHiveMetastore {
             break;
           case O2:
             if (field.type == TType.STRUCT) {
-              this.o2 = new MetaException();
+              this.o2 = new InvalidObjectException();
               this.o2.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
+          case O3:
+            if (field.type == TType.STRUCT) {
+              this.o3 = new MetaException();
+              this.o3.read(iprot);
+            } else { 
+              TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -2773,11 +2854,7 @@ public class ThriftHiveMetastore {
     public void write(TProtocol oprot) throws TException {
       oprot.writeStructBegin(STRUCT_DESC);
 
-      if (this.isSetSuccess()) {
-        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-        oprot.writeBool(this.success);
-        oprot.writeFieldEnd();
-      } else if (this.isSetO1()) {
+      if (this.isSetO1()) {
         oprot.writeFieldBegin(O1_FIELD_DESC);
         this.o1.write(oprot);
         oprot.writeFieldEnd();
@@ -2785,6 +2862,10 @@ public class ThriftHiveMetastore {
         oprot.writeFieldBegin(O2_FIELD_DESC);
         this.o2.write(oprot);
         oprot.writeFieldEnd();
+      } else if (this.isSetO3()) {
+        oprot.writeFieldBegin(O3_FIELD_DESC);
+        this.o3.write(oprot);
+        oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
@@ -2795,10 +2876,6 @@ public class ThriftHiveMetastore {
       StringBuilder sb = new StringBuilder("create_database_result(");
       boolean first = true;
 
-      sb.append("success:");
-      sb.append(this.success);
-      first = false;
-      if (!first) sb.append(", ");
       sb.append("o1:");
       if (this.o1 == null) {
         sb.append("null");
@@ -2814,6 +2891,14 @@ public class ThriftHiveMetastore {
         sb.append(this.o2);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("o3:");
+      if (this.o3 == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.o3);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -3348,17 +3433,23 @@ public class ThriftHiveMetastore {
   public static class drop_database_args implements TBase, java.io.Serializable, Cloneable   {
     private static final TStruct STRUCT_DESC = new TStruct("drop_database_args");
     private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
+    private static final TField DELETE_DATA_FIELD_DESC = new TField("deleteData", TType.BOOL, (short)2);
 
     private String name;
     public static final int NAME = 1;
+    private boolean deleteData;
+    public static final int DELETEDATA = 2;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
+      public boolean deleteData = false;
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
       put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRING)));
+      put(DELETEDATA, new FieldMetaData("deleteData", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.BOOL)));
     }});
 
     static {
@@ -3369,10 +3460,13 @@ public class ThriftHiveMetastore {
     }
 
     public drop_database_args(
-      String name)
+      String name,
+      boolean deleteData)
     {
       this();
       this.name = name;
+      this.deleteData = deleteData;
+      this.__isset.deleteData = true;
     }
 
     /**
@@ -3382,6 +3476,8 @@ public class ThriftHiveMetastore {
       if (other.isSetName()) {
         this.name = other.name;
       }
+      __isset.deleteData = other.__isset.deleteData;
+      this.deleteData = other.deleteData;
     }
 
     @Override
@@ -3406,6 +3502,24 @@ public class ThriftHiveMetastore {
       return this.name != null;
     }
 
+    public boolean isDeleteData() {
+      return this.deleteData;
+    }
+
+    public void setDeleteData(boolean deleteData) {
+      this.deleteData = deleteData;
+      this.__isset.deleteData = true;
+    }
+
+    public void unsetDeleteData() {
+      this.__isset.deleteData = false;
+    }
+
+    // Returns true if field deleteData is set (has been asigned a value) and false otherwise
+    public boolean isSetDeleteData() {
+      return this.__isset.deleteData;
+    }
+
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
       case NAME:
@@ -3416,6 +3530,14 @@ public class ThriftHiveMetastore {
         }
         break;
 
+      case DELETEDATA:
+        if (value == null) {
+          unsetDeleteData();
+        } else {
+          setDeleteData((Boolean)value);
+        }
+        break;
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3426,6 +3548,9 @@ public class ThriftHiveMetastore {
       case NAME:
         return getName();
 
+      case DELETEDATA:
+        return new Boolean(isDeleteData());
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3436,6 +3561,8 @@ public class ThriftHiveMetastore {
       switch (fieldID) {
       case NAME:
         return isSetName();
+      case DELETEDATA:
+        return isSetDeleteData();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3463,6 +3590,15 @@ public class ThriftHiveMetastore {
           return false;
       }
 
+      boolean this_present_deleteData = true;
+      boolean that_present_deleteData = true;
+      if (this_present_deleteData || that_present_deleteData) {
+        if (!(this_present_deleteData && that_present_deleteData))
+          return false;
+        if (this.deleteData != that.deleteData)
+          return false;
+      }
+
       return true;
     }
 
@@ -3489,6 +3625,14 @@ public class ThriftHiveMetastore {
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
+          case DELETEDATA:
+            if (field.type == TType.BOOL) {
+              this.deleteData = iprot.readBool();
+              this.__isset.deleteData = true;
+            } else { 
+              TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -3509,6 +3653,9 @@ public class ThriftHiveMetastore {
         oprot.writeString(this.name);
         oprot.writeFieldEnd();
       }
+      oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC);
+      oprot.writeBool(this.deleteData);
+      oprot.writeFieldEnd();
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
@@ -3525,6 +3672,10 @@ public class ThriftHiveMetastore {
         sb.append(this.name);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("deleteData:");
+      sb.append(this.deleteData);
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -3538,24 +3689,28 @@ public class ThriftHiveMetastore {
 
   public static class drop_database_result implements TBase, java.io.Serializable, Cloneable   {
     private static final TStruct STRUCT_DESC = new TStruct("drop_database_result");
-    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
+    private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1);
     private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2);
+    private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3);
 
-    private boolean success;
-    public static final int SUCCESS = 0;
-    private MetaException o2;
+    private NoSuchObjectException o1;
+    public static final int O1 = 1;
+    private InvalidOperationException o2;
     public static final int O2 = 2;
+    private MetaException o3;
+    public static final int O3 = 3;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
-      public boolean success = false;
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
-      put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.BOOL)));
+      put(O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
       put(O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
+      put(O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRUCT)));
     }});
 
     static {
@@ -3566,23 +3721,28 @@ public class ThriftHiveMetastore {
     }
 
     public drop_database_result(
-      boolean success,
-      MetaException o2)
+      NoSuchObjectException o1,
+      InvalidOperationException o2,
+      MetaException o3)
     {
       this();
-      this.success = success;
-      this.__isset.success = true;
+      this.o1 = o1;
       this.o2 = o2;
+      this.o3 = o3;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
     public drop_database_result(drop_database_result other) {
-      __isset.success = other.__isset.success;
-      this.success = other.success;
+      if (other.isSetO1()) {
+        this.o1 = new NoSuchObjectException(other.o1);
+      }
       if (other.isSetO2()) {
-        this.o2 = new MetaException(other.o2);
+        this.o2 = new InvalidOperationException(other.o2);
+      }
+      if (other.isSetO3()) {
+        this.o3 = new MetaException(other.o3);
       }
     }
 
@@ -3591,29 +3751,28 @@ public class ThriftHiveMetastore {
       return new drop_database_result(this);
     }
 
-    public boolean isSuccess() {
-      return this.success;
+    public NoSuchObjectException getO1() {
+      return this.o1;
     }
 
-    public void setSuccess(boolean success) {
-      this.success = success;
-      this.__isset.success = true;
+    public void setO1(NoSuchObjectException o1) {
+      this.o1 = o1;
     }
 
-    public void unsetSuccess() {
-      this.__isset.success = false;
+    public void unsetO1() {
+      this.o1 = null;
     }
 
-    // Returns true if field success is set (has been asigned a value) and false otherwise
-    public boolean isSetSuccess() {
-      return this.__isset.success;
+    // Returns true if field o1 is set (has been asigned a value) and false otherwise
+    public boolean isSetO1() {
+      return this.o1 != null;
     }
 
-    public MetaException getO2() {
+    public InvalidOperationException getO2() {
       return this.o2;
     }
 
-    public void setO2(MetaException o2) {
+    public void setO2(InvalidOperationException o2) {
       this.o2 = o2;
     }
 
@@ -3626,13 +3785,30 @@ public class ThriftHiveMetastore {
       return this.o2 != null;
     }
 
+    public MetaException getO3() {
+      return this.o3;
+    }
+
+    public void setO3(MetaException o3) {
+      this.o3 = o3;
+    }
+
+    public void unsetO3() {
+      this.o3 = null;
+    }
+
+    // Returns true if field o3 is set (has been asigned a value) and false otherwise
+    public boolean isSetO3() {
+      return this.o3 != null;
+    }
+
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
-      case SUCCESS:
+      case O1:
         if (value == null) {
-          unsetSuccess();
+          unsetO1();
         } else {
-          setSuccess((Boolean)value);
+          setO1((NoSuchObjectException)value);
         }
         break;
 
@@ -3640,23 +3816,34 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO2();
         } else {
-          setO2((MetaException)value);
+          setO2((InvalidOperationException)value);
         }
         break;
 
-      default:
-        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
-      }
-    }
+      case O3:
+        if (value == null) {
+          unsetO3();
+        } else {
+          setO3((MetaException)value);
+        }
+        break;
+
+      default:
+        throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
+      }
+    }
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case SUCCESS:
-        return new Boolean(isSuccess());
+      case O1:
+        return getO1();
 
       case O2:
         return getO2();
 
+      case O3:
+        return getO3();
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3665,10 +3852,12 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
-      case SUCCESS:
-        return isSetSuccess();
+      case O1:
+        return isSetO1();
       case O2:
         return isSetO2();
+      case O3:
+        return isSetO3();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3687,12 +3876,12 @@ public class ThriftHiveMetastore {
       if (that == null)
         return false;
 
-      boolean this_present_success = true;
-      boolean that_present_success = true;
-      if (this_present_success || that_present_success) {
-        if (!(this_present_success && that_present_success))
+      boolean this_present_o1 = true && this.isSetO1();
+      boolean that_present_o1 = true && that.isSetO1();
+      if (this_present_o1 || that_present_o1) {
+        if (!(this_present_o1 && that_present_o1))
           return false;
-        if (this.success != that.success)
+        if (!this.o1.equals(that.o1))
           return false;
       }
 
@@ -3705,6 +3894,15 @@ public class ThriftHiveMetastore {
           return false;
       }
 
+      boolean this_present_o3 = true && this.isSetO3();
+      boolean that_present_o3 = true && that.isSetO3();
+      if (this_present_o3 || that_present_o3) {
+        if (!(this_present_o3 && that_present_o3))
+          return false;
+        if (!this.o3.equals(that.o3))
+          return false;
+      }
+
       return true;
     }
 
@@ -3724,22 +3922,30 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
-          case SUCCESS:
-            if (field.type == TType.BOOL) {
-              this.success = iprot.readBool();
-              this.__isset.success = true;
+          case O1:
+            if (field.type == TType.STRUCT) {
+              this.o1 = new NoSuchObjectException();
+              this.o1.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
           case O2:
             if (field.type == TType.STRUCT) {
-              this.o2 = new MetaException();
+              this.o2 = new InvalidOperationException();
               this.o2.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
+          case O3:
+            if (field.type == TType.STRUCT) {
+              this.o3 = new MetaException();
+              this.o3.read(iprot);
+            } else { 
+              TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -3754,14 +3960,18 @@ public class ThriftHiveMetastore {
     public void write(TProtocol oprot) throws TException {
       oprot.writeStructBegin(STRUCT_DESC);
 
-      if (this.isSetSuccess()) {
-        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-        oprot.writeBool(this.success);
+      if (this.isSetO1()) {
+        oprot.writeFieldBegin(O1_FIELD_DESC);
+        this.o1.write(oprot);
         oprot.writeFieldEnd();
       } else if (this.isSetO2()) {
         oprot.writeFieldBegin(O2_FIELD_DESC);
         this.o2.write(oprot);
         oprot.writeFieldEnd();
+      } else if (this.isSetO3()) {
+        oprot.writeFieldBegin(O3_FIELD_DESC);
+        this.o3.write(oprot);
+        oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
@@ -3772,8 +3982,12 @@ public class ThriftHiveMetastore {
       StringBuilder sb = new StringBuilder("drop_database_result(");
       boolean first = true;
 
-      sb.append("success:");
-      sb.append(this.success);
+      sb.append("o1:");
+      if (this.o1 == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.o1);
+      }
       first = false;
       if (!first) sb.append(", ");
       sb.append("o2:");
@@ -3783,6 +3997,14 @@ public class ThriftHiveMetastore {
         sb.append(this.o2);
       }
       first = false;
+      if (!first) sb.append(", ");
+      sb.append("o3:");
+      if (this.o3 == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.o3);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -3796,8 +4018,18 @@ public class ThriftHiveMetastore {
 
   public static class get_databases_args implements TBase, java.io.Serializable, Cloneable   {
     private static final TStruct STRUCT_DESC = new TStruct("get_databases_args");
+    private static final TField PATTERN_FIELD_DESC = new TField("pattern", TType.STRING, (short)1);
+
+    private String pattern;
+    public static final int PATTERN = 1;
+
+    private final Isset __isset = new Isset();
+    private static final class Isset implements java.io.Serializable {
+    }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
+      put(PATTERN, new FieldMetaData("pattern", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
     }});
 
     static {
@@ -3807,10 +4039,20 @@ public class ThriftHiveMetastore {
     public get_databases_args() {
     }
 
+    public get_databases_args(
+      String pattern)
+    {
+      this();
+      this.pattern = pattern;
+    }
+
     /**
      * Performs a deep copy on <i>other</i>.
      */
     public get_databases_args(get_databases_args other) {
+      if (other.isSetPattern()) {
+        this.pattern = other.pattern;
+      }
     }
 
     @Override
@@ -3818,8 +4060,33 @@ public class ThriftHiveMetastore {
       return new get_databases_args(this);
     }
 
+    public String getPattern() {
+      return this.pattern;
+    }
+
+    public void setPattern(String pattern) {
+      this.pattern = pattern;
+    }
+
+    public void unsetPattern() {
+      this.pattern = null;
+    }
+
+    // Returns true if field pattern is set (has been asigned a value) and false otherwise
+    public boolean isSetPattern() {
+      return this.pattern != null;
+    }
+
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
+      case PATTERN:
+        if (value == null) {
+          unsetPattern();
+        } else {
+          setPattern((String)value);
+        }
+        break;
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3827,6 +4094,9 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
+      case PATTERN:
+        return getPattern();
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3835,6 +4105,8 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
+      case PATTERN:
+        return isSetPattern();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3853,6 +4125,15 @@ public class ThriftHiveMetastore {
       if (that == null)
         return false;
 
+      boolean this_present_pattern = true && this.isSetPattern();
+      boolean that_present_pattern = true && that.isSetPattern();
+      if (this_present_pattern || that_present_pattern) {
+        if (!(this_present_pattern && that_present_pattern))
+          return false;
+        if (!this.pattern.equals(that.pattern))
+          return false;
+      }
+
       return true;
     }
 
@@ -3872,6 +4153,13 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
+          case PATTERN:
+            if (field.type == TType.STRING) {
+              this.pattern = iprot.readString();
+            } else { 
+              TProtocolUtil.skip(iprot, field.type);
+            }
+            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -3887,6 +4175,11 @@ public class ThriftHiveMetastore {
       validate();
 
       oprot.writeStructBegin(STRUCT_DESC);
+      if (this.pattern != null) {
+        oprot.writeFieldBegin(PATTERN_FIELD_DESC);
+        oprot.writeString(this.pattern);
+        oprot.writeFieldEnd();
+      }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
@@ -3896,6 +4189,13 @@ public class ThriftHiveMetastore {
       StringBuilder sb = new StringBuilder("get_databases_args(");
       boolean first = true;
 
+      sb.append("pattern:");
+      if (this.pattern == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.pattern);
+      }
+      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -4202,77 +4502,32 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class get_type_args implements TBase, java.io.Serializable, Cloneable   {
-    private static final TStruct STRUCT_DESC = new TStruct("get_type_args");
-    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
-
-    private String name;
-    public static final int NAME = 1;
-
-    private final Isset __isset = new Isset();
-    private static final class Isset implements java.io.Serializable {
-    }
+  public static class get_all_databases_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_all_databases_args");
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
-      put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.STRING)));
     }});
 
     static {
-      FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap);
-    }
-
-    public get_type_args() {
+      FieldMetaData.addStructMetaDataMap(get_all_databases_args.class, metaDataMap);
     }
 
-    public get_type_args(
-      String name)
-    {
-      this();
-      this.name = name;
+    public get_all_databases_args() {
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public get_type_args(get_type_args other) {
-      if (other.isSetName()) {
-        this.name = other.name;
-      }
+    public get_all_databases_args(get_all_databases_args other) {
     }
 
     @Override
-    public get_type_args clone() {
-      return new get_type_args(this);
-    }
-
-    public String getName() {
-      return this.name;
-    }
-
-    public void setName(String name) {
-      this.name = name;
-    }
-
-    public void unsetName() {
-      this.name = null;
-    }
-
-    // Returns true if field name is set (has been asigned a value) and false otherwise
-    public boolean isSetName() {
-      return this.name != null;
+    public get_all_databases_args clone() {
+      return new get_all_databases_args(this);
     }
 
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
-      case NAME:
-        if (value == null) {
-          unsetName();
-        } else {
-          setName((String)value);
-        }
-        break;
-
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4280,9 +4535,6 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case NAME:
-        return getName();
-
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4291,8 +4543,6 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
-      case NAME:
-        return isSetName();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4302,24 +4552,15 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof get_type_args)
-        return this.equals((get_type_args)that);
+      if (that instanceof get_all_databases_args)
+        return this.equals((get_all_databases_args)that);
       return false;
     }
 
-    public boolean equals(get_type_args that) {
+    public boolean equals(get_all_databases_args that) {
       if (that == null)
         return false;
 
-      boolean this_present_name = true && this.isSetName();
-      boolean that_present_name = true && that.isSetName();
-      if (this_present_name || that_present_name) {
-        if (!(this_present_name && that_present_name))
-          return false;
-        if (!this.name.equals(that.name))
-          return false;
-      }
-
       return true;
     }
 
@@ -4339,13 +4580,6 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
-          case NAME:
-            if (field.type == TType.STRING) {
-              this.name = iprot.readString();
-            } else { 
-              TProtocolUtil.skip(iprot, field.type);
-            }
-            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -4361,27 +4595,15 @@ public class ThriftHiveMetastore {
       validate();
 
       oprot.writeStructBegin(STRUCT_DESC);
-      if (this.name != null) {
-        oprot.writeFieldBegin(NAME_FIELD_DESC);
-        oprot.writeString(this.name);
-        oprot.writeFieldEnd();
-      }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
     }
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("get_type_args(");
+      StringBuilder sb = new StringBuilder("get_all_databases_args(");
       boolean first = true;
 
-      sb.append("name:");
-      if (this.name == null) {
-        sb.append("null");
-      } else {
-        sb.append(this.name);
-      }
-      first = false;
       sb.append(")");
       return sb.toString();
     }
@@ -4393,15 +4615,15 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class get_type_result implements TBase, java.io.Serializable, Cloneable   {
-    private static final TStruct STRUCT_DESC = new TStruct("get_type_result");
-    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
-    private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)1);
-
-    private Type success;
+  public static class get_all_databases_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_all_databases_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
+    private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1);
+
+    private List<String> success;
     public static final int SUCCESS = 0;
-    private MetaException o2;
-    public static final int O2 = 1;
+    private MetaException o1;
+    public static final int O1 = 1;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
@@ -4409,49 +4631,69 @@ public class ThriftHiveMetastore {
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
       put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-          new StructMetaData(TType.STRUCT, Type.class)));
-      put(O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, 
+          new ListMetaData(TType.LIST, 
+              new FieldValueMetaData(TType.STRING))));
+      put(O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
     }});
 
     static {
-      FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap);
+      FieldMetaData.addStructMetaDataMap(get_all_databases_result.class, metaDataMap);
     }
 
-    public get_type_result() {
+    public get_all_databases_result() {
     }
 
-    public get_type_result(
-      Type success,
-      MetaException o2)
+    public get_all_databases_result(
+      List<String> success,
+      MetaException o1)
     {
       this();
       this.success = success;
-      this.o2 = o2;
+      this.o1 = o1;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public get_type_result(get_type_result other) {
+    public get_all_databases_result(get_all_databases_result other) {
       if (other.isSetSuccess()) {
-        this.success = new Type(other.success);
+        List<String> __this__success = new ArrayList<String>();
+        for (String other_element : other.success) {
+          __this__success.add(other_element);
+        }
+        this.success = __this__success;
       }
-      if (other.isSetO2()) {
-        this.o2 = new MetaException(other.o2);
+      if (other.isSetO1()) {
+        this.o1 = new MetaException(other.o1);
       }
     }
 
     @Override
-    public get_type_result clone() {
-      return new get_type_result(this);
+    public get_all_databases_result clone() {
+      return new get_all_databases_result(this);
     }
 
-    public Type getSuccess() {
+    public int getSuccessSize() {
+      return (this.success == null) ? 0 : this.success.size();
+    }
+
+    public java.util.Iterator<String> getSuccessIterator() {
+      return (this.success == null) ? null : this.success.iterator();
+    }
+
+    public void addToSuccess(String elem) {
+      if (this.success == null) {
+        this.success = new ArrayList<String>();
+      }
+      this.success.add(elem);
+    }
+
+    public List<String> getSuccess() {
       return this.success;
     }
 
-    public void setSuccess(Type success) {
+    public void setSuccess(List<String> success) {
       this.success = success;
     }
 
@@ -4464,21 +4706,21 @@ public class ThriftHiveMetastore {
       return this.success != null;
     }
 
-    public MetaException getO2() {
-      return this.o2;
+    public MetaException getO1() {
+      return this.o1;
     }
 
-    public void setO2(MetaException o2) {
-      this.o2 = o2;
+    public void setO1(MetaException o1) {
+      this.o1 = o1;
     }
 
-    public void unsetO2() {
-      this.o2 = null;
+    public void unsetO1() {
+      this.o1 = null;
     }
 
-    // Returns true if field o2 is set (has been asigned a value) and false otherwise
-    public boolean isSetO2() {
-      return this.o2 != null;
+    // Returns true if field o1 is set (has been asigned a value) and false otherwise
+    public boolean isSetO1() {
+      return this.o1 != null;
     }
 
     public void setFieldValue(int fieldID, Object value) {
@@ -4487,15 +4729,15 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetSuccess();
         } else {
-          setSuccess((Type)value);
+          setSuccess((List<String>)value);
         }
         break;
 
-      case O2:
+      case O1:
         if (value == null) {
-          unsetO2();
+          unsetO1();
         } else {
-          setO2((MetaException)value);
+          setO1((MetaException)value);
         }
         break;
 
@@ -4509,8 +4751,8 @@ public class ThriftHiveMetastore {
       case SUCCESS:
         return getSuccess();
 
-      case O2:
-        return getO2();
+      case O1:
+        return getO1();
 
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
@@ -4522,8 +4764,8 @@ public class ThriftHiveMetastore {
       switch (fieldID) {
       case SUCCESS:
         return isSetSuccess();
-      case O2:
-        return isSetO2();
+      case O1:
+        return isSetO1();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4533,12 +4775,12 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof get_type_result)
-        return this.equals((get_type_result)that);
+      if (that instanceof get_all_databases_result)
+        return this.equals((get_all_databases_result)that);
       return false;
     }
 
-    public boolean equals(get_type_result that) {
+    public boolean equals(get_all_databases_result that) {
       if (that == null)
         return false;
 
@@ -4551,12 +4793,12 @@ public class ThriftHiveMetastore {
           return false;
       }
 
-      boolean this_present_o2 = true && this.isSetO2();
-      boolean that_present_o2 = true && that.isSetO2();
-      if (this_present_o2 || that_present_o2) {
-        if (!(this_present_o2 && that_present_o2))
+      boolean this_present_o1 = true && this.isSetO1();
+      boolean that_present_o1 = true && that.isSetO1();
+      if (this_present_o1 || that_present_o1) {
+        if (!(this_present_o1 && that_present_o1))
           return false;
-        if (!this.o2.equals(that.o2))
+        if (!this.o1.equals(that.o1))
           return false;
       }
 
@@ -4580,17 +4822,26 @@ public class ThriftHiveMetastore {
         switch (field.id)
         {
           case SUCCESS:
-            if (field.type == TType.STRUCT) {
-              this.success = new Type();
-              this.success.read(iprot);
+            if (field.type == TType.LIST) {
+              {
+                TList _list61 = iprot.readListBegin();
+                this.success = new ArrayList<String>(_list61.size);
+                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
+                {
+                  String _elem63;
+                  _elem63 = iprot.readString();
+                  this.success.add(_elem63);
+                }
+                iprot.readListEnd();
+              }
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case O2:
+          case O1:
             if (field.type == TType.STRUCT) {
-              this.o2 = new MetaException();
-              this.o2.read(iprot);
+              this.o1 = new MetaException();
+              this.o1.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
@@ -4611,11 +4862,17 @@ public class ThriftHiveMetastore {
 
       if (this.isSetSuccess()) {
         oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-        this.success.write(oprot);
+        {
+          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
+          for (String _iter64 : this.success)          {
+            oprot.writeString(_iter64);
+          }
+          oprot.writeListEnd();
+        }
         oprot.writeFieldEnd();
-      } else if (this.isSetO2()) {
-        oprot.writeFieldBegin(O2_FIELD_DESC);
-        this.o2.write(oprot);
+      } else if (this.isSetO1()) {
+        oprot.writeFieldBegin(O1_FIELD_DESC);
+        this.o1.write(oprot);
         oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
@@ -4624,7 +4881,7 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("get_type_result(");
+      StringBuilder sb = new StringBuilder("get_all_databases_result(");
       boolean first = true;
 
       sb.append("success:");
@@ -4635,11 +4892,11 @@ public class ThriftHiveMetastore {
       }
       first = false;
       if (!first) sb.append(", ");
-      sb.append("o2:");
-      if (this.o2 == null) {
+      sb.append("o1:");
+      if (this.o1 == null) {
         sb.append("null");
       } else {
-        sb.append(this.o2);
+        sb.append(this.o1);
       }
       first = false;
       sb.append(")");
@@ -4653,74 +4910,74 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class create_type_args implements TBase, java.io.Serializable, Cloneable   {
-    private static final TStruct STRUCT_DESC = new TStruct("create_type_args");
-    private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRUCT, (short)1);
+  public static class get_type_args implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_type_args");
+    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
 
-    private Type type;
-    public static final int TYPE = 1;
+    private String name;
+    public static final int NAME = 1;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
-      put(TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-          new StructMetaData(TType.STRUCT, Type.class)));
+      put(NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
+          new FieldValueMetaData(TType.STRING)));
     }});
 
     static {
-      FieldMetaData.addStructMetaDataMap(create_type_args.class, metaDataMap);
+      FieldMetaData.addStructMetaDataMap(get_type_args.class, metaDataMap);
     }
 
-    public create_type_args() {
+    public get_type_args() {
     }
 
-    public create_type_args(
-      Type type)
+    public get_type_args(
+      String name)
     {
       this();
-      this.type = type;
+      this.name = name;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public create_type_args(create_type_args other) {
-      if (other.isSetType()) {
-        this.type = new Type(other.type);
+    public get_type_args(get_type_args other) {
+      if (other.isSetName()) {
+        this.name = other.name;
       }
     }
 
     @Override
-    public create_type_args clone() {
-      return new create_type_args(this);
+    public get_type_args clone() {
+      return new get_type_args(this);
     }
 
-    public Type getType() {
-      return this.type;
+    public String getName() {
+      return this.name;
     }
 
-    public void setType(Type type) {
-      this.type = type;
+    public void setName(String name) {
+      this.name = name;
     }
 
-    public void unsetType() {
-      this.type = null;
+    public void unsetName() {
+      this.name = null;
     }
 
-    // Returns true if field type is set (has been asigned a value) and false otherwise
-    public boolean isSetType() {
-      return this.type != null;
+    // Returns true if field name is set (has been asigned a value) and false otherwise
+    public boolean isSetName() {
+      return this.name != null;
     }
 
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
-      case TYPE:
+      case NAME:
         if (value == null) {
-          unsetType();
+          unsetName();
         } else {
-          setType((Type)value);
+          setName((String)value);
         }
         break;
 
@@ -4731,8 +4988,8 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case TYPE:
-        return getType();
+      case NAME:
+        return getName();
 
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
@@ -4742,8 +4999,8 @@ public class ThriftHiveMetastore {
     // Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
     public boolean isSet(int fieldID) {
       switch (fieldID) {
-      case TYPE:
-        return isSetType();
+      case NAME:
+        return isSetName();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4753,21 +5010,21 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof create_type_args)
-        return this.equals((create_type_args)that);
+      if (that instanceof get_type_args)
+        return this.equals((get_type_args)that);
       return false;
     }
 
-    public boolean equals(create_type_args that) {
+    public boolean equals(get_type_args that) {
       if (that == null)
         return false;
 
-      boolean this_present_type = true && this.isSetType();
-      boolean that_present_type = true && that.isSetType();
-      if (this_present_type || that_present_type) {
-        if (!(this_present_type && that_present_type))
+      boolean this_present_name = true && this.isSetName();
+      boolean that_present_name = true && that.isSetName();
+      if (this_present_name || that_present_name) {
+        if (!(this_present_name && that_present_name))
           return false;
-        if (!this.type.equals(that.type))
+        if (!this.name.equals(that.name))
           return false;
       }
 
@@ -4790,10 +5047,9 @@ public class ThriftHiveMetastore {
         }
         switch (field.id)
         {
-          case TYPE:
-            if (field.type == TType.STRUCT) {
-              this.type = new Type();
-              this.type.read(iprot);
+          case NAME:
+            if (field.type == TType.STRING) {
+              this.name = iprot.readString();
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
@@ -4813,9 +5069,9 @@ public class ThriftHiveMetastore {
       validate();
 
       oprot.writeStructBegin(STRUCT_DESC);
-      if (this.type != null) {
-        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-        this.type.write(oprot);
+      if (this.name != null) {
+        oprot.writeFieldBegin(NAME_FIELD_DESC);
+        oprot.writeString(this.name);
         oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
@@ -4824,14 +5080,14 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("create_type_args(");
+      StringBuilder sb = new StringBuilder("get_type_args(");
       boolean first = true;
 
-      sb.append("type:");
-      if (this.type == null) {
+      sb.append("name:");
+      if (this.name == null) {
         sb.append("null");
       } else {
-        sb.append(this.type);
+        sb.append(this.name);
       }
       first = false;
       sb.append(")");
@@ -4845,104 +5101,92 @@ public class ThriftHiveMetastore {
 
   }
 
-  public static class create_type_result implements TBase, java.io.Serializable, Cloneable   {
-    private static final TStruct STRUCT_DESC = new TStruct("create_type_result");
-    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
+  public static class get_type_result implements TBase, java.io.Serializable, Cloneable   {
+    private static final TStruct STRUCT_DESC = new TStruct("get_type_result");
+    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
     private static final TField O1_FIELD_DESC = new TField("o1", TType.STRUCT, (short)1);
     private static final TField O2_FIELD_DESC = new TField("o2", TType.STRUCT, (short)2);
-    private static final TField O3_FIELD_DESC = new TField("o3", TType.STRUCT, (short)3);
 
-    private boolean success;
+    private Type success;
     public static final int SUCCESS = 0;
-    private AlreadyExistsException o1;
+    private MetaException o1;
     public static final int O1 = 1;
-    private InvalidObjectException o2;
+    private NoSuchObjectException o2;
     public static final int O2 = 2;
-    private MetaException o3;
-    public static final int O3 = 3;
 
     private final Isset __isset = new Isset();
     private static final class Isset implements java.io.Serializable {
-      public boolean success = false;
     }
 
     public static final Map<Integer, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new HashMap<Integer, FieldMetaData>() {{
       put(SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.BOOL)));
+          new StructMetaData(TType.STRUCT, Type.class)));
       put(O1, new FieldMetaData("o1", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
       put(O2, new FieldMetaData("o2", TFieldRequirementType.DEFAULT, 
           new FieldValueMetaData(TType.STRUCT)));
-      put(O3, new FieldMetaData("o3", TFieldRequirementType.DEFAULT, 
-          new FieldValueMetaData(TType.STRUCT)));
     }});
 
     static {
-      FieldMetaData.addStructMetaDataMap(create_type_result.class, metaDataMap);
+      FieldMetaData.addStructMetaDataMap(get_type_result.class, metaDataMap);
     }
 
-    public create_type_result() {
+    public get_type_result() {
     }
 
-    public create_type_result(
-      boolean success,
-      AlreadyExistsException o1,
-      InvalidObjectException o2,
-      MetaException o3)
+    public get_type_result(
+      Type success,
+      MetaException o1,
+      NoSuchObjectException o2)
     {
       this();
       this.success = success;
-      this.__isset.success = true;
       this.o1 = o1;
       this.o2 = o2;
-      this.o3 = o3;
     }
 
     /**
      * Performs a deep copy on <i>other</i>.
      */
-    public create_type_result(create_type_result other) {
-      __isset.success = other.__isset.success;
-      this.success = other.success;
+    public get_type_result(get_type_result other) {
+      if (other.isSetSuccess()) {
+        this.success = new Type(other.success);
+      }
       if (other.isSetO1()) {
-        this.o1 = new AlreadyExistsException(other.o1);
+        this.o1 = new MetaException(other.o1);
       }
       if (other.isSetO2()) {
-        this.o2 = new InvalidObjectException(other.o2);
-      }
-      if (other.isSetO3()) {
-        this.o3 = new MetaException(other.o3);
+        this.o2 = new NoSuchObjectException(other.o2);
       }
     }
 
     @Override
-    public create_type_result clone() {
-      return new create_type_result(this);
+    public get_type_result clone() {
+      return new get_type_result(this);
     }
 
-    public boolean isSuccess() {
+    public Type getSuccess() {
       return this.success;
     }
 
-    public void setSuccess(boolean success) {
+    public void setSuccess(Type success) {
       this.success = success;
-      this.__isset.success = true;
     }
 
     public void unsetSuccess() {
-      this.__isset.success = false;
+      this.success = null;
     }
 
     // Returns true if field success is set (has been asigned a value) and false otherwise
     public boolean isSetSuccess() {
-      return this.__isset.success;
+      return this.success != null;
     }
 
-    public AlreadyExistsException getO1() {
+    public MetaException getO1() {
       return this.o1;
     }
 
-    public void setO1(AlreadyExistsException o1) {
+    public void setO1(MetaException o1) {
       this.o1 = o1;
     }
 
@@ -4955,11 +5199,11 @@ public class ThriftHiveMetastore {
       return this.o1 != null;
     }
 
-    public InvalidObjectException getO2() {
+    public NoSuchObjectException getO2() {
       return this.o2;
     }
 
-    public void setO2(InvalidObjectException o2) {
+    public void setO2(NoSuchObjectException o2) {
       this.o2 = o2;
     }
 
@@ -4972,30 +5216,13 @@ public class ThriftHiveMetastore {
       return this.o2 != null;
     }
 
-    public MetaException getO3() {
-      return this.o3;
-    }
-
-    public void setO3(MetaException o3) {
-      this.o3 = o3;
-    }
-
-    public void unsetO3() {
-      this.o3 = null;
-    }
-
-    // Returns true if field o3 is set (has been asigned a value) and false otherwise
-    public boolean isSetO3() {
-      return this.o3 != null;
-    }
-
     public void setFieldValue(int fieldID, Object value) {
       switch (fieldID) {
       case SUCCESS:
         if (value == null) {
           unsetSuccess();
         } else {
-          setSuccess((Boolean)value);
+          setSuccess((Type)value);
         }
         break;
 
@@ -5003,7 +5230,7 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO1();
         } else {
-          setO1((AlreadyExistsException)value);
+          setO1((MetaException)value);
         }
         break;
 
@@ -5011,15 +5238,7 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO2();
         } else {
-          setO2((InvalidObjectException)value);
-        }
-        break;
-
-      case O3:
-        if (value == null) {
-          unsetO3();
-        } else {
-          setO3((MetaException)value);
+          setO2((NoSuchObjectException)value);
         }
         break;
 
@@ -5031,7 +5250,7 @@ public class ThriftHiveMetastore {
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
       case SUCCESS:
-        return new Boolean(isSuccess());
+        return getSuccess();
 
       case O1:
         return getO1();
@@ -5039,9 +5258,6 @@ public class ThriftHiveMetastore {
       case O2:
         return getO2();
 
-      case O3:
-        return getO3();
-
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -5056,8 +5272,6 @@ public class ThriftHiveMetastore {
         return isSetO1();
       case O2:
         return isSetO2();
-      case O3:
-        return isSetO3();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -5067,21 +5281,21 @@ public class ThriftHiveMetastore {
     public boolean equals(Object that) {
       if (that == null)
         return false;
-      if (that instanceof create_type_result)
-        return this.equals((create_type_result)that);
+      if (that instanceof get_type_result)
+        return this.equals((get_type_result)that);
       return false;
     }
 
-    public boolean equals(create_type_result that) {
+    public boolean equals(get_type_result that) {
       if (that == null)
         return false;
 
-      boolean this_present_success = true;
-      boolean that_present_success = true;
+      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 != that.success)
+        if (!this.success.equals(that.success))
           return false;
       }
 
@@ -5103,15 +5317,6 @@ public class ThriftHiveMetastore {
           return false;
       }
 
-      boolean this_present_o3 = true && this.isSetO3();
-      boolean that_present_o3 = true && that.isSetO3();
-      if (this_present_o3 || that_present_o3) {
-        if (!(this_present_o3 && that_present_o3))
-          return false;
-        if (!this.o3.equals(that.o3))
-          return false;
-      }
-
       return true;
     }
 
@@ -5132,16 +5337,16 @@ public class ThriftHiveMetastore {
         switch (field.id)
         {
           case SUCCESS:
-            if (field.type == TType.BOOL) {
-              this.success = iprot.readBool();
-              this.__isset.success = true;
+            if (field.type == TType.STRUCT) {
+              this.success = new Type();
+              this.success.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
           case O1:
             if (field.type == TType.STRUCT) {
-              this.o1 = new AlreadyExistsException();
+              this.o1 = new MetaException();
               this.o1.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
@@ -5149,20 +5354,12 @@ public class ThriftHiveMetastore {
             break;
           case O2:
             if (field.type == TType.STRUCT) {
-              this.o2 = new InvalidObjectException();
+              this.o2 = new NoSuchObjectException();
               this.o2.read(iprot);
             } else { 
               TProtocolUtil.skip(iprot, field.type);
             }
             break;
-          case O3:
-            if (field.type == TType.STRUCT) {
-              this.o3 = new MetaException();
-              this.o3.read(iprot);
-            } else { 
-              TProtocolUtil.skip(iprot, field.type);
-            }
-            break;
           default:
             TProtocolUtil.skip(iprot, field.type);
             break;
@@ -5179,7 +5376,7 @@ public class ThriftHiveMetastore {
 
       if (this.isSetSuccess()) {
         oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-        oprot.writeBool(this.success);
+        this.success.write(oprot);
         oprot.writeFieldEnd();
       } else if (this.isSetO1()) {
         oprot.writeFieldBegin(O1_FIELD_DESC);
@@ -5189,10 +5386,6 @@ public class ThriftHiveMetastore {
         oprot.writeFieldBegin(O2_FIELD_DESC);
         this.o2.write(oprot);
         oprot.writeFieldEnd();
-      } else if (this.isSetO3()) {
-        oprot.writeFieldBegin(O3_FIELD_DESC);
-        this.o3.write(oprot);
-        oprot.writeFieldEnd();
       }
       oprot.writeFieldStop();
       oprot.writeStructEnd();
@@ -5200,11 +5393,15 @@ public class ThriftHiveMetastore {
 
     @Override
     public String toString() {
-      StringBuilder sb = new StringBuilder("create_type_result(");
+      StringBuilder sb = new StringBuilder("get_type_result(");
       boolean first = true;
 
       sb.append("success:");
-      sb.append(this.success);
+      if (this.success == null) {
+        sb.append("null");
+      } else {
+        sb.append(this.success);
+      }
       first = false;
       if (!first) sb.append(", ");
       sb.append("o1:");
@@ -5222,14 +5419,6 @@ public class ThriftHiveMetastore {
         sb.append(this.o2);
       }
       first = false;
-      if (!first) sb.append(", ");
-      sb.append("o3:");
-      if (this.o3 == null) {
-        sb.append("null");

[... 5125 lines stripped ...]