Github user jihoonson commented on a diff in the pull request:
https://github.com/apache/tajo/pull/653#discussion_r37429665
--- Diff:
tajo-catalog/tajo-catalog-server/src/main/java/org/apache/tajo/catalog/store/AbstractDBStore.java
---
@@ -2277,6 +2279,41 @@ public void addPartitions(String databaseName,
String tableName, List<CatalogPro
CatalogUtil.closeQuietly(pstmt4);
}
}
+ @Override
+ public List<TablePartitionKeyProto> getAllPartitionKeys() {
+ Connection conn = null;
+ Statement stmt = null;
+ ResultSet resultSet = null;
+
+ List<TablePartitionKeyProto> partitions = new
ArrayList<TablePartitionKeyProto>();
+
+ try {
+ String sql = " SELECT A." + COL_PARTITIONS_PK + ", A.COLUMN_NAME,
A.PARTITION_VALUE " +
+ " FROM " + TB_PARTTION_KEYS + " A " +
+ " WHERE A." + COL_PARTITIONS_PK + " > 0 "+
+ " AND A.COLUMN_NAME IS NOT NULL " +
+ " AND A.PARTITION_VALUE IS NOT NULL ";
--- End diff --
Why are partition keys filtered if they have null partition value?
---
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.
---