[ https://issues.apache.org/jira/browse/PHOENIX-6098?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Toshihiro Suzuki updated PHOENIX-6098: -------------------------------------- Description: Currently, the following code of IndexPredicateAnalyzer is assuming that GenericUDFOPAnd always has 2 children nodes. I think this is wrong and it leads wrong results: https://github.com/apache/phoenix-connectors/blob/5bd23ae2a0f70c3b3edf92a53780dafa643faf26/phoenix-hive3/src/main/java/org/apache/phoenix/hive/ql/index/IndexPredicateAnalyzer.java#L354-L363 was: Currently, the following code of IndexPredicateAnalyzer is assuming that GenericUDFOPAnd always has 2 children nodes. I think this is wrong and it leads wrong results: https://github.com/apache/phoenix-connectors/blob/5bd23ae2a0f70c3b3edf92a53780dafa643faf26/phoenix-hive/src/main/java/org/apache/phoenix/hive/ql/index/IndexPredicateAnalyzer.java#L346-L359 > IndexPredicateAnalyzer wrongly handles pushdown predicates and residual > predicates > ---------------------------------------------------------------------------------- > > Key: PHOENIX-6098 > URL: https://issues.apache.org/jira/browse/PHOENIX-6098 > Project: Phoenix > Issue Type: Bug > Components: hive-connector > Reporter: Toshihiro Suzuki > Assignee: Toshihiro Suzuki > Priority: Major > Fix For: connectors-6.0.0 > > > Currently, the following code of IndexPredicateAnalyzer is assuming that > GenericUDFOPAnd always has 2 children nodes. I think this is wrong and it > leads wrong results: > https://github.com/apache/phoenix-connectors/blob/5bd23ae2a0f70c3b3edf92a53780dafa643faf26/phoenix-hive3/src/main/java/org/apache/phoenix/hive/ql/index/IndexPredicateAnalyzer.java#L354-L363 -- This message was sent by Atlassian Jira (v8.3.4#803005)