This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch 2.1-tmp in repository https://gitbox.apache.org/repos/asf/doris.git
commit f31e273ae8e7a1be059afaed43d578821da3aac9 Author: morrySnow <101034200+morrys...@users.noreply.github.com> AuthorDate: Sun Apr 7 19:40:38 2024 +0800 [fix](Nereids) variant column prune push down failed on variant literal (#33328) --- .../expressions/functions/scalar/PushDownToProjectionFunction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/PushDownToProjectionFunction.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/PushDownToProjectionFunction.java index d8e3642c36f..7cdd0031794 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/PushDownToProjectionFunction.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/expressions/functions/scalar/PushDownToProjectionFunction.java @@ -73,8 +73,8 @@ public abstract class PushDownToProjectionFunction extends ScalarFunction { boolean nullable = true; // always nullable at present SlotReference slotRef = new SlotReference(StatementScopeIdGenerator.newExprId(), topColumnSlot.getName(), topColumnSlot.getDataType(), - nullable, topColumnSlot.getQualifier(), topColumnSlot.getTable().get(), - topColumnSlot.getColumn().get(), Optional.of(topColumnSlot.getInternalName()), + nullable, topColumnSlot.getQualifier(), topColumnSlot.getTable().orElse(null), + topColumnSlot.getColumn().orElse(null), Optional.of(topColumnSlot.getInternalName()), fullPaths); ctx.addPathSlotRef(topColumnSlot, fullPaths, slotRef, pushedFunction); ctx.addSlotToRelation(slotRef, ctx.getRelationBySlot(topColumnSlot)); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org