bobhan1 commented on code in PR #28105:
URL: https://github.com/apache/doris/pull/28105#discussion_r1424758555


##########
regression-test/suites/datatype_p0/datev1/test_datev1_common.groovy:
##########
@@ -371,12 +371,14 @@ suite("test_datev1_common", "nonConcurrent") {
         """)
     }
 
+    sql """set delete_without_partition=true; """

Review Comment:
   从文档的描述来看似乎是mor表的行为有问题,这里删除条件推断不出来分区 
https://doris.apache.org/zh-CN/docs/dev/sql-manual/sql-reference/Data-Manipulation-Statements/Manipulation/DELETE/
   > 语法一中,如果为分区表,需要指定分区,如果不指定,doris 会从条件中推断出分区。两种情况下,doris 无法从条件中推断出分区: 1) 
条件中不包含分区列;2) 分区列的 op 为 not in。当分区表未指定分区,或者无法从条件中推断分区的时候,需要设置会话变量 
delete_without_partition 为 true,此时 delete 会应用到所有分区。
   



##########
regression-test/suites/datatype_p0/datev1/test_datev1_common.groovy:
##########
@@ -371,12 +371,14 @@ suite("test_datev1_common", "nonConcurrent") {
         """)
     }
 
+    sql """set delete_without_partition=true; """

Review Comment:
   从文档的描述来看似乎是mor表的行为有问题,这里删除条件推断不出来分区 
https://doris.apache.org/zh-CN/docs/dev/sql-manual/sql-reference/Data-Manipulation-Statements/Manipulation/DELETE/
   > 语法一中,如果为分区表,需要指定分区,如果不指定,doris 会从条件中推断出分区。两种情况下,doris 无法从条件中推断出分区: 1) 
条件中不包含分区列;2) 分区列的 op 为 not in。当分区表未指定分区,或者无法从条件中推断分区的时候,需要设置会话变量 
delete_without_partition 为 true,此时 delete 会应用到所有分区。
   



-- 
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: commits-unsubscr...@doris.apache.org

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