Add a rule to force use das if has variable assignments in sql

This commit is contained in:
obdev
2023-09-13 13:21:37 +00:00
committed by ob-robot
parent 0d35739e39
commit c8c222deaa
4 changed files with 14 additions and 0 deletions

View File

@ -1517,6 +1517,7 @@ int ObJoinOrder::will_use_das(const uint64_t table_id,
get_plan()->get_optimizer_context().has_dblink() ||
get_plan()->get_optimizer_context().has_subquery_in_function_table() ||
get_plan()->get_optimizer_context().has_cursor_expression() ||
get_plan()->get_optimizer_context().has_var_assign() ||
is_batch_update_table;
if (EXTERNAL_TABLE == table_item->table_type_) {
create_das_path = false;