simhadri-g commented on code in PR #4346: URL: https://github.com/apache/hive/pull/4346#discussion_r1235688990
########## ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java: ########## @@ -638,4 +640,18 @@ default void prepareAlterTableEnvironmentContext(AbstractAlterTableDesc alterTab default Boolean hasAppendsOnly(org.apache.hadoop.hive.ql.metadata.Table hmsTable, SnapshotContext since) { return null; } + + /** + * Checks if storage handler supports Show Partitions and returns a list of partitions + * @param context + * @param tbl + * @return List of partitions + * @throws UnsupportedOperationException + * @throws HiveException + */ + default List<String> showPartitions(DDLOperationContext context, + org.apache.hadoop.hive.ql.metadata.Table tbl) throws UnsupportedOperationException, HiveException { Review Comment: To indicate if table is not partitioned or table is empty : https://github.com/apache/hive/pull/4346/files#diff-93864ecf035fe51b92185015da842a56837cea89064813de39c278c6f8fed03cR1464 -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org For additional commands, e-mail: gitbox-h...@hive.apache.org