[Bug](stream-load) fix stream load failed on table with rollup (#29665)

fix stream load failed on table with rollup
This commit is contained in:
Pxl
2024-01-09 16:38:20 +08:00
committed by yiguolei
parent 9cbb55d49b
commit 7738eca6da
4 changed files with 28 additions and 71 deletions

View File

@ -460,6 +460,9 @@ public class Load {
Map<String, Expr> mvDefineExpr = Maps.newHashMap();
for (Column column : tbl.getFullSchema()) {
if (column.getDefineExpr() != null) {
if (column.getDefineExpr().getType().isInvalid()) {
column.getDefineExpr().setType(column.getType());
}
mvDefineExpr.put(column.getName(), column.getDefineExpr());
}
}