[Fix](Variant) fix variant with not null (#32248)

ignore null bitmap for not null and make subcolumn access slots always nullable
This commit is contained in:
lihangyu
2024-03-19 11:16:45 +08:00
committed by yiguolei
parent 6aec479013
commit a0a3a2a2ce
4 changed files with 12 additions and 6 deletions

View File

@ -71,9 +71,10 @@ public abstract class PushDownToProjectionFunction extends ScalarFunction {
// avoid duplicated slots
return targetColumnSlot;
}
boolean nullable = true; // always nullable at present
SlotReference slotRef = new SlotReference(StatementScopeIdGenerator.newExprId(),
topColumnSlot.getName(), topColumnSlot.getDataType(),
topColumnSlot.nullable(), topColumnSlot.getQualifier(), topColumnSlot.getTable().get(),
nullable, topColumnSlot.getQualifier(), topColumnSlot.getTable().get(),
topColumnSlot.getColumn().get(), Optional.of(topColumnSlot.getInternalName()),
fullPaths);
ctx.addPathSlotRef(topColumnSlot, fullPaths, slotRef, pushedFunction);