bowenli86 commented on a change in pull request #8222: [FLINK-11518] [table] Add partition related catalog APIs and implement them in GenericInMemoryCatalog URL: https://github.com/apache/flink/pull/8222#discussion_r277853190
########## File path: flink-table/flink-table-common/src/main/java/org/apache/flink/table/catalog/CatalogTable.java ########## @@ -29,4 +32,15 @@ * @return table statistics */ TableStats getStatistics(); + + /** + * Check if the table is partitioend or not. + */ + boolean isPartitioned(); + + /** + * Get the partition keys of the table. This will be an empty set if the table is not partitioned. + * @return partition keys of the table. + */ + LinkedHashSet<String> getPartitionKeys() throws TableNotPartitionedException; Review comment: I don't really understand your question. Can you elaborate? You are right that Hive's [Table](https://hive.apache.org/javadocs/r2.3.4/api/org/apache/hadoop/hive/metastore/api/Table.html) uses a separate field dedicated for partition keys. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services