You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by br...@apache.org on 2014/09/08 06:38:26 UTC

svn commit: r1623263 [11/28] - in /hive/branches/spark: ./ accumulo-handler/src/java/org/apache/hadoop/hive/accumulo/predicate/ ant/src/org/apache/hadoop/hive/ant/ beeline/src/java/org/apache/hive/beeline/ beeline/src/test/org/apache/hive/beeline/ bin/...

Modified: hive/branches/spark/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php
URL: http://svn.apache.org/viewvc/hive/branches/spark/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php?rev=1623263&r1=1623262&r2=1623263&view=diff
==============================================================================
--- hive/branches/spark/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php (original)
+++ hive/branches/spark/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php Mon Sep  8 04:38:17 2014
@@ -44,6 +44,7 @@ interface ThriftHiveMetastoreIf extends 
   public function add_partition(\metastore\Partition $new_part);
   public function add_partition_with_environment_context(\metastore\Partition $new_part, \metastore\EnvironmentContext $environment_context);
   public function add_partitions($new_parts);
+  public function add_partitions_pspec($new_parts);
   public function append_partition($db_name, $tbl_name, $part_vals);
   public function add_partitions_req(\metastore\AddPartitionsRequest $request);
   public function append_partition_with_environment_context($db_name, $tbl_name, $part_vals, \metastore\EnvironmentContext $environment_context);
@@ -60,11 +61,13 @@ interface ThriftHiveMetastoreIf extends 
   public function get_partition_by_name($db_name, $tbl_name, $part_name);
   public function get_partitions($db_name, $tbl_name, $max_parts);
   public function get_partitions_with_auth($db_name, $tbl_name, $max_parts, $user_name, $group_names);
+  public function get_partitions_pspec($db_name, $tbl_name, $max_parts);
   public function get_partition_names($db_name, $tbl_name, $max_parts);
   public function get_partitions_ps($db_name, $tbl_name, $part_vals, $max_parts);
   public function get_partitions_ps_with_auth($db_name, $tbl_name, $part_vals, $max_parts, $user_name, $group_names);
   public function get_partition_names_ps($db_name, $tbl_name, $part_vals, $max_parts);
   public function get_partitions_by_filter($db_name, $tbl_name, $filter, $max_parts);
+  public function get_part_specs_by_filter($db_name, $tbl_name, $filter, $max_parts);
   public function get_partitions_by_expr(\metastore\PartitionsByExprRequest $req);
   public function get_partitions_by_names($db_name, $tbl_name, $names);
   public function alter_partition($db_name, $tbl_name, \metastore\Partition $new_part);
@@ -1745,6 +1748,66 @@ class ThriftHiveMetastoreClient extends 
     throw new \Exception("add_partitions failed: unknown result");
   }
 
+  public function add_partitions_pspec($new_parts)
+  {
+    $this->send_add_partitions_pspec($new_parts);
+    return $this->recv_add_partitions_pspec();
+  }
+
+  public function send_add_partitions_pspec($new_parts)
+  {
+    $args = new \metastore\ThriftHiveMetastore_add_partitions_pspec_args();
+    $args->new_parts = $new_parts;
+    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'add_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('add_partitions_pspec', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_add_partitions_pspec()
+  {
+    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_partitions_pspec_result', $this->input_->isStrictRead());
+    else
+    {
+      $rseqid = 0;
+      $fname = null;
+      $mtype = 0;
+
+      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+      if ($mtype == TMessageType::EXCEPTION) {
+        $x = new TApplicationException();
+        $x->read($this->input_);
+        $this->input_->readMessageEnd();
+        throw $x;
+      }
+      $result = new \metastore\ThriftHiveMetastore_add_partitions_pspec_result();
+      $result->read($this->input_);
+      $this->input_->readMessageEnd();
+    }
+    if ($result->success !== null) {
+      return $result->success;
+    }
+    if ($result->o1 !== null) {
+      throw $result->o1;
+    }
+    if ($result->o2 !== null) {
+      throw $result->o2;
+    }
+    if ($result->o3 !== null) {
+      throw $result->o3;
+    }
+    throw new \Exception("add_partitions_pspec failed: unknown result");
+  }
+
   public function append_partition($db_name, $tbl_name, $part_vals)
   {
     $this->send_append_partition($db_name, $tbl_name, $part_vals);
@@ -2720,6 +2783,65 @@ class ThriftHiveMetastoreClient extends 
     throw new \Exception("get_partitions_with_auth failed: unknown result");
   }
 
+  public function get_partitions_pspec($db_name, $tbl_name, $max_parts)
+  {
+    $this->send_get_partitions_pspec($db_name, $tbl_name, $max_parts);
+    return $this->recv_get_partitions_pspec();
+  }
+
+  public function send_get_partitions_pspec($db_name, $tbl_name, $max_parts)
+  {
+    $args = new \metastore\ThriftHiveMetastore_get_partitions_pspec_args();
+    $args->db_name = $db_name;
+    $args->tbl_name = $tbl_name;
+    $args->max_parts = $max_parts;
+    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'get_partitions_pspec', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('get_partitions_pspec', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_get_partitions_pspec()
+  {
+    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_partitions_pspec_result', $this->input_->isStrictRead());
+    else
+    {
+      $rseqid = 0;
+      $fname = null;
+      $mtype = 0;
+
+      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+      if ($mtype == TMessageType::EXCEPTION) {
+        $x = new TApplicationException();
+        $x->read($this->input_);
+        $this->input_->readMessageEnd();
+        throw $x;
+      }
+      $result = new \metastore\ThriftHiveMetastore_get_partitions_pspec_result();
+      $result->read($this->input_);
+      $this->input_->readMessageEnd();
+    }
+    if ($result->success !== null) {
+      return $result->success;
+    }
+    if ($result->o1 !== null) {
+      throw $result->o1;
+    }
+    if ($result->o2 !== null) {
+      throw $result->o2;
+    }
+    throw new \Exception("get_partitions_pspec failed: unknown result");
+  }
+
   public function get_partition_names($db_name, $tbl_name, $max_parts)
   {
     $this->send_get_partition_names($db_name, $tbl_name, $max_parts);
@@ -3018,6 +3140,66 @@ class ThriftHiveMetastoreClient extends 
     throw new \Exception("get_partitions_by_filter failed: unknown result");
   }
 
+  public function get_part_specs_by_filter($db_name, $tbl_name, $filter, $max_parts)
+  {
+    $this->send_get_part_specs_by_filter($db_name, $tbl_name, $filter, $max_parts);
+    return $this->recv_get_part_specs_by_filter();
+  }
+
+  public function send_get_part_specs_by_filter($db_name, $tbl_name, $filter, $max_parts)
+  {
+    $args = new \metastore\ThriftHiveMetastore_get_part_specs_by_filter_args();
+    $args->db_name = $db_name;
+    $args->tbl_name = $tbl_name;
+    $args->filter = $filter;
+    $args->max_parts = $max_parts;
+    $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary');
+    if ($bin_accel)
+    {
+      thrift_protocol_write_binary($this->output_, 'get_part_specs_by_filter', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite());
+    }
+    else
+    {
+      $this->output_->writeMessageBegin('get_part_specs_by_filter', TMessageType::CALL, $this->seqid_);
+      $args->write($this->output_);
+      $this->output_->writeMessageEnd();
+      $this->output_->getTransport()->flush();
+    }
+  }
+
+  public function recv_get_part_specs_by_filter()
+  {
+    $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary');
+    if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_part_specs_by_filter_result', $this->input_->isStrictRead());
+    else
+    {
+      $rseqid = 0;
+      $fname = null;
+      $mtype = 0;
+
+      $this->input_->readMessageBegin($fname, $mtype, $rseqid);
+      if ($mtype == TMessageType::EXCEPTION) {
+        $x = new TApplicationException();
+        $x->read($this->input_);
+        $this->input_->readMessageEnd();
+        throw $x;
+      }
+      $result = new \metastore\ThriftHiveMetastore_get_part_specs_by_filter_result();
+      $result->read($this->input_);
+      $this->input_->readMessageEnd();
+    }
+    if ($result->success !== null) {
+      return $result->success;
+    }
+    if ($result->o1 !== null) {
+      throw $result->o1;
+    }
+    if ($result->o2 !== null) {
+      throw $result->o2;
+    }
+    throw new \Exception("get_part_specs_by_filter failed: unknown result");
+  }
+
   public function get_partitions_by_expr(\metastore\PartitionsByExprRequest $req)
   {
     $this->send_get_partitions_by_expr($req);
@@ -7726,14 +7908,14 @@ class ThriftHiveMetastore_get_databases_
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size407 = 0;
-            $_etype410 = 0;
-            $xfer += $input->readListBegin($_etype410, $_size407);
-            for ($_i411 = 0; $_i411 < $_size407; ++$_i411)
+            $_size437 = 0;
+            $_etype440 = 0;
+            $xfer += $input->readListBegin($_etype440, $_size437);
+            for ($_i441 = 0; $_i441 < $_size437; ++$_i441)
             {
-              $elem412 = null;
-              $xfer += $input->readString($elem412);
-              $this->success []= $elem412;
+              $elem442 = null;
+              $xfer += $input->readString($elem442);
+              $this->success []= $elem442;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -7769,9 +7951,9 @@ class ThriftHiveMetastore_get_databases_
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter413)
+          foreach ($this->success as $iter443)
           {
-            $xfer += $output->writeString($iter413);
+            $xfer += $output->writeString($iter443);
           }
         }
         $output->writeListEnd();
@@ -7896,14 +8078,14 @@ class ThriftHiveMetastore_get_all_databa
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size414 = 0;
-            $_etype417 = 0;
-            $xfer += $input->readListBegin($_etype417, $_size414);
-            for ($_i418 = 0; $_i418 < $_size414; ++$_i418)
+            $_size444 = 0;
+            $_etype447 = 0;
+            $xfer += $input->readListBegin($_etype447, $_size444);
+            for ($_i448 = 0; $_i448 < $_size444; ++$_i448)
             {
-              $elem419 = null;
-              $xfer += $input->readString($elem419);
-              $this->success []= $elem419;
+              $elem449 = null;
+              $xfer += $input->readString($elem449);
+              $this->success []= $elem449;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -7939,9 +8121,9 @@ class ThriftHiveMetastore_get_all_databa
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter420)
+          foreach ($this->success as $iter450)
           {
-            $xfer += $output->writeString($iter420);
+            $xfer += $output->writeString($iter450);
           }
         }
         $output->writeListEnd();
@@ -8882,18 +9064,18 @@ class ThriftHiveMetastore_get_type_all_r
         case 0:
           if ($ftype == TType::MAP) {
             $this->success = array();
-            $_size421 = 0;
-            $_ktype422 = 0;
-            $_vtype423 = 0;
-            $xfer += $input->readMapBegin($_ktype422, $_vtype423, $_size421);
-            for ($_i425 = 0; $_i425 < $_size421; ++$_i425)
+            $_size451 = 0;
+            $_ktype452 = 0;
+            $_vtype453 = 0;
+            $xfer += $input->readMapBegin($_ktype452, $_vtype453, $_size451);
+            for ($_i455 = 0; $_i455 < $_size451; ++$_i455)
             {
-              $key426 = '';
-              $val427 = new \metastore\Type();
-              $xfer += $input->readString($key426);
-              $val427 = new \metastore\Type();
-              $xfer += $val427->read($input);
-              $this->success[$key426] = $val427;
+              $key456 = '';
+              $val457 = new \metastore\Type();
+              $xfer += $input->readString($key456);
+              $val457 = new \metastore\Type();
+              $xfer += $val457->read($input);
+              $this->success[$key456] = $val457;
             }
             $xfer += $input->readMapEnd();
           } else {
@@ -8929,10 +9111,10 @@ class ThriftHiveMetastore_get_type_all_r
       {
         $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $kiter428 => $viter429)
+          foreach ($this->success as $kiter458 => $viter459)
           {
-            $xfer += $output->writeString($kiter428);
-            $xfer += $viter429->write($output);
+            $xfer += $output->writeString($kiter458);
+            $xfer += $viter459->write($output);
           }
         }
         $output->writeMapEnd();
@@ -9118,15 +9300,15 @@ class ThriftHiveMetastore_get_fields_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size430 = 0;
-            $_etype433 = 0;
-            $xfer += $input->readListBegin($_etype433, $_size430);
-            for ($_i434 = 0; $_i434 < $_size430; ++$_i434)
+            $_size460 = 0;
+            $_etype463 = 0;
+            $xfer += $input->readListBegin($_etype463, $_size460);
+            for ($_i464 = 0; $_i464 < $_size460; ++$_i464)
             {
-              $elem435 = null;
-              $elem435 = new \metastore\FieldSchema();
-              $xfer += $elem435->read($input);
-              $this->success []= $elem435;
+              $elem465 = null;
+              $elem465 = new \metastore\FieldSchema();
+              $xfer += $elem465->read($input);
+              $this->success []= $elem465;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -9178,9 +9360,9 @@ class ThriftHiveMetastore_get_fields_res
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter436)
+          foreach ($this->success as $iter466)
           {
-            $xfer += $iter436->write($output);
+            $xfer += $iter466->write($output);
           }
         }
         $output->writeListEnd();
@@ -9376,15 +9558,15 @@ class ThriftHiveMetastore_get_schema_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size437 = 0;
-            $_etype440 = 0;
-            $xfer += $input->readListBegin($_etype440, $_size437);
-            for ($_i441 = 0; $_i441 < $_size437; ++$_i441)
+            $_size467 = 0;
+            $_etype470 = 0;
+            $xfer += $input->readListBegin($_etype470, $_size467);
+            for ($_i471 = 0; $_i471 < $_size467; ++$_i471)
             {
-              $elem442 = null;
-              $elem442 = new \metastore\FieldSchema();
-              $xfer += $elem442->read($input);
-              $this->success []= $elem442;
+              $elem472 = null;
+              $elem472 = new \metastore\FieldSchema();
+              $xfer += $elem472->read($input);
+              $this->success []= $elem472;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -9436,9 +9618,9 @@ class ThriftHiveMetastore_get_schema_res
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter443)
+          foreach ($this->success as $iter473)
           {
-            $xfer += $iter443->write($output);
+            $xfer += $iter473->write($output);
           }
         }
         $output->writeListEnd();
@@ -10515,14 +10697,14 @@ class ThriftHiveMetastore_get_tables_res
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size444 = 0;
-            $_etype447 = 0;
-            $xfer += $input->readListBegin($_etype447, $_size444);
-            for ($_i448 = 0; $_i448 < $_size444; ++$_i448)
+            $_size474 = 0;
+            $_etype477 = 0;
+            $xfer += $input->readListBegin($_etype477, $_size474);
+            for ($_i478 = 0; $_i478 < $_size474; ++$_i478)
             {
-              $elem449 = null;
-              $xfer += $input->readString($elem449);
-              $this->success []= $elem449;
+              $elem479 = null;
+              $xfer += $input->readString($elem479);
+              $this->success []= $elem479;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -10558,9 +10740,9 @@ class ThriftHiveMetastore_get_tables_res
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter450)
+          foreach ($this->success as $iter480)
           {
-            $xfer += $output->writeString($iter450);
+            $xfer += $output->writeString($iter480);
           }
         }
         $output->writeListEnd();
@@ -10707,14 +10889,14 @@ class ThriftHiveMetastore_get_all_tables
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size451 = 0;
-            $_etype454 = 0;
-            $xfer += $input->readListBegin($_etype454, $_size451);
-            for ($_i455 = 0; $_i455 < $_size451; ++$_i455)
+            $_size481 = 0;
+            $_etype484 = 0;
+            $xfer += $input->readListBegin($_etype484, $_size481);
+            for ($_i485 = 0; $_i485 < $_size481; ++$_i485)
             {
-              $elem456 = null;
-              $xfer += $input->readString($elem456);
-              $this->success []= $elem456;
+              $elem486 = null;
+              $xfer += $input->readString($elem486);
+              $this->success []= $elem486;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -10750,9 +10932,9 @@ class ThriftHiveMetastore_get_all_tables
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter457)
+          foreach ($this->success as $iter487)
           {
-            $xfer += $output->writeString($iter457);
+            $xfer += $output->writeString($iter487);
           }
         }
         $output->writeListEnd();
@@ -11046,14 +11228,14 @@ class ThriftHiveMetastore_get_table_obje
         case 2:
           if ($ftype == TType::LST) {
             $this->tbl_names = array();
-            $_size458 = 0;
-            $_etype461 = 0;
-            $xfer += $input->readListBegin($_etype461, $_size458);
-            for ($_i462 = 0; $_i462 < $_size458; ++$_i462)
+            $_size488 = 0;
+            $_etype491 = 0;
+            $xfer += $input->readListBegin($_etype491, $_size488);
+            for ($_i492 = 0; $_i492 < $_size488; ++$_i492)
             {
-              $elem463 = null;
-              $xfer += $input->readString($elem463);
-              $this->tbl_names []= $elem463;
+              $elem493 = null;
+              $xfer += $input->readString($elem493);
+              $this->tbl_names []= $elem493;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -11086,9 +11268,9 @@ class ThriftHiveMetastore_get_table_obje
       {
         $output->writeListBegin(TType::STRING, count($this->tbl_names));
         {
-          foreach ($this->tbl_names as $iter464)
+          foreach ($this->tbl_names as $iter494)
           {
-            $xfer += $output->writeString($iter464);
+            $xfer += $output->writeString($iter494);
           }
         }
         $output->writeListEnd();
@@ -11177,15 +11359,15 @@ class ThriftHiveMetastore_get_table_obje
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size465 = 0;
-            $_etype468 = 0;
-            $xfer += $input->readListBegin($_etype468, $_size465);
-            for ($_i469 = 0; $_i469 < $_size465; ++$_i469)
+            $_size495 = 0;
+            $_etype498 = 0;
+            $xfer += $input->readListBegin($_etype498, $_size495);
+            for ($_i499 = 0; $_i499 < $_size495; ++$_i499)
             {
-              $elem470 = null;
-              $elem470 = new \metastore\Table();
-              $xfer += $elem470->read($input);
-              $this->success []= $elem470;
+              $elem500 = null;
+              $elem500 = new \metastore\Table();
+              $xfer += $elem500->read($input);
+              $this->success []= $elem500;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -11237,9 +11419,9 @@ class ThriftHiveMetastore_get_table_obje
       {
         $output->writeListBegin(TType::STRUCT, count($this->success));
         {
-          foreach ($this->success as $iter471)
+          foreach ($this->success as $iter501)
           {
-            $xfer += $iter471->write($output);
+            $xfer += $iter501->write($output);
           }
         }
         $output->writeListEnd();
@@ -11454,14 +11636,14 @@ class ThriftHiveMetastore_get_table_name
         case 0:
           if ($ftype == TType::LST) {
             $this->success = array();
-            $_size472 = 0;
-            $_etype475 = 0;
-            $xfer += $input->readListBegin($_etype475, $_size472);
-            for ($_i476 = 0; $_i476 < $_size472; ++$_i476)
+            $_size502 = 0;
+            $_etype505 = 0;
+            $xfer += $input->readListBegin($_etype505, $_size502);
+            for ($_i506 = 0; $_i506 < $_size502; ++$_i506)
             {
-              $elem477 = null;
-              $xfer += $input->readString($elem477);
-              $this->success []= $elem477;
+              $elem507 = null;
+              $xfer += $input->readString($elem507);
+              $this->success []= $elem507;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -11513,9 +11695,9 @@ class ThriftHiveMetastore_get_table_name
       {
         $output->writeListBegin(TType::STRING, count($this->success));
         {
-          foreach ($this->success as $iter478)
+          foreach ($this->success as $iter508)
           {
-            $xfer += $output->writeString($iter478);
+            $xfer += $output->writeString($iter508);
           }
         }
         $output->writeListEnd();
@@ -12508,15 +12690,15 @@ class ThriftHiveMetastore_add_partitions
         case 1:
           if ($ftype == TType::LST) {
             $this->new_parts = array();
-            $_size479 = 0;
-            $_etype482 = 0;
-            $xfer += $input->readListBegin($_etype482, $_size479);
-            for ($_i483 = 0; $_i483 < $_size479; ++$_i483)
+            $_size509 = 0;
+            $_etype512 = 0;
+            $xfer += $input->readListBegin($_etype512, $_size509);
+            for ($_i513 = 0; $_i513 < $_size509; ++$_i513)
             {
-              $elem484 = null;
-              $elem484 = new \metastore\Partition();
-              $xfer += $elem484->read($input);
-              $this->new_parts []= $elem484;
+              $elem514 = null;
+              $elem514 = new \metastore\Partition();
+              $xfer += $elem514->read($input);
+              $this->new_parts []= $elem514;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -12544,9 +12726,9 @@ class ThriftHiveMetastore_add_partitions
       {
         $output->writeListBegin(TType::STRUCT, count($this->new_parts));
         {
-          foreach ($this->new_parts as $iter485)
+          foreach ($this->new_parts as $iter515)
           {
-            $xfer += $iter485->write($output);
+            $xfer += $iter515->write($output);
           }
         }
         $output->writeListEnd();
@@ -12698,49 +12880,34 @@ class ThriftHiveMetastore_add_partitions
 
 }
 
-class ThriftHiveMetastore_append_partition_args {
+class ThriftHiveMetastore_add_partitions_pspec_args {
   static $_TSPEC;
 
-  public $db_name = null;
-  public $tbl_name = null;
-  public $part_vals = null;
+  public $new_parts = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'db_name',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'tbl_name',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'part_vals',
+          'var' => 'new_parts',
           'type' => TType::LST,
-          'etype' => TType::STRING,
+          'etype' => TType::STRUCT,
           'elem' => array(
-            'type' => TType::STRING,
+            'type' => TType::STRUCT,
+            'class' => '\metastore\PartitionSpec',
             ),
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['db_name'])) {
-        $this->db_name = $vals['db_name'];
-      }
-      if (isset($vals['tbl_name'])) {
-        $this->tbl_name = $vals['tbl_name'];
-      }
-      if (isset($vals['part_vals'])) {
-        $this->part_vals = $vals['part_vals'];
+      if (isset($vals['new_parts'])) {
+        $this->new_parts = $vals['new_parts'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_args';
+    return 'ThriftHiveMetastore_add_partitions_pspec_args';
   }
 
   public function read($input)
@@ -12759,30 +12926,17 @@ class ThriftHiveMetastore_append_partiti
       switch ($fid)
       {
         case 1:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->db_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 2:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->tbl_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
           if ($ftype == TType::LST) {
-            $this->part_vals = array();
-            $_size486 = 0;
-            $_etype489 = 0;
-            $xfer += $input->readListBegin($_etype489, $_size486);
-            for ($_i490 = 0; $_i490 < $_size486; ++$_i490)
+            $this->new_parts = array();
+            $_size516 = 0;
+            $_etype519 = 0;
+            $xfer += $input->readListBegin($_etype519, $_size516);
+            for ($_i520 = 0; $_i520 < $_size516; ++$_i520)
             {
-              $elem491 = null;
-              $xfer += $input->readString($elem491);
-              $this->part_vals []= $elem491;
+              $elem521 = null;
+              $elem521 = new \metastore\PartitionSpec();
+              $xfer += $elem521->read($input);
+              $this->new_parts []= $elem521;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -12801,28 +12955,18 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_args');
-    if ($this->db_name !== null) {
-      $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
-      $xfer += $output->writeString($this->db_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->tbl_name !== null) {
-      $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2);
-      $xfer += $output->writeString($this->tbl_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->part_vals !== null) {
-      if (!is_array($this->part_vals)) {
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_pspec_args');
+    if ($this->new_parts !== null) {
+      if (!is_array($this->new_parts)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
+      $xfer += $output->writeFieldBegin('new_parts', TType::LST, 1);
       {
-        $output->writeListBegin(TType::STRING, count($this->part_vals));
+        $output->writeListBegin(TType::STRUCT, count($this->new_parts));
         {
-          foreach ($this->part_vals as $iter492)
+          foreach ($this->new_parts as $iter522)
           {
-            $xfer += $output->writeString($iter492);
+            $xfer += $iter522->write($output);
           }
         }
         $output->writeListEnd();
@@ -12836,7 +12980,7 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_result {
+class ThriftHiveMetastore_add_partitions_pspec_result {
   static $_TSPEC;
 
   public $success = null;
@@ -12849,8 +12993,7 @@ class ThriftHiveMetastore_append_partiti
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\Partition',
+          'type' => TType::I32,
           ),
         1 => array(
           'var' => 'o1',
@@ -12886,7 +13029,7 @@ class ThriftHiveMetastore_append_partiti
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_result';
+    return 'ThriftHiveMetastore_add_partitions_pspec_result';
   }
 
   public function read($input)
@@ -12905,10 +13048,9 @@ class ThriftHiveMetastore_append_partiti
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRUCT) {
-            $this->success = new \metastore\Partition();
-            $xfer += $this->success->read($input);
-          } else {
+          if ($ftype == TType::I32) {
+            $xfer += $input->readI32($this->success);
+          } else {
             $xfer += $input->skip($ftype);
           }
           break;
@@ -12948,13 +13090,10 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_pspec_result');
     if ($this->success !== null) {
-      if (!is_object($this->success)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
-      $xfer += $this->success->write($output);
+      $xfer += $output->writeFieldBegin('success', TType::I32, 0);
+      $xfer += $output->writeI32($this->success);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->o1 !== null) {
@@ -12979,30 +13118,49 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_add_partitions_req_args {
+class ThriftHiveMetastore_append_partition_args {
   static $_TSPEC;
 
-  public $request = null;
+  public $db_name = null;
+  public $tbl_name = null;
+  public $part_vals = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'request',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\AddPartitionsRequest',
+          'var' => 'db_name',
+          'type' => TType::STRING,
+          ),
+        2 => array(
+          'var' => 'tbl_name',
+          'type' => TType::STRING,
+          ),
+        3 => array(
+          'var' => 'part_vals',
+          'type' => TType::LST,
+          'etype' => TType::STRING,
+          'elem' => array(
+            'type' => TType::STRING,
+            ),
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['request'])) {
-        $this->request = $vals['request'];
+      if (isset($vals['db_name'])) {
+        $this->db_name = $vals['db_name'];
+      }
+      if (isset($vals['tbl_name'])) {
+        $this->tbl_name = $vals['tbl_name'];
+      }
+      if (isset($vals['part_vals'])) {
+        $this->part_vals = $vals['part_vals'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_add_partitions_req_args';
+    return 'ThriftHiveMetastore_append_partition_args';
   }
 
   public function read($input)
@@ -13021,9 +13179,32 @@ class ThriftHiveMetastore_add_partitions
       switch ($fid)
       {
         case 1:
-          if ($ftype == TType::STRUCT) {
-            $this->request = new \metastore\AddPartitionsRequest();
-            $xfer += $this->request->read($input);
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->db_name);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 2:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->tbl_name);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 3:
+          if ($ftype == TType::LST) {
+            $this->part_vals = array();
+            $_size523 = 0;
+            $_etype526 = 0;
+            $xfer += $input->readListBegin($_etype526, $_size523);
+            for ($_i527 = 0; $_i527 < $_size523; ++$_i527)
+            {
+              $elem528 = null;
+              $xfer += $input->readString($elem528);
+              $this->part_vals []= $elem528;
+            }
+            $xfer += $input->readListEnd();
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -13040,13 +13221,32 @@ class ThriftHiveMetastore_add_partitions
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_args');
-    if ($this->request !== null) {
-      if (!is_object($this->request)) {
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_args');
+    if ($this->db_name !== null) {
+      $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
+      $xfer += $output->writeString($this->db_name);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->tbl_name !== null) {
+      $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2);
+      $xfer += $output->writeString($this->tbl_name);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->part_vals !== null) {
+      if (!is_array($this->part_vals)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1);
-      $xfer += $this->request->write($output);
+      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
+      {
+        $output->writeListBegin(TType::STRING, count($this->part_vals));
+        {
+          foreach ($this->part_vals as $iter529)
+          {
+            $xfer += $output->writeString($iter529);
+          }
+        }
+        $output->writeListEnd();
+      }
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -13056,7 +13256,7 @@ class ThriftHiveMetastore_add_partitions
 
 }
 
-class ThriftHiveMetastore_add_partitions_req_result {
+class ThriftHiveMetastore_append_partition_result {
   static $_TSPEC;
 
   public $success = null;
@@ -13070,7 +13270,7 @@ class ThriftHiveMetastore_add_partitions
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => '\metastore\AddPartitionsResult',
+          'class' => '\metastore\Partition',
           ),
         1 => array(
           'var' => 'o1',
@@ -13106,7 +13306,7 @@ class ThriftHiveMetastore_add_partitions
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_add_partitions_req_result';
+    return 'ThriftHiveMetastore_append_partition_result';
   }
 
   public function read($input)
@@ -13126,7 +13326,7 @@ class ThriftHiveMetastore_add_partitions
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new \metastore\AddPartitionsResult();
+            $this->success = new \metastore\Partition();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -13168,7 +13368,7 @@ class ThriftHiveMetastore_add_partitions
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_result');
     if ($this->success !== null) {
       if (!is_object($this->success)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -13199,58 +13399,30 @@ class ThriftHiveMetastore_add_partitions
 
 }
 
-class ThriftHiveMetastore_append_partition_with_environment_context_args {
+class ThriftHiveMetastore_add_partitions_req_args {
   static $_TSPEC;
 
-  public $db_name = null;
-  public $tbl_name = null;
-  public $part_vals = null;
-  public $environment_context = null;
+  public $request = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'db_name',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'tbl_name',
-          'type' => TType::STRING,
-          ),
-        3 => array(
-          'var' => 'part_vals',
-          'type' => TType::LST,
-          'etype' => TType::STRING,
-          'elem' => array(
-            'type' => TType::STRING,
-            ),
-          ),
-        4 => array(
-          'var' => 'environment_context',
+          'var' => 'request',
           'type' => TType::STRUCT,
-          'class' => '\metastore\EnvironmentContext',
+          'class' => '\metastore\AddPartitionsRequest',
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['db_name'])) {
-        $this->db_name = $vals['db_name'];
-      }
-      if (isset($vals['tbl_name'])) {
-        $this->tbl_name = $vals['tbl_name'];
-      }
-      if (isset($vals['part_vals'])) {
-        $this->part_vals = $vals['part_vals'];
-      }
-      if (isset($vals['environment_context'])) {
-        $this->environment_context = $vals['environment_context'];
+      if (isset($vals['request'])) {
+        $this->request = $vals['request'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_with_environment_context_args';
+    return 'ThriftHiveMetastore_add_partitions_req_args';
   }
 
   public function read($input)
@@ -13269,40 +13441,9 @@ class ThriftHiveMetastore_append_partiti
       switch ($fid)
       {
         case 1:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->db_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 2:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->tbl_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 3:
-          if ($ftype == TType::LST) {
-            $this->part_vals = array();
-            $_size493 = 0;
-            $_etype496 = 0;
-            $xfer += $input->readListBegin($_etype496, $_size493);
-            for ($_i497 = 0; $_i497 < $_size493; ++$_i497)
-            {
-              $elem498 = null;
-              $xfer += $input->readString($elem498);
-              $this->part_vals []= $elem498;
-            }
-            $xfer += $input->readListEnd();
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        case 4:
           if ($ftype == TType::STRUCT) {
-            $this->environment_context = new \metastore\EnvironmentContext();
-            $xfer += $this->environment_context->read($input);
+            $this->request = new \metastore\AddPartitionsRequest();
+            $xfer += $this->request->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -13319,40 +13460,13 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_with_environment_context_args');
-    if ($this->db_name !== null) {
-      $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
-      $xfer += $output->writeString($this->db_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->tbl_name !== null) {
-      $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2);
-      $xfer += $output->writeString($this->tbl_name);
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->part_vals !== null) {
-      if (!is_array($this->part_vals)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
-      {
-        $output->writeListBegin(TType::STRING, count($this->part_vals));
-        {
-          foreach ($this->part_vals as $iter499)
-          {
-            $xfer += $output->writeString($iter499);
-          }
-        }
-        $output->writeListEnd();
-      }
-      $xfer += $output->writeFieldEnd();
-    }
-    if ($this->environment_context !== null) {
-      if (!is_object($this->environment_context)) {
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_args');
+    if ($this->request !== null) {
+      if (!is_object($this->request)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
-      $xfer += $this->environment_context->write($output);
+      $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1);
+      $xfer += $this->request->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -13362,7 +13476,7 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_with_environment_context_result {
+class ThriftHiveMetastore_add_partitions_req_result {
   static $_TSPEC;
 
   public $success = null;
@@ -13376,7 +13490,7 @@ class ThriftHiveMetastore_append_partiti
         0 => array(
           'var' => 'success',
           'type' => TType::STRUCT,
-          'class' => '\metastore\Partition',
+          'class' => '\metastore\AddPartitionsResult',
           ),
         1 => array(
           'var' => 'o1',
@@ -13412,7 +13526,7 @@ class ThriftHiveMetastore_append_partiti
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_with_environment_context_result';
+    return 'ThriftHiveMetastore_add_partitions_req_result';
   }
 
   public function read($input)
@@ -13432,7 +13546,7 @@ class ThriftHiveMetastore_append_partiti
       {
         case 0:
           if ($ftype == TType::STRUCT) {
-            $this->success = new \metastore\Partition();
+            $this->success = new \metastore\AddPartitionsResult();
             $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -13474,7 +13588,7 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_with_environment_context_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_add_partitions_req_result');
     if ($this->success !== null) {
       if (!is_object($this->success)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -13505,12 +13619,13 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_by_name_args {
+class ThriftHiveMetastore_append_partition_with_environment_context_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
-  public $part_name = null;
+  public $part_vals = null;
+  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -13524,8 +13639,17 @@ class ThriftHiveMetastore_append_partiti
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'part_name',
-          'type' => TType::STRING,
+          'var' => 'part_vals',
+          'type' => TType::LST,
+          'etype' => TType::STRING,
+          'elem' => array(
+            'type' => TType::STRING,
+            ),
+          ),
+        4 => array(
+          'var' => 'environment_context',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\EnvironmentContext',
           ),
         );
     }
@@ -13536,14 +13660,17 @@ class ThriftHiveMetastore_append_partiti
       if (isset($vals['tbl_name'])) {
         $this->tbl_name = $vals['tbl_name'];
       }
-      if (isset($vals['part_name'])) {
-        $this->part_name = $vals['part_name'];
+      if (isset($vals['part_vals'])) {
+        $this->part_vals = $vals['part_vals'];
+      }
+      if (isset($vals['environment_context'])) {
+        $this->environment_context = $vals['environment_context'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_by_name_args';
+    return 'ThriftHiveMetastore_append_partition_with_environment_context_args';
   }
 
   public function read($input)
@@ -13576,15 +13703,33 @@ class ThriftHiveMetastore_append_partiti
           }
           break;
         case 3:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->part_name);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
-        default:
-          $xfer += $input->skip($ftype);
-          break;
+          if ($ftype == TType::LST) {
+            $this->part_vals = array();
+            $_size530 = 0;
+            $_etype533 = 0;
+            $xfer += $input->readListBegin($_etype533, $_size530);
+            for ($_i534 = 0; $_i534 < $_size530; ++$_i534)
+            {
+              $elem535 = null;
+              $xfer += $input->readString($elem535);
+              $this->part_vals []= $elem535;
+            }
+            $xfer += $input->readListEnd();
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 4:
+          if ($ftype == TType::STRUCT) {
+            $this->environment_context = new \metastore\EnvironmentContext();
+            $xfer += $this->environment_context->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
       }
       $xfer += $input->readFieldEnd();
     }
@@ -13594,7 +13739,7 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_with_environment_context_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -13605,9 +13750,29 @@ class ThriftHiveMetastore_append_partiti
       $xfer += $output->writeString($this->tbl_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->part_name !== null) {
-      $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
-      $xfer += $output->writeString($this->part_name);
+    if ($this->part_vals !== null) {
+      if (!is_array($this->part_vals)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
+      {
+        $output->writeListBegin(TType::STRING, count($this->part_vals));
+        {
+          foreach ($this->part_vals as $iter536)
+          {
+            $xfer += $output->writeString($iter536);
+          }
+        }
+        $output->writeListEnd();
+      }
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->environment_context !== null) {
+      if (!is_object($this->environment_context)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
+      $xfer += $this->environment_context->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -13617,7 +13782,7 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_by_name_result {
+class ThriftHiveMetastore_append_partition_with_environment_context_result {
   static $_TSPEC;
 
   public $success = null;
@@ -13667,7 +13832,7 @@ class ThriftHiveMetastore_append_partiti
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_by_name_result';
+    return 'ThriftHiveMetastore_append_partition_with_environment_context_result';
   }
 
   public function read($input)
@@ -13729,7 +13894,7 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_with_environment_context_result');
     if ($this->success !== null) {
       if (!is_object($this->success)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -13760,13 +13925,12 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args {
+class ThriftHiveMetastore_append_partition_by_name_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
   public $part_name = null;
-  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -13783,11 +13947,6 @@ class ThriftHiveMetastore_append_partiti
           'var' => 'part_name',
           'type' => TType::STRING,
           ),
-        4 => array(
-          'var' => 'environment_context',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\EnvironmentContext',
-          ),
         );
     }
     if (is_array($vals)) {
@@ -13800,14 +13959,11 @@ class ThriftHiveMetastore_append_partiti
       if (isset($vals['part_name'])) {
         $this->part_name = $vals['part_name'];
       }
-      if (isset($vals['environment_context'])) {
-        $this->environment_context = $vals['environment_context'];
-      }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_args';
+    return 'ThriftHiveMetastore_append_partition_by_name_args';
   }
 
   public function read($input)
@@ -13846,14 +14002,6 @@ class ThriftHiveMetastore_append_partiti
             $xfer += $input->skip($ftype);
           }
           break;
-        case 4:
-          if ($ftype == TType::STRUCT) {
-            $this->environment_context = new \metastore\EnvironmentContext();
-            $xfer += $this->environment_context->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -13866,7 +14014,7 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_with_environment_context_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -13882,14 +14030,6 @@ class ThriftHiveMetastore_append_partiti
       $xfer += $output->writeString($this->part_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->environment_context !== null) {
-      if (!is_object($this->environment_context)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
-      $xfer += $this->environment_context->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -13897,7 +14037,7 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result {
+class ThriftHiveMetastore_append_partition_by_name_result {
   static $_TSPEC;
 
   public $success = null;
@@ -13947,7 +14087,7 @@ class ThriftHiveMetastore_append_partiti
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_result';
+    return 'ThriftHiveMetastore_append_partition_by_name_result';
   }
 
   public function read($input)
@@ -14009,7 +14149,7 @@ class ThriftHiveMetastore_append_partiti
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_with_environment_context_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_result');
     if ($this->success !== null) {
       if (!is_object($this->success)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
@@ -14040,13 +14180,13 @@ class ThriftHiveMetastore_append_partiti
 
 }
 
-class ThriftHiveMetastore_drop_partition_args {
+class ThriftHiveMetastore_append_partition_by_name_with_environment_context_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
-  public $part_vals = null;
-  public $deleteData = null;
+  public $part_name = null;
+  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -14060,16 +14200,13 @@ class ThriftHiveMetastore_drop_partition
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'part_vals',
-          'type' => TType::LST,
-          'etype' => TType::STRING,
-          'elem' => array(
-            'type' => TType::STRING,
-            ),
+          'var' => 'part_name',
+          'type' => TType::STRING,
           ),
         4 => array(
-          'var' => 'deleteData',
-          'type' => TType::BOOL,
+          'var' => 'environment_context',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\EnvironmentContext',
           ),
         );
     }
@@ -14080,17 +14217,17 @@ class ThriftHiveMetastore_drop_partition
       if (isset($vals['tbl_name'])) {
         $this->tbl_name = $vals['tbl_name'];
       }
-      if (isset($vals['part_vals'])) {
-        $this->part_vals = $vals['part_vals'];
+      if (isset($vals['part_name'])) {
+        $this->part_name = $vals['part_name'];
       }
-      if (isset($vals['deleteData'])) {
-        $this->deleteData = $vals['deleteData'];
+      if (isset($vals['environment_context'])) {
+        $this->environment_context = $vals['environment_context'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_args';
+    return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_args';
   }
 
   public function read($input)
@@ -14123,25 +14260,16 @@ class ThriftHiveMetastore_drop_partition
           }
           break;
         case 3:
-          if ($ftype == TType::LST) {
-            $this->part_vals = array();
-            $_size500 = 0;
-            $_etype503 = 0;
-            $xfer += $input->readListBegin($_etype503, $_size500);
-            for ($_i504 = 0; $_i504 < $_size500; ++$_i504)
-            {
-              $elem505 = null;
-              $xfer += $input->readString($elem505);
-              $this->part_vals []= $elem505;
-            }
-            $xfer += $input->readListEnd();
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->part_name);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
         case 4:
-          if ($ftype == TType::BOOL) {
-            $xfer += $input->readBool($this->deleteData);
+          if ($ftype == TType::STRUCT) {
+            $this->environment_context = new \metastore\EnvironmentContext();
+            $xfer += $this->environment_context->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -14158,7 +14286,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_with_environment_context_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -14169,26 +14297,17 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $output->writeString($this->tbl_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->part_vals !== null) {
-      if (!is_array($this->part_vals)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
-      {
-        $output->writeListBegin(TType::STRING, count($this->part_vals));
-        {
-          foreach ($this->part_vals as $iter506)
-          {
-            $xfer += $output->writeString($iter506);
-          }
-        }
-        $output->writeListEnd();
-      }
+    if ($this->part_name !== null) {
+      $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
+      $xfer += $output->writeString($this->part_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->deleteData !== null) {
-      $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 4);
-      $xfer += $output->writeBool($this->deleteData);
+    if ($this->environment_context !== null) {
+      if (!is_object($this->environment_context)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 4);
+      $xfer += $this->environment_context->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -14198,28 +14317,35 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_result {
+class ThriftHiveMetastore_append_partition_by_name_with_environment_context_result {
   static $_TSPEC;
 
   public $success = null;
   public $o1 = null;
   public $o2 = null;
+  public $o3 = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::BOOL,
+          'type' => TType::STRUCT,
+          'class' => '\metastore\Partition',
           ),
         1 => array(
           'var' => 'o1',
           'type' => TType::STRUCT,
-          'class' => '\metastore\NoSuchObjectException',
+          'class' => '\metastore\InvalidObjectException',
           ),
         2 => array(
           'var' => 'o2',
           'type' => TType::STRUCT,
+          'class' => '\metastore\AlreadyExistsException',
+          ),
+        3 => array(
+          'var' => 'o3',
+          'type' => TType::STRUCT,
           'class' => '\metastore\MetaException',
           ),
         );
@@ -14234,11 +14360,14 @@ class ThriftHiveMetastore_drop_partition
       if (isset($vals['o2'])) {
         $this->o2 = $vals['o2'];
       }
+      if (isset($vals['o3'])) {
+        $this->o3 = $vals['o3'];
+      }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_result';
+    return 'ThriftHiveMetastore_append_partition_by_name_with_environment_context_result';
   }
 
   public function read($input)
@@ -14257,15 +14386,16 @@ class ThriftHiveMetastore_drop_partition
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::BOOL) {
-            $xfer += $input->readBool($this->success);
+          if ($ftype == TType::STRUCT) {
+            $this->success = new \metastore\Partition();
+            $xfer += $this->success->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
         case 1:
           if ($ftype == TType::STRUCT) {
-            $this->o1 = new \metastore\NoSuchObjectException();
+            $this->o1 = new \metastore\InvalidObjectException();
             $xfer += $this->o1->read($input);
           } else {
             $xfer += $input->skip($ftype);
@@ -14273,12 +14403,20 @@ class ThriftHiveMetastore_drop_partition
           break;
         case 2:
           if ($ftype == TType::STRUCT) {
-            $this->o2 = new \metastore\MetaException();
+            $this->o2 = new \metastore\AlreadyExistsException();
             $xfer += $this->o2->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
           break;
+        case 3:
+          if ($ftype == TType::STRUCT) {
+            $this->o3 = new \metastore\MetaException();
+            $xfer += $this->o3->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -14291,10 +14429,13 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_append_partition_by_name_with_environment_context_result');
     if ($this->success !== null) {
-      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
-      $xfer += $output->writeBool($this->success);
+      if (!is_object($this->success)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
+      $xfer += $this->success->write($output);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->o1 !== null) {
@@ -14307,6 +14448,11 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $this->o2->write($output);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->o3 !== null) {
+      $xfer += $output->writeFieldBegin('o3', TType::STRUCT, 3);
+      $xfer += $this->o3->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -14314,14 +14460,13 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_with_environment_context_args {
+class ThriftHiveMetastore_drop_partition_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
   public $part_vals = null;
   public $deleteData = null;
-  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -14346,11 +14491,6 @@ class ThriftHiveMetastore_drop_partition
           'var' => 'deleteData',
           'type' => TType::BOOL,
           ),
-        5 => array(
-          'var' => 'environment_context',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\EnvironmentContext',
-          ),
         );
     }
     if (is_array($vals)) {
@@ -14366,14 +14506,11 @@ class ThriftHiveMetastore_drop_partition
       if (isset($vals['deleteData'])) {
         $this->deleteData = $vals['deleteData'];
       }
-      if (isset($vals['environment_context'])) {
-        $this->environment_context = $vals['environment_context'];
-      }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_with_environment_context_args';
+    return 'ThriftHiveMetastore_drop_partition_args';
   }
 
   public function read($input)
@@ -14408,14 +14545,14 @@ class ThriftHiveMetastore_drop_partition
         case 3:
           if ($ftype == TType::LST) {
             $this->part_vals = array();
-            $_size507 = 0;
-            $_etype510 = 0;
-            $xfer += $input->readListBegin($_etype510, $_size507);
-            for ($_i511 = 0; $_i511 < $_size507; ++$_i511)
+            $_size537 = 0;
+            $_etype540 = 0;
+            $xfer += $input->readListBegin($_etype540, $_size537);
+            for ($_i541 = 0; $_i541 < $_size537; ++$_i541)
             {
-              $elem512 = null;
-              $xfer += $input->readString($elem512);
-              $this->part_vals []= $elem512;
+              $elem542 = null;
+              $xfer += $input->readString($elem542);
+              $this->part_vals []= $elem542;
             }
             $xfer += $input->readListEnd();
           } else {
@@ -14429,14 +14566,6 @@ class ThriftHiveMetastore_drop_partition
             $xfer += $input->skip($ftype);
           }
           break;
-        case 5:
-          if ($ftype == TType::STRUCT) {
-            $this->environment_context = new \metastore\EnvironmentContext();
-            $xfer += $this->environment_context->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -14449,7 +14578,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -14468,9 +14597,9 @@ class ThriftHiveMetastore_drop_partition
       {
         $output->writeListBegin(TType::STRING, count($this->part_vals));
         {
-          foreach ($this->part_vals as $iter513)
+          foreach ($this->part_vals as $iter543)
           {
-            $xfer += $output->writeString($iter513);
+            $xfer += $output->writeString($iter543);
           }
         }
         $output->writeListEnd();
@@ -14482,14 +14611,6 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $output->writeBool($this->deleteData);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->environment_context !== null) {
-      if (!is_object($this->environment_context)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
-      $xfer += $this->environment_context->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -14497,7 +14618,7 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_with_environment_context_result {
+class ThriftHiveMetastore_drop_partition_result {
   static $_TSPEC;
 
   public $success = null;
@@ -14537,7 +14658,7 @@ class ThriftHiveMetastore_drop_partition
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_with_environment_context_result';
+    return 'ThriftHiveMetastore_drop_partition_result';
   }
 
   public function read($input)
@@ -14590,7 +14711,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_result');
     if ($this->success !== null) {
       $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
       $xfer += $output->writeBool($this->success);
@@ -14613,13 +14734,14 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_by_name_args {
+class ThriftHiveMetastore_drop_partition_with_environment_context_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
-  public $part_name = null;
+  public $part_vals = null;
   public $deleteData = null;
+  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -14633,13 +14755,22 @@ class ThriftHiveMetastore_drop_partition
           'type' => TType::STRING,
           ),
         3 => array(
-          'var' => 'part_name',
-          'type' => TType::STRING,
+          'var' => 'part_vals',
+          'type' => TType::LST,
+          'etype' => TType::STRING,
+          'elem' => array(
+            'type' => TType::STRING,
+            ),
           ),
         4 => array(
           'var' => 'deleteData',
           'type' => TType::BOOL,
           ),
+        5 => array(
+          'var' => 'environment_context',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\EnvironmentContext',
+          ),
         );
     }
     if (is_array($vals)) {
@@ -14649,17 +14780,20 @@ class ThriftHiveMetastore_drop_partition
       if (isset($vals['tbl_name'])) {
         $this->tbl_name = $vals['tbl_name'];
       }
-      if (isset($vals['part_name'])) {
-        $this->part_name = $vals['part_name'];
+      if (isset($vals['part_vals'])) {
+        $this->part_vals = $vals['part_vals'];
       }
       if (isset($vals['deleteData'])) {
         $this->deleteData = $vals['deleteData'];
       }
+      if (isset($vals['environment_context'])) {
+        $this->environment_context = $vals['environment_context'];
+      }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_by_name_args';
+    return 'ThriftHiveMetastore_drop_partition_with_environment_context_args';
   }
 
   public function read($input)
@@ -14692,8 +14826,18 @@ class ThriftHiveMetastore_drop_partition
           }
           break;
         case 3:
-          if ($ftype == TType::STRING) {
-            $xfer += $input->readString($this->part_name);
+          if ($ftype == TType::LST) {
+            $this->part_vals = array();
+            $_size544 = 0;
+            $_etype547 = 0;
+            $xfer += $input->readListBegin($_etype547, $_size544);
+            for ($_i548 = 0; $_i548 < $_size544; ++$_i548)
+            {
+              $elem549 = null;
+              $xfer += $input->readString($elem549);
+              $this->part_vals []= $elem549;
+            }
+            $xfer += $input->readListEnd();
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -14705,6 +14849,14 @@ class ThriftHiveMetastore_drop_partition
             $xfer += $input->skip($ftype);
           }
           break;
+        case 5:
+          if ($ftype == TType::STRUCT) {
+            $this->environment_context = new \metastore\EnvironmentContext();
+            $xfer += $this->environment_context->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -14717,7 +14869,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -14728,9 +14880,21 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $output->writeString($this->tbl_name);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->part_name !== null) {
-      $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
-      $xfer += $output->writeString($this->part_name);
+    if ($this->part_vals !== null) {
+      if (!is_array($this->part_vals)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('part_vals', TType::LST, 3);
+      {
+        $output->writeListBegin(TType::STRING, count($this->part_vals));
+        {
+          foreach ($this->part_vals as $iter550)
+          {
+            $xfer += $output->writeString($iter550);
+          }
+        }
+        $output->writeListEnd();
+      }
       $xfer += $output->writeFieldEnd();
     }
     if ($this->deleteData !== null) {
@@ -14738,6 +14902,14 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $output->writeBool($this->deleteData);
       $xfer += $output->writeFieldEnd();
     }
+    if ($this->environment_context !== null) {
+      if (!is_object($this->environment_context)) {
+        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
+      }
+      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
+      $xfer += $this->environment_context->write($output);
+      $xfer += $output->writeFieldEnd();
+    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -14745,7 +14917,7 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_by_name_result {
+class ThriftHiveMetastore_drop_partition_with_environment_context_result {
   static $_TSPEC;
 
   public $success = null;
@@ -14785,7 +14957,7 @@ class ThriftHiveMetastore_drop_partition
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_by_name_result';
+    return 'ThriftHiveMetastore_drop_partition_with_environment_context_result';
   }
 
   public function read($input)
@@ -14838,7 +15010,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_with_environment_context_result');
     if ($this->success !== null) {
       $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
       $xfer += $output->writeBool($this->success);
@@ -14861,14 +15033,13 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args {
+class ThriftHiveMetastore_drop_partition_by_name_args {
   static $_TSPEC;
 
   public $db_name = null;
   public $tbl_name = null;
   public $part_name = null;
   public $deleteData = null;
-  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
@@ -14889,11 +15060,6 @@ class ThriftHiveMetastore_drop_partition
           'var' => 'deleteData',
           'type' => TType::BOOL,
           ),
-        5 => array(
-          'var' => 'environment_context',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\EnvironmentContext',
-          ),
         );
     }
     if (is_array($vals)) {
@@ -14909,14 +15075,11 @@ class ThriftHiveMetastore_drop_partition
       if (isset($vals['deleteData'])) {
         $this->deleteData = $vals['deleteData'];
       }
-      if (isset($vals['environment_context'])) {
-        $this->environment_context = $vals['environment_context'];
-      }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args';
+    return 'ThriftHiveMetastore_drop_partition_by_name_args';
   }
 
   public function read($input)
@@ -14962,14 +15125,6 @@ class ThriftHiveMetastore_drop_partition
             $xfer += $input->skip($ftype);
           }
           break;
-        case 5:
-          if ($ftype == TType::STRUCT) {
-            $this->environment_context = new \metastore\EnvironmentContext();
-            $xfer += $this->environment_context->read($input);
-          } else {
-            $xfer += $input->skip($ftype);
-          }
-          break;
         default:
           $xfer += $input->skip($ftype);
           break;
@@ -14982,7 +15137,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_args');
     if ($this->db_name !== null) {
       $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
       $xfer += $output->writeString($this->db_name);
@@ -15003,14 +15158,6 @@ class ThriftHiveMetastore_drop_partition
       $xfer += $output->writeBool($this->deleteData);
       $xfer += $output->writeFieldEnd();
     }
-    if ($this->environment_context !== null) {
-      if (!is_object($this->environment_context)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
-      $xfer += $this->environment_context->write($output);
-      $xfer += $output->writeFieldEnd();
-    }
     $xfer += $output->writeFieldStop();
     $xfer += $output->writeStructEnd();
     return $xfer;
@@ -15018,7 +15165,7 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result {
+class ThriftHiveMetastore_drop_partition_by_name_result {
   static $_TSPEC;
 
   public $success = null;
@@ -15058,7 +15205,7 @@ class ThriftHiveMetastore_drop_partition
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result';
+    return 'ThriftHiveMetastore_drop_partition_by_name_result';
   }
 
   public function read($input)
@@ -15111,7 +15258,7 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_result');
     if ($this->success !== null) {
       $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
       $xfer += $output->writeBool($this->success);
@@ -15134,30 +15281,62 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partitions_req_args {
+class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args {
   static $_TSPEC;
 
-  public $req = null;
+  public $db_name = null;
+  public $tbl_name = null;
+  public $part_name = null;
+  public $deleteData = null;
+  public $environment_context = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'req',
+          'var' => 'db_name',
+          'type' => TType::STRING,
+          ),
+        2 => array(
+          'var' => 'tbl_name',
+          'type' => TType::STRING,
+          ),
+        3 => array(
+          'var' => 'part_name',
+          'type' => TType::STRING,
+          ),
+        4 => array(
+          'var' => 'deleteData',
+          'type' => TType::BOOL,
+          ),
+        5 => array(
+          'var' => 'environment_context',
           'type' => TType::STRUCT,
-          'class' => '\metastore\DropPartitionsRequest',
+          'class' => '\metastore\EnvironmentContext',
           ),
         );
     }
     if (is_array($vals)) {
-      if (isset($vals['req'])) {
-        $this->req = $vals['req'];
+      if (isset($vals['db_name'])) {
+        $this->db_name = $vals['db_name'];
+      }
+      if (isset($vals['tbl_name'])) {
+        $this->tbl_name = $vals['tbl_name'];
+      }
+      if (isset($vals['part_name'])) {
+        $this->part_name = $vals['part_name'];
+      }
+      if (isset($vals['deleteData'])) {
+        $this->deleteData = $vals['deleteData'];
+      }
+      if (isset($vals['environment_context'])) {
+        $this->environment_context = $vals['environment_context'];
       }
     }
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partitions_req_args';
+    return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args';
   }
 
   public function read($input)
@@ -15176,9 +15355,37 @@ class ThriftHiveMetastore_drop_partition
       switch ($fid)
       {
         case 1:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->db_name);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 2:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->tbl_name);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 3:
+          if ($ftype == TType::STRING) {
+            $xfer += $input->readString($this->part_name);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 4:
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->deleteData);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        case 5:
           if ($ftype == TType::STRUCT) {
-            $this->req = new \metastore\DropPartitionsRequest();
-            $xfer += $this->req->read($input);
+            $this->environment_context = new \metastore\EnvironmentContext();
+            $xfer += $this->environment_context->read($input);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -15195,13 +15402,33 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_req_args');
-    if ($this->req !== null) {
-      if (!is_object($this->req)) {
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_args');
+    if ($this->db_name !== null) {
+      $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1);
+      $xfer += $output->writeString($this->db_name);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->tbl_name !== null) {
+      $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2);
+      $xfer += $output->writeString($this->tbl_name);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->part_name !== null) {
+      $xfer += $output->writeFieldBegin('part_name', TType::STRING, 3);
+      $xfer += $output->writeString($this->part_name);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->deleteData !== null) {
+      $xfer += $output->writeFieldBegin('deleteData', TType::BOOL, 4);
+      $xfer += $output->writeBool($this->deleteData);
+      $xfer += $output->writeFieldEnd();
+    }
+    if ($this->environment_context !== null) {
+      if (!is_object($this->environment_context)) {
         throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
       }
-      $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1);
-      $xfer += $this->req->write($output);
+      $xfer += $output->writeFieldBegin('environment_context', TType::STRUCT, 5);
+      $xfer += $this->environment_context->write($output);
       $xfer += $output->writeFieldEnd();
     }
     $xfer += $output->writeFieldStop();
@@ -15211,7 +15438,7 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_drop_partitions_req_result {
+class ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result {
   static $_TSPEC;
 
   public $success = null;
@@ -15223,8 +15450,7 @@ class ThriftHiveMetastore_drop_partition
       self::$_TSPEC = array(
         0 => array(
           'var' => 'success',
-          'type' => TType::STRUCT,
-          'class' => '\metastore\DropPartitionsResult',
+          'type' => TType::BOOL,
           ),
         1 => array(
           'var' => 'o1',
@@ -15252,7 +15478,7 @@ class ThriftHiveMetastore_drop_partition
   }
 
   public function getName() {
-    return 'ThriftHiveMetastore_drop_partitions_req_result';
+    return 'ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result';
   }
 
   public function read($input)
@@ -15271,9 +15497,8 @@ class ThriftHiveMetastore_drop_partition
       switch ($fid)
       {
         case 0:
-          if ($ftype == TType::STRUCT) {
-            $this->success = new \metastore\DropPartitionsResult();
-            $xfer += $this->success->read($input);
+          if ($ftype == TType::BOOL) {
+            $xfer += $input->readBool($this->success);
           } else {
             $xfer += $input->skip($ftype);
           }
@@ -15306,13 +15531,10 @@ class ThriftHiveMetastore_drop_partition
 
   public function write($output) {
     $xfer = 0;
-    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_req_result');
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partition_by_name_with_environment_context_result');
     if ($this->success !== null) {
-      if (!is_object($this->success)) {
-        throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA);
-      }
-      $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0);
-      $xfer += $this->success->write($output);
+      $xfer += $output->writeFieldBegin('success', TType::BOOL, 0);
+      $xfer += $output->writeBool($this->success);
       $xfer += $output->writeFieldEnd();
     }
     if ($this->o1 !== null) {
@@ -15332,25 +15554,223 @@ class ThriftHiveMetastore_drop_partition
 
 }
 
-class ThriftHiveMetastore_get_partition_args {
+class ThriftHiveMetastore_drop_partitions_req_args {
   static $_TSPEC;
 
-  public $db_name = null;
-  public $tbl_name = null;
-  public $part_vals = null;
+  public $req = null;
 
   public function __construct($vals=null) {
     if (!isset(self::$_TSPEC)) {
       self::$_TSPEC = array(
         1 => array(
-          'var' => 'db_name',
-          'type' => TType::STRING,
-          ),
-        2 => array(
-          'var' => 'tbl_name',
-          'type' => TType::STRING,
+          'var' => 'req',
+          'type' => TType::STRUCT,
+          'class' => '\metastore\DropPartitionsRequest',
           ),
-        3 => array(
+        );
+    }
+    if (is_array($vals)) {
+      if (isset($vals['req'])) {
+        $this->req = $vals['req'];
+      }
+    }
+  }
+
+  public function getName() {
+    return 'ThriftHiveMetastore_drop_partitions_req_args';
+  }
+
+  public function read($input)
+  {
+    $xfer = 0;
+    $fname = null;
+    $ftype = 0;
+    $fid = 0;
+    $xfer += $input->readStructBegin($fname);
+    while (true)
+    {
+      $xfer += $input->readFieldBegin($fname, $ftype, $fid);
+      if ($ftype == TType::STOP) {
+        break;
+      }
+      switch ($fid)
+      {
+        case 1:
+          if ($ftype == TType::STRUCT) {
+            $this->req = new \metastore\DropPartitionsRequest();
+            $xfer += $this->req->read($input);
+          } else {
+            $xfer += $input->skip($ftype);
+          }
+          break;
+        default:
+          $xfer += $input->skip($ftype);
+          break;
+      }
+      $xfer += $input->readFieldEnd();
+    }
+    $xfer += $input->readStructEnd();
+    return $xfer;
+  }
+
+  public function write($output) {
+    $xfer = 0;
+    $xfer += $output->writeStructBegin('ThriftHiveMetastore_drop_partitions_req_args');
+    if ($this->req !== null) {

[... 3072 lines stripped ...]