Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/653#discussion_r36605076
--- Diff:
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/store/MemStore.java
---
@@ -579,10 +578,19 @@ public void dropPartitionMethod(String databaseName,
String tableName) throws Ca
}
public List<TablePartitionProto> getAllPartitions() throws
CatalogException {
+ int tableId = 0, partitionId = 0;
+ List<TableDescriptorProto> tables = getAllTables();
List<TablePartitionProto> protos = new
ArrayList<TablePartitionProto>();
- Set<String> tables = partitions.keySet();
- for (String table : tables) {
- Map<String, CatalogProtos.PartitionDescProto> entryMap =
partitions.get(table);
+
+ Set<String> partitionTables = partitions.keySet();
+ for (String partitionTable : partitionTables) {
+ for (TableDescriptorProto table : tables) {
--- End diff --
Since it is guaranteed that the tables corresponding to partitions always
exist, it looks not necessary to match table names.
---
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.
---