Review Board 1.7.22


HIVE-2050. batch processing partition pruning process

Review Request #522 - Created March 22, 2011 and submitted

Ning Zhang
Reviewers
hive
hive
Introducing a new metastore API to retrieve a list of partitions in batch. 

 
trunk/metastore/if/hive_metastore.thrift
Revision 1085555 New Change
[20] 300 lines
[+20]
301
  // get the partitions matching the given partition filter
301
  // get the partitions matching the given partition filter
302
  list<Partition> get_partitions_by_filter(1:string db_name 2:string tbl_name
302
  list<Partition> get_partitions_by_filter(1:string db_name 2:string tbl_name
303
    3:string filter, 4:i16 max_parts=-1)
303
    3:string filter, 4:i16 max_parts=-1)
304
                       throws(1:MetaException o1, 2:NoSuchObjectException o2)
304
                       throws(1:MetaException o1, 2:NoSuchObjectException o2)
305

    
   
305

   

    
   
306
  // get partitions give a list of partition names

    
   
307
  list<Partition> get_partitions_by_names(1:string db_name 2:string tbl_name 3:list<string> names)

    
   
308
                       throws(1:MetaException o1, 2:NoSuchObjectException o2)

    
   
309

   
306
  // changes the partition to the new partition object. partition is identified from the part values
310
  // changes the partition to the new partition object. partition is identified from the part values
307
  // in the new_part
311
  // in the new_part
308
  // * See notes on DDL_TIME
312
  // * See notes on DDL_TIME
309
  void alter_partition(1:string db_name, 2:string tbl_name, 3:Partition new_part)
313
  void alter_partition(1:string db_name, 2:string tbl_name, 3:Partition new_part)
310
                       throws(1:InvalidOperationException o1, 2:MetaException o2)
314
                       throws(1:InvalidOperationException o1, 2:MetaException o2)
[+20] [20] 99 lines
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
Revision 1085555 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java
Revision 1085555 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java
Revision 1085555 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java
Revision 1085555 New Change
 
trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java
Revision 1085555 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java
Revision 1085555 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java
Revision 1085555 New Change
 
trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java
Revision 1085555 New Change
 
  1. trunk/metastore/if/hive_metastore.thrift: Loading...
  2. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java: Loading...
  3. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java: Loading...
  4. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java: Loading...
  5. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java: Loading...
  6. trunk/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java: Loading...
  7. trunk/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java: Loading...
  8. trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartExprEvalUtils.java: Loading...
  9. trunk/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java: Loading...