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
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
deploy a cluster with tikv
execute the flow sql
createtableif not exists added (`id`int(11), `name`text, `some_date`timestamp);
CREATETABLEif not exists incremental (`id`int(11), `name`text, `some_date`timestamp);
create or replaceviewtemp_viewas (select*from`added`where id > (selectmax(id) from`incremental`));
set tidb_slow_log_threshold =0;
show columns from temp_view;
check the slow log for "show columns from temp_view"
tail -f tidb_slow_query.log |grep "show columns from temp_view" -A 20 |grep "Num_cop_tasks"
I don't think this is a bug. There's no such spec/design saying that 'we can't send copr request for SHOW COLUMNS'. I will change this to 'enhancement'.
bb7133
changed the title
show columns for view send cop request
Avoid sending cop request for show columns for viewAug 26, 2022
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
num_cop_tasks should always 0
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: