You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2022/06/10 04:32:34 UTC

[GitHub] [flink] luoyuxia commented on a diff in pull request #19714: [FLINK-27603][hive] Hive dialect supports 'reload function'

luoyuxia commented on code in PR #19714:
URL: https://github.com/apache/flink/pull/19714#discussion_r894143499


##########
flink-connectors/flink-connector-hive/src/main/java/org/apache/flink/table/planner/delegation/hive/HiveParser.java:
##########
@@ -218,7 +217,11 @@ private List<Operation> processCmd(
             // parse statement to get AST
             final HiveParserASTNode node = HiveASTParseUtils.parse(cmd, context);
             Operation operation;
-            if (DDL_NODES.contains(node.getType())) {
+            if (node.getType() == HiveASTParser.TOK_RELOADFUNCTION) {
+                // call  reload function
+                hiveCatalog.reloadFunctions();

Review Comment:
   Good catch. It's the first version for I mistake it that we need to call  reload functions.   But after some investigation about the function load mechanism in Flink, I found we don't need to reloadFunctions. It should be removed. But I haven't removed it



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org