Github user jihoonson commented on a diff in the pull request:

    https://github.com/apache/tajo/pull/653#discussion_r37430341
  
    --- Diff: 
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/store/MemStore.java
 ---
    @@ -598,6 +598,27 @@ public boolean existPartitionMethod(String 
databaseName, String tableName)
         return protos;
       }
     
    +  public List<TablePartitionKeyProto> getAllPartitionKeys() {
    +    List<TablePartitionKeyProto> protos = new 
ArrayList<TablePartitionKeyProto>();
    +    Set<String> partitionTables = partitions.keySet();
    +    for (String partitionTable : partitionTables) {
    +      Map<String, CatalogProtos.PartitionDescProto> entryMap = 
partitions.get(partitionTable);
    +      for (Map.Entry<String, CatalogProtos.PartitionDescProto> proto : 
entryMap.entrySet()) {
    +        CatalogProtos.PartitionDescProto partitionDescProto = 
proto.getValue();
    +
    +        for (PartitionKeyProto partitionKey : 
partitionDescProto.getPartitionKeysList()) {
    +          TablePartitionKeyProto.Builder builder = 
TablePartitionKeyProto.newBuilder();
    +          builder.setColumnName(partitionKey.getColumnName());
    +          builder.setPartitionValue(partitionKey.getPartitionValue());
    +          builder.setPartitionId(0);
    --- End diff --
    
    partition id is always 0.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to