[fix](planner)LateralViewRef's toSql method is not correctly implemented (#30590)

This commit is contained in:
starocean999
2024-01-31 13:26:57 +08:00
committed by yiguolei
parent f35803b7a0
commit a640ca5aaf
2 changed files with 3 additions and 1 deletions

View File

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