deniskuzZ commented on code in PR #4346:
URL: https://github.com/apache/hive/pull/4346#discussion_r1205229964
##########
ql/src/java/org/apache/hadoop/hive/ql/metadata/HiveStorageHandler.java:
##########
@@ -619,4 +621,14 @@ default void
prepareAlterTableEnvironmentContext(AbstractAlterTableDesc alterTab
default Boolean hasAppendsOnly(org.apache.hadoop.hive.ql.metadata.Table
hmsTable, SnapshotContext since) {
return null;
}
+
+ default List<String> showPartitions(DDLOperationContext context,
+ org.apache.hadoop.hive.ql.metadata.Table tbl) throws
UnsupportedOperationException {
+ throw new UnsupportedOperationException("Storage handler does not support
show partitions command");
+ }
+
+ default boolean supportsPartitions(){
Review Comment:
why do we need this? it's ok to call `default` showPartitions that might
return `UnsupportedOperationException`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]