This is an automated email from the ASF dual-hosted git repository.

yangzhg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 13c7b18  add check when set lowerBoundInclusive in operator `<` and 
`<=` (#5382)
13c7b18 is described below

commit 13c7b18592d91c5e06e79d30fde39c7425808cf8
Author: qiye <[email protected]>
AuthorDate: Tue Feb 23 11:14:29 2021 +0800

    add check when set lowerBoundInclusive in operator `<` and `<=` (#5382)
    
    Change-Id: I54c702900d68da21e3fa16e74d55d16c7365e195
    
    Co-authored-by: qijianliang01 <[email protected]>
---
 .../src/main/java/org/apache/doris/planner/SingleNodePlanner.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java 
b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
index 8a4bc83..ddcd981 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java
@@ -939,11 +939,15 @@ public class SingleNodePlanner {
                         break;
                     case LE:
                         partitionColumnFilter.setUpperBound(literal, true);
-                        partitionColumnFilter.lowerBoundInclusive = true;
+                        if (null == partitionColumnFilter.lowerBound) {
+                            partitionColumnFilter.lowerBoundInclusive = true;
+                        }
                         break;
                     case LT:
                         partitionColumnFilter.setUpperBound(literal, false);
-                        partitionColumnFilter.lowerBoundInclusive = true;
+                        if (null == partitionColumnFilter.lowerBound) {
+                            partitionColumnFilter.lowerBoundInclusive = true;
+                        }
                         break;
                     case GE:
                         partitionColumnFilter.setLowerBound(literal, true);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to