Description
HIVE-10844 introduced a comparator factory class for operators that encapsulates all the logic to assess whether two operators are equal:
https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/optimizer/OperatorComparatorFactory.java
The current design might create problems as any change in fields of operators will break the comparators. It would be better to do this via inheritance from Operator base class, by adding a logicalEquals(Operator other) method.
Attachments
Attachments
Issue Links
- relates to
-
HIVE-16867 Extend shared scan optimizer to reuse computation from other operators
- Closed
- links to