Files
doris/regression-test/data/delete_p0/test_delete_where_in.out
mch_ucchi 64a1eb77f0 [opt](planner) support delete with a subquery in predicate by construct an insert. (#20983)
complex predicate in delete stmt like: 
```sql
delete from t1 where t1.id in (select id from t2);
```

will be replaced to an insert stmt.
```sql
insert into t1(id, __DORIS_DELETE_SIGN__) select id, 1 from t1 where id in (select id from t2);
```
2023-06-27 17:51:13 +08:00

27 lines
279 B
Plaintext

-- This file is automatically generated. You should know what you did if you want to edit this
-- !sql --
99995
-- !sql --
94194
-- !sql --
85783
-- !sql --
85783
-- !sql --
35784
-- !sql --
0
-- !sql --
0
-- !delete_in --
2 20 2 2 2.0 2000-01-02
3 30 3 3 3.0 2000-01-03