InvisibleProgrammer commented on code in PR #5370:
URL: https://github.com/apache/hive/pull/5370#discussion_r1693207359
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/Optimizer.java:
##########
@@ -79,7 +79,7 @@ public void initialize(HiveConf hiveConf) {
||
postExecHooks.contains("org.apache.hadoop.hive.ql.hooks.PostExecutePrinter")
||
postExecHooks.contains("org.apache.hadoop.hive.ql.hooks.LineageLogger")
|| postExecHooks.contains("org.apache.atlas.hive.hook.HiveHook")) {
- transformations.add(new Generator(postExecHooks));
+ transformations.add(Generator.fromConf(hiveConf));
Review Comment:
I assume that before that change, we read the transformations from the
postExecHooks that is as far I remember, calculated once. And from now, we read
those again at every single query execution.
Am I correct?
--
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]