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/08/27 07:41:45 UTC

svn commit: r990026 [4/10] - in /hadoop/hive/trunk: ./ 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-py/hive_metastore/ metastore/src/ja...

Modified: hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java
URL: http://svn.apache.org/viewvc/hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java?rev=990026&r1=990025&r2=990026&view=diff
==============================================================================
--- hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java (original)
+++ hadoop/hive/trunk/metastore/src/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java Fri Aug 27 05:41:43 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;
@@ -108,24 +112,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) {
@@ -136,16 +139,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
@@ -187,23 +190,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) {
@@ -214,25 +218,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();
@@ -258,7 +266,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();
@@ -274,7 +317,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) {
@@ -288,6 +331,9 @@ public class ThriftHiveMetastore {
       if (result.isSetSuccess()) {
         return result.success;
       }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
       if (result.o2 != null) {
         throw result.o2;
       }
@@ -336,7 +382,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();
@@ -352,7 +398,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) {
@@ -366,6 +412,9 @@ public class ThriftHiveMetastore {
       if (result.isSetSuccess()) {
         return result.success;
       }
+      if (result.o1 != null) {
+        throw result.o1;
+      }
       if (result.o2 != null) {
         throw result.o2;
       }
@@ -611,6 +660,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);
@@ -1505,6 +1590,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());
@@ -1514,6 +1600,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());
@@ -1566,12 +1653,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");
@@ -1627,10 +1715,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");
@@ -1656,7 +1747,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) {
@@ -1676,6 +1767,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
       {
@@ -1685,7 +1804,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);
@@ -1747,7 +1868,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);
@@ -1950,6 +2073,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
       {
@@ -2611,23 +2762,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 {
@@ -2638,23 +2784,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);
       }
     }
 
@@ -2663,55 +2804,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;
 
@@ -2722,11 +2838,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!");
@@ -2736,10 +2849,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!");
       }
@@ -2758,21 +2869,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;
       }
 
@@ -2795,16 +2897,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);
             }
@@ -2824,14 +2920,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();
@@ -2843,19 +2934,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(")");
@@ -2871,29 +2954,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 {
@@ -2904,28 +2986,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);
       }
     }
 
@@ -2934,24 +3016,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;
     }
@@ -2969,11 +3033,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;
     }
 
@@ -2986,16 +3050,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();
@@ -3008,7 +3081,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;
 
@@ -3019,15 +3100,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!");
       }
@@ -3036,12 +3117,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!");
       }
@@ -3060,15 +3141,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) {
@@ -3087,6 +3159,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;
     }
 
@@ -3106,14 +3187,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();
@@ -3124,12 +3197,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;
@@ -3144,11 +3225,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();
@@ -3156,6 +3233,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();
@@ -3166,10 +3247,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");
@@ -3185,6 +3262,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();
     }
@@ -3719,17 +3804,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 {
@@ -3740,10 +3831,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;
     }
 
     /**
@@ -3753,6 +3847,8 @@ public class ThriftHiveMetastore {
       if (other.isSetName()) {
         this.name = other.name;
       }
+      __isset.deleteData = other.__isset.deleteData;
+      this.deleteData = other.deleteData;
     }
 
     @Override
@@ -3777,6 +3873,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:
@@ -3787,6 +3901,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!");
       }
@@ -3797,6 +3919,9 @@ public class ThriftHiveMetastore {
       case NAME:
         return getName();
 
+      case DELETEDATA:
+        return new Boolean(isDeleteData());
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3807,6 +3932,8 @@ public class ThriftHiveMetastore {
       switch (fieldID) {
       case NAME:
         return isSetName();
+      case DELETEDATA:
+        return isSetDeleteData();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -3834,6 +3961,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;
     }
 
@@ -3860,6 +3996,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;
@@ -3880,6 +4024,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();
     }
@@ -3896,6 +4043,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();
     }
@@ -3909,24 +4060,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 {
@@ -3937,23 +4092,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);
       }
     }
 
@@ -3962,29 +4122,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;
     }
 
@@ -3997,13 +4156,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;
 
@@ -4011,23 +4187,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!");
       }
@@ -4036,10 +4223,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!");
       }
@@ -4058,12 +4247,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;
       }
 
@@ -4076,6 +4265,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;
     }
 
@@ -4095,22 +4293,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;
@@ -4125,14 +4331,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();
@@ -4143,8 +4353,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:");
@@ -4154,6 +4368,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();
     }
@@ -4167,8 +4389,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 {
@@ -4178,10 +4410,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
@@ -4189,8 +4431,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!");
       }
@@ -4198,6 +4465,9 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
+      case PATTERN:
+        return getPattern();
+
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4206,6 +4476,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!");
       }
@@ -4224,6 +4496,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;
     }
 
@@ -4243,6 +4524,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;
@@ -4258,6 +4546,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();
     }
@@ -4267,6 +4560,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();
     }
@@ -4573,77 +4873,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!");
       }
@@ -4651,9 +4906,6 @@ public class ThriftHiveMetastore {
 
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
-      case NAME:
-        return getName();
-
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -4662,8 +4914,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!");
       }
@@ -4673,24 +4923,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;
     }
 
@@ -4710,13 +4951,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;
@@ -4732,27 +4966,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();
     }
@@ -4764,15 +4986,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 {
@@ -4780,49 +5002,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;
     }
 
@@ -4835,21 +5077,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) {
@@ -4858,15 +5100,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;
 
@@ -4880,8 +5122,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!");
@@ -4893,8 +5135,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!");
       }
@@ -4904,12 +5146,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;
 
@@ -4922,12 +5164,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;
       }
 
@@ -4951,17 +5193,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 _list62 = iprot.readListBegin();
+                this.success = new ArrayList<String>(_list62.size);
+                for (int _i63 = 0; _i63 < _list62.size; ++_i63)
+                {
+                  String _elem64;
+                  _elem64 = iprot.readString();
+                  this.success.add(_elem64);
+                }
+                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);
             }
@@ -4982,11 +5233,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 _iter65 : this.success)          {
+            oprot.writeString(_iter65);
+          }
+          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();
@@ -4995,7 +5252,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:");
@@ -5006,11 +5263,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(")");
@@ -5024,74 +5281,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;
 
@@ -5102,8 +5359,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!");
@@ -5113,8 +5370,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!");
       }
@@ -5124,21 +5381,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;
       }
 
@@ -5161,10 +5418,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);
             }
@@ -5184,9 +5440,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();
@@ -5195,14 +5451,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(")");
@@ -5216,104 +5472,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;
     }
 
@@ -5326,11 +5570,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;
     }
 
@@ -5343,30 +5587,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;
 
@@ -5374,7 +5601,7 @@ public class ThriftHiveMetastore {
         if (value == null) {
           unsetO1();
         } else {
-          setO1((AlreadyExistsException)value);
+          setO1((MetaException)value);
         }
         break;
 
@@ -5382,15 +5609,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;
 
@@ -5402,7 +5621,7 @@ public class ThriftHiveMetastore {
     public Object getFieldValue(int fieldID) {
       switch (fieldID) {
       case SUCCESS:
-        return new Boolean(isSuccess());
+        return getSuccess();
 
       case O1:
         return getO1();
@@ -5410,9 +5629,6 @@ public class ThriftHiveMetastore {
       case O2:
         return getO2();
 
-      case O3:
-        return getO3();
-
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -5427,8 +5643,6 @@ public class ThriftHiveMetastore {
         return isSetO1();
       case O2:
         return isSetO2();
-      case O3:
-        return isSetO3();
       default:
         throw new IllegalArgumentException("Field " + fieldID + " doesn't exist!");
       }
@@ -5438,21 +5652,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;
       }
 
@@ -5474,15 +5688,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;
     }
 
@@ -5503,16 +5708,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);
@@ -5520,20 +5725,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;
@@ -5550,7 +5747,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);
@@ -5560,10 +5757,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();
@@ -5571,11 +5764,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:");
@@ -5593,14 +5790,6 @@ 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);
-      }

[... 5186 lines stripped ...]