This is an automated email from the ASF dual-hosted git repository.

dkuzmenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 34a9c6305d2 HIVE-28556: Remove unnecessary Statsistics#clone 
invocation in StatsRulesProcFactory#applyRuntimeStats (Seonggon Namgung, 
reviewed by Denys Kuzmenko, Shohei Okumiya)
34a9c6305d2 is described below

commit 34a9c6305d2a99e46bb6bbb05095c976d1112d31
Author: seonggon <[email protected]>
AuthorDate: Thu Oct 10 01:22:34 2024 +0900

    HIVE-28556: Remove unnecessary Statsistics#clone invocation in 
StatsRulesProcFactory#applyRuntimeStats (Seonggon Namgung, reviewed by Denys 
Kuzmenko, Shohei Okumiya)
    
    Closes #5488
---
 .../hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java
 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java
index 0c7fa176f6d..f70a8604e97 100644
--- 
a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java
+++ 
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java
@@ -3294,8 +3294,7 @@ public class StatsRulesProcFactory {
       return stats;
     }
     LOG.debug("using runtime stats for {}; {}", op, os.get());
-    Statistics outStats = stats.clone();
-    outStats = outStats.scaleToRowCount(os.get().getOutputRecords(), false);
+    Statistics outStats = stats.scaleToRowCount(os.get().getOutputRecords(), 
false);
     outStats.setRuntimeStats(true);
     return outStats;
   }

Reply via email to