You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] enable_nereids_planner session variable forward not take effect #26781
1、build a fe cluster with 1 master and 1 observer
2、connet the master fe and set global enable_nereids_planner = false (default is true)
3、connect to observer and execute stmts
`create table t1_cte (
id int,
id1 int,
c1 bigint,
c2 string,
c3 double,
c4 date
) unique key (id, id1)
distributed by hash(id, id1)
properties(
"replication_num"="1",
"function_column.sequence_col" = "c4",
"enable_unique_key_merge_on_write" = "true"
);
create table t2_cte (
id int,
c1 bigint,
c2 string,
c3 double,
c4 date
) unique key (id)
distributed by hash(id)
properties(
"replication_num"="1"
);
create table t3_cte (
id int
) distributed by hash(id)
properties(
"replication_num"="1"
);
set enable_nereids_planner=true;
set enable_fallback_to_original_planner=false;
set enable_nereids_dml=true;
with cte as (select * from t3_cte)
delete from t1_cte
using t2_cte join cte on t2_cte.id = cte.id
where t1_cte.id = t2_cte.id;`
4、the stmt will get error :
`mysql> with cte as (select * from t3_cte)
-> delete from t1_cte
-> using t2_cte join cte on t2_cte.id = cte.id
-> where t1_cte.id = t2_cte.id;
ERROR 1105 (HY000): errCode = 2, detailMessage = Syntax error in line 2:
delete from t1_cte
^
Encountered: DELETE
Expected: COMMA
`
What You Expected?
mysql> with cte as (select * from t3_cte)
-> delete from t1_cte
-> using t2_cte join cte on t2_cte.id = cte.id
-> where t1_cte.id = t2_cte.id;
Activity