[fix](planner)the data type should be the same between input slot and sort slot (#27137)
This commit is contained in:
@ -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());
|
||||
|
||||
Reference in New Issue
Block a user