924060929 commented on code in PR #57688:
URL: https://github.com/apache/doris/pull/57688#discussion_r2493272658


##########
regression-test/suites/nereids_rules_p0/partition_prune/list_prune_predicate.groovy:
##########
@@ -310,11 +310,19 @@ suite("list_prune_predicate") {
     explain {
         sql "select * from list_par_data_migration partition p1 where k1=2 
order by k1;"
         contains("partitions=1/3 (p1)")
-        contains("PREDICATES")
+        // k1=2 can not be deleted because k1=2 is not always true in p1
+        contains("PREDICATES: (k1[#0] = 2)")
     }
     explain {
         sql "select * from list_par_data_migration partition p1 where k1=1 or 
k1=2 or k1=3 or k1=4 order by k1;"
         contains("partitions=1/3 (p1)")
         notContains("PREDICATES")
     }
+
+    sql "set skip_prune_predicate = true"
+    explain {
+        sql "select * from list_par_data_migration partition p1 where k1=1 or 
k1=2 or k1=3 or k1=4 order by k1;"
+        contains("partitions=1/3 (p1)")
+        contains("PREDICATES")

Review Comment:
   contains("PREDICATES:\n")



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