github-actions[bot] commented on code in PR #62619:
URL: https://github.com/apache/doris/pull/62619#discussion_r3115992291


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/ShowAlterTableCommand.java:
##########
@@ -133,6 +134,7 @@ private void getPredicateValue(Expression subExpr, boolean 
isNotExpr) throws Ana
                 throw new AnalysisException("Where clause : TableName = 
\"table1\" or "
                     + "State = 
\"FINISHED|CANCELLED|RUNNING|PENDING|WAITING_TXN\"");
             }
+            filterMap.put(leftKey, isNotExpr ? new Not(subExpr) : subExpr);

Review Comment:
   This fixes the `SHOW ALTER` path, but the functionally parallel `SHOW BUILD 
INDEX` path still has the same bug. `ShowBuildIndexCommand#getPredicateValue()` 
still stores predicates in a single-entry-per-key map, so a second 
`CreateTime`/`FinishTime` predicate overwrites the first one, and 
`BuildIndexProcDir#filterResultExpression()` still cannot evaluate an `And` 
tree. A query like `SHOW BUILD INDEX FROM db WHERE CreateTime >= ... AND 
CreateTime <= ...` will therefore still ignore one side of the range. Since 
both commands expose the same time-filter contract over job listings, this 
leaves the fix incomplete.



-- 
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]

Reply via email to