xuefuz commented on a change in pull request #9279: [FLINK-13423][hive] Unable to find function in hive 1 URL: https://github.com/apache/flink/pull/9279#discussion_r308827372
########## File path: flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/catalog/hive/client/HiveShimV1.java ########## @@ -87,6 +87,9 @@ public Function getFunction(IMetaStoreClient client, String dbName, String funct if (e.getCause() instanceof NoSuchObjectException) { throw (NoSuchObjectException) e.getCause(); } + if (e.getMessage().startsWith(NoSuchObjectException.class.getSimpleName())) { Review comment: Nit: it would be nice if we can document why we need this additional check. ---------------------------------------------------------------- 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