You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Zoltan Haindrich (JIRA)" <ji...@apache.org> on 2018/09/19 13:39:00 UTC
[jira] [Commented] (HIVE-20598) Fix typos in HiveAlgorithmsUtil
calculations
[ https://issues.apache.org/jira/browse/HIVE-20598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16620594#comment-16620594 ]
Zoltan Haindrich commented on HIVE-20598:
-----------------------------------------
there were a few more...in which cases it might have multiplied by 0
> Fix typos in HiveAlgorithmsUtil calculations
> --------------------------------------------
>
> Key: HIVE-20598
> URL: https://issues.apache.org/jira/browse/HIVE-20598
> Project: Hive
> Issue Type: Bug
> Components: Logical Optimizer
> Reporter: Zoltan Haindrich
> Assignee: Zoltan Haindrich
> Priority: Major
> Attachments: HIVE-20598.01.patch
>
>
> HIVE-10343 have made the costs changeable by hiveconf settings; however there was a method in which there was already a local variable named cpuCost....bottom line is the cost of n-way joins calculated by this method is computed as the product of the number of rows...
> https://github.com/apache/hive/blob/9c907769a63a6b23c91fdf0b3f3d0aa6387035dc/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/cost/HiveAlgorithmsUtil.java#L83
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)