【 使用环境 】测试环境
【 OB or 其他组件 】ob
【 使用版本 】 4.2.1
【问题描述】OceanBase分布式数据库-海量数据 笔笔算数
根据这个文档看plan_type 有三种状态,但是我查询的时候发现type 还有一种0的状态,帮忙看下这个是什么状态?
obclient [oceanbase]> select case plan_type when 1 then "Local 计划" when 2 then "Remote 计划" when 3 then "Distribute 计划" when 4 then "Uncertain 计划" else plan_type end as plan_type1, count(1) from GV$OB_SQL_AUDIT where tenant_id = 1008 and request_time > time_to_usec('2024-05-21 11:00:00') group by plan_type;
+-------------------+----------+
| plan_type1 | count(1) |
+-------------------+----------+
| Local 计划 | 22263529 |
| 0 | 2398433 |
| Remote 计划 | 302570 |
| Distribute 计划 | 297900 |
+-------------------+----------+
4 rows in set (7.404 sec)