Stamatis Zampetakis created HIVE-30283:
------------------------------------------

             Summary: Unify conjunction/disjunction factories in 
ExprNodeDescUtils
                 Key: HIVE-30283
                 URL: https://issues.apache.org/jira/browse/HIVE-30283
             Project: Hive
          Issue Type: Task
            Reporter: Stamatis Zampetakis
            Assignee: Stamatis Zampetakis


The ExprNodeDescUtils class contains many factories for creating conjunctive 
and disjunctive expressions with lots of overlapping functionality. Having 
different methods doing the same or very similar things makes the code hard to 
maintain and increases the surface of bugs since bugs that are fixed in one 
method are not necessarily fixed elsewhere.

The following methods should be reviewed and if possibly unified ideally 
keeping only one API for conjuctions and one for disjuctions:
* ExprNodeDescUtils.and
* ExprNodeDescUtils.mergePredicates
* ExprNodeDescUtils.conjunction
* ExprNodeDescUtils.or
* ExprNodeDescUtils.disjunction

In terms of the final name to keep is better to retain the one that leads to a 
smaller diff.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to