This is an automated email from the ASF dual-hosted git repository.
morrysnow pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new 09c5530f8fd branch-3.1: [fix](nereids)allow in partition contains
MAX_VALUE #46076 (#51962)
09c5530f8fd is described below
commit 09c5530f8fdb22a98f8c310d78bf0a636a266f72
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jun 20 12:06:56 2025 +0800
branch-3.1: [fix](nereids)allow in partition contains MAX_VALUE #46076
(#51962)
Cherry-picked from #46076
Co-authored-by: starocean999 <[email protected]>
---
.../apache/doris/nereids/trees/plans/commands/info/InPartition.java | 3 ---
1 file changed, 3 deletions(-)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/InPartition.java
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/InPartition.java
index 611da907e15..079a648b0d8 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/InPartition.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/info/InPartition.java
@@ -49,9 +49,6 @@ public class InPartition extends PartitionDefinition {
} catch (Exception e) {
throw new AnalysisException(e.getMessage(), e.getCause());
}
- if (values.stream().anyMatch(l ->
l.stream().anyMatch(MaxValue.class::isInstance))) {
- throw new AnalysisException("MAXVALUE cannot be used in 'in
partition'");
- }
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]