oceanbase / obdiag

obdiag (OceanBase Diagnostic Tool) is designed to help OceanBase users quickly gather necessary information and analyze the root cause of the problem.
https://www.oceanbase.com/docs/obdiag-cn
Mulan Permissive Software License, Version 2
138 stars 32 forks source link

[Bug]: obdiag gather plan_monitor 获取的报告中表结构未获取到 #540

Closed Teingi closed 1 week ago

Teingi commented 1 week ago

Describe the bug

image

Environment

obdiag 2.5.0

Fast reproduce steps

1、手动执行业务sql 2、select last_trace_id(); 3、obdiag gather scene run --scene=observer.perf_sql --since 2m --env "{db_connect: '-hxx -Pxx -uxx -pxx -Dxx', trace_id: 'xx'}"

image

Expected behavior

No response

Actual behavior

No response

Additional context

原因:在处理表名的时候没有处理好,当查询语句中表名带有table_name的时候会将整个"table_name"当成表名,导致获取表名错误。