Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.3.0, 2.0.0
-
None
-
None
Description
Deep trees of AND/OR are hard to traverse particularly when they are merely the same structure in nested form as a version of the operator that takes an arbitrary number of args.
One potential way to convert the DFS searches into a simpler BFS search is to introduce a new Operator pair named ALL and ANY.
ALL(A, B, C, D, E) represents AND(AND(AND(AND(E, D), C), B), A)
ANY(A, B, C, D, E) represents OR(OR(OR(OR(E, D), C),B),A)
The SemanticAnalyser would be responsible for generating these operators and this would mean that the depth and complexity of traversals for the simplest case of wide AND/OR trees would be trivial.
Attachments
Attachments
Issue Links
- is part of
-
HIVE-11315 Compilation performance issues for large queries
- Resolved
- is related to
-
HIVE-11557 CBO (Calcite Return Path): Convert to flat AND/OR
- Closed
-
HIVE-11461 Transform flat AND/OR into IN struct clause
- Closed
-
HIVE-11791 Add unit test for HIVE-10122
- Closed
- is required by
-
HIVE-12968 genNotNullFilterForJoinSourcePlan: needs to merge predicates into the multi-AND
- Closed
- relates to
-
HIVE-11448 Support vectorization of Multi-OR and Multi-AND
- Closed
- supercedes
-
HIVE-11412 StackOverFlow in SemanticAnalyzer for huge filters (~5000)
- Resolved
-
HIVE-11415 Add early termination for recursion in vectorization for deep filter queries
- Resolved