[
https://issues.apache.org/jira/browse/HIVE-30283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151342#comment-18151342
]
Stamatis Zampetakis commented on HIVE-30283:
--------------------------------------------
The motivation for logging this ticket came during the review of HIVE-30201
where we found that there are multiple APIs available and some leads to crashes
as the one reported under the respective ticket.
> 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
> Priority: Major
>
> 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)