morrySnow commented on code in PR #24186:
URL: https://github.com/apache/doris/pull/24186#discussion_r1323206701
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/rules/expression/rules/PartitionPruner.java:
##########
@@ -108,6 +109,9 @@ public static final OnePartitionEvaluator
toPartitionEvaluator(long id, Partitio
}
private boolean canPrune(OnePartitionEvaluator evaluator) {
+ if (evaluator.isDefaultPartition()) {
+ return false;
+ }
List<Map<Slot, PartitionSlotInput>> onePartitionInputs =
evaluator.getOnePartitionInputs();
for (Map<Slot, PartitionSlotInput> currentInputs : onePartitionInputs)
{
Expression result = evaluator.evaluate(partitionPredicate,
currentInputs);
Review Comment:
u should impl as return TRUE if partition is default partion in evaluate.
--
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]