This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
commit 820bf7e59063c7bfa8929098881f2ebcb10b2a67 Author: 谢健 <[email protected]> AuthorDate: Tue Mar 26 13:01:46 2024 +0800 [fix](mtmv) use min value to check the first partition (#32765) --- .../doris/nereids/trees/plans/commands/UpdateMvByPartitionCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/UpdateMvByPartitionCommand.java b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/UpdateMvByPartitionCommand.java index f371a359e0a..67864187bb2 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/UpdateMvByPartitionCommand.java +++ b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/UpdateMvByPartitionCommand.java @@ -180,7 +180,7 @@ public class UpdateMvByPartitionCommand extends InsertOverwriteTableCommand { Expression predicate = ExpressionUtils.and(expressions); // The partition without can be the first partition of LESS THAN PARTITIONS // The null value can insert into this partition, so we need to add or is null condition - if (!range.hasLowerBound()) { + if (!range.hasLowerBound() || range.lowerEndpoint().isMinValue()) { predicate = ExpressionUtils.or(predicate, new IsNull(col)); } return predicate; --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
