[fix](planner)LateralViewRef#toSql throw NPE if it is not analyzed (#11221)
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user