tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blrun...@apache.org
Subject [1/2] tajo git commit: TAJO-1345: Implement logical plan part and DDL executor for alter partition. (jaehwa)
Date Fri, 17 Jul 2015 05:50:18 GMT
Repository: tajo
Updated Branches:
  refs/heads/master 92e3bc1b8 -> 3dba8c7e6


http://git-wip-us.apache.org/repos/asf/tajo/blob/3dba8c7e/tajo-plan/src/main/proto/Plan.proto
----------------------------------------------------------------------
diff --git a/tajo-plan/src/main/proto/Plan.proto b/tajo-plan/src/main/proto/Plan.proto
index 40b7891..7855acd 100644
--- a/tajo-plan/src/main/proto/Plan.proto
+++ b/tajo-plan/src/main/proto/Plan.proto
@@ -280,6 +280,8 @@ message AlterTableNode {
     RENAME_COLUMN = 1;
     ADD_COLUMN = 2;
     SET_PROPERTY = 3;
+    ADD_PARTITION = 4;
+    DROP_PARTITION = 5;
   }
 
   message RenameTable {
@@ -295,12 +297,20 @@ message AlterTableNode {
     required ColumnProto addColumn = 1;
   }
 
+  message AlterPartition {
+    repeated string columnNames = 1;
+    repeated string partitionValues = 21;
+    optional string location = 3;
+    optional bool purge = 4;
+  }
+
   required string tableName = 1;
   required Type setType = 2;
   optional RenameTable renameTable = 3;
   optional RenameColumn renameColumn = 4;
   optional AddColumn addColumn = 5;
   optional KeyValueSetProto properties = 6;
+  optional AlterPartition alterPartition = 7;
 }
 
 enum EvalType {


Mime
View raw message