[ https://issues.apache.org/jira/browse/HIVE-12021?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14943902#comment-14943902 ]
Laljo John Pullokkaran commented on HIVE-12021: ----------------------------------------------- [~jcamachorodriguez] The logic of traversing expressions (ExtractCommonOperands) is not recursive and misses many of the use cases. I think it can be changed to traverse recursively. Also check for comparison need to take in to account functions (ex: ((x+y)=10 and z=1) or ((x+y)=10 and z=2) ). > HivePreFilteringRule may introduce wrong common operands > -------------------------------------------------------- > > Key: HIVE-12021 > URL: https://issues.apache.org/jira/browse/HIVE-12021 > Project: Hive > Issue Type: Bug > Components: CBO > Affects Versions: 1.3.0, 1.2.1, 2.0.0 > Reporter: Jesus Camacho Rodriguez > Assignee: Jesus Camacho Rodriguez > Fix For: 1.3.0, 2.0.0, 1.2.2 > > Attachments: HIVE-12021.01.patch, HIVE-12021.02.patch, > HIVE-12021.02.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)