[Bug](agg-state) fix file load insert wrong data to agg_state (#26581)

fix file load insert wrong data to agg_state
This commit is contained in:
Pxl
2023-11-10 11:03:13 +08:00
committed by GitHub
parent 7ce746654a
commit c02c00974f
4 changed files with 56 additions and 1 deletions

View File

@ -130,7 +130,8 @@ public abstract class ScanNode extends PlanNode {
if (PrimitiveType.typeWithPrecision.contains(dstType) && PrimitiveType.typeWithPrecision.contains(srcType)
&& !slotDesc.getType().equals(expr.getType())) {
return expr.castTo(slotDesc.getType());
} else if (dstType != srcType) {
} else if (dstType != srcType || slotDesc.getType().isAggStateType() && expr.getType().isAggStateType()
&& !slotDesc.getType().equals(expr.getType())) {
return expr.castTo(slotDesc.getType());
} else {
return expr;