[fix](planner)the data type should be the same between input slot and sort slot (#27137)

This commit is contained in:
starocean999
2023-11-23 18:40:02 +08:00
committed by GitHub
parent ab739a6cdc
commit 2ec3395087
3 changed files with 25 additions and 2 deletions

View File

@ -313,9 +313,10 @@ public class AnalyticPlanner {
SlotDescriptor sortSlotDesc = analyzer.getDescTbl().addSlotDescriptor(sortTupleDesc);
if (inputSlotDesc.getColumn() != null) {
sortSlotDesc.setColumn(inputSlotDesc.getColumn());
} else {
sortSlotDesc.setType(inputSlotDesc.getType());
}
// always set type as inputSlotDesc's type
sortSlotDesc.setType(inputSlotDesc.getType());
// all output slots need to be materialized
sortSlotDesc.setIsMaterialized(true);
sortSlotDesc.setIsNullable(inputSlotDesc.getIsNullable());