You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HIVE-29249: RuntimeException in PlanModifierForASTConv.introduceDerivedTable for queries with self joins
The problem occurs when we need to introduce a derived table over the left input of the join but the input is already modified (newL) by the shuttle.
Looking for the modified input in the join's children fails and raises an exception. Since we know which input needs to be replaced we can avoid the lookup mechanism in
`introduceDerivedTable(RelNode, RelNode)` and build directly the new join operator via copy.
To avoid unnecessary object creation bubling further up via the HiveRelShuttle mechansim we perform the copy *only* when one of the inputs is modified.
0 commit comments