yiguolei commented on code in PR #40657:
URL: https://github.com/apache/doris/pull/40657#discussion_r1753094402
##########
regression-test/suites/insert_overwrite_p0/insert_overwrite_auto_detect.groovy:
##########
@@ -150,10 +150,15 @@ suite("test_iot_auto_detect") {
qt_sql " select * from dt order by k0; "
try {
sql """ insert overwrite table dt partition(*) values ("2023-02-02"),
("3000-12-12"); """
+ fail()
} catch (Exception e) {
log.info(e.getMessage())
assertTrue(e.getMessage().contains('Insert has filtered data in strict
mode') ||
e.getMessage().contains('Cannot found origin partitions in auto
detect overwriting'))
- }
+ }
+ // test no rows(no partition hits) overwrite
+ sql " create table dt2 like dt"
Review Comment:
补充一些测试case:
1. 源表是空表,然后目标表指定partition
2. 源表是空表,然后auto partition 的时候。
--
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]