morrySnow commented on code in PR #51807:
URL: https://github.com/apache/doris/pull/51807#discussion_r2151631005
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/glue/translator/RuntimeFilterTranslator.java:
##########
@@ -129,7 +130,15 @@ public void createLegacyRuntimeFilter(RuntimeFilter
filter, JoinNodeBase node, P
if (!src.getType().equals(targetExpr.getType()) &&
filter.getType() != TRuntimeFilterType.BITMAP) {
targetExpr = new CastExpr(src.getType(), targetExpr);
}
- SlotRef targetSlot = targetSlotRef.getSrcSlotRef();
+ SlotRef targetSlot;
+ if (filter.getTargetScans().get(i) instanceof PhysicalCTEConsumer)
{
+ targetSlot = targetSlotRef.unwrapSlotRef();
+ } else {
+ targetSlot = targetSlotRef.getSrcSlotRef();
Review Comment:
could we compute src slot in Nereids' rules to avoid compute here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]