morningman commented on pull request #4836:
URL: https://github.com/apache/incubator-doris/pull/4836#issuecomment-723462134


   I think if the predicate like `substr(`dt`, 7, 8) in ('09')`, we should not 
do the partition prunner.
   So here:
   
https://github.com/apache/incubator-doris/blob/f40868a4805f0ba503bcca9a9c04f704b61c121b/fe/fe-core/src/main/java/org/apache/doris/planner/SingleNodePlanner.java#L958-L972
   
   We should check if `inPredicate.getChild(0)` is not a slotRef, do not create 
partition filter for it.
   So it won't goes to the `compareLiteral()` logic.


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

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to