[fix](planner)LateralViewRef#toSql throw NPE if it is not analyzed (#11221)

This commit is contained in:
morrySnow
2022-07-27 14:44:27 +08:00
committed by GitHub
parent a1599e3f6a
commit d9fab77100
3 changed files with 83 additions and 1 deletions

View File

@ -182,7 +182,7 @@ public class LateralViewRef extends TableRef {
@Override
public String toSql() {
return "lateral view " + fnExpr.toSql() + " " + viewName + " as " + columnName;
return "lateral view " + expr.toSql() + " " + viewName + " as " + columnName;
}
@Override