[ 
https://issues.apache.org/jira/browse/HIVE-9984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gopal V updated HIVE-9984:
--------------------------
    Attachment: HIVE-9984.2.patch

I don't think the HashMap is a good idea, IdentityHashMap is safer.

Made the memoization more obvious in the attached patch.

> JoinReorder's getOutputSize is exponential
> ------------------------------------------
>
>                 Key: HIVE-9984
>                 URL: https://issues.apache.org/jira/browse/HIVE-9984
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Gunther Hagleitner
>            Assignee: Gunther Hagleitner
>         Attachments: HIVE-9984.1.patch, HIVE-9984.2.patch
>
>
> Found by [~mmokhtar]. Causes major issues in large plans (50+ joins). Simple 
> fix would be to memoize the recursion. There should also be a flag to switch 
> this opt off.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to