Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,18 @@ private void checkScalarFunction(Expr child0) throws AnalysisException {
throw new AnalysisException("Subquery is not allowed in lateral view");
}
}

@Override
public void reset() {
isAnalyzed = false;
expr.reset();
fnExpr = null;
originSlotRefList = Lists.newArrayList();
view = null;
explodeSlotRef = null;
// There is no need to call the reset function of @relatedTableRef here.
// The main reason is that @lateralViewRef itself is an attribute of @relatedTableRef
// The reset of @lateralViewRef happens in the reset() of @relatedTableRef.
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,11 @@ public void reset() {
allMaterializedTupleIds_.clear();
correlatedTupleIds_.clear();
desc = null;
if (lateralViewRefs != null) {
for (LateralViewRef lateralViewRef : lateralViewRefs) {
lateralViewRef.reset();
}
}
}

/**
Expand Down