[Bug] [Vectorized] code dump on aggregate node over union node (#10040)

* miss check passthrough on vectorized

* format and add test

* update
This commit is contained in:
Pxl
2022-06-10 15:02:14 +08:00
committed by GitHub
parent 81a9284305
commit 495c34fa29
3 changed files with 17 additions and 0 deletions

View File

@ -284,9 +284,16 @@ public abstract class SetOperationNode extends PlanNode {
return false;
}
if (VectorizedUtil.isVectorized()) {
// On vectorized engine, we have more chance to do passthrough.
if (childSlotRef.getDesc().getSlotOffset() != setOpSlotRef.getDesc().getSlotOffset()) {
return false;
}
if (childSlotRef.isNullable() != setOpSlotRef.isNullable()) {
return false;
}
if (childSlotRef.getDesc().getType() != setOpSlotRef.getDesc().getType()) {
return false;
}
} else {
if (!childSlotRef.getDesc().layoutEquals(setOpSlotRef.getDesc())) {
return false;