| trace_id | query_sql | RETURN_ROWS | REQUEST_TIME | REQUEST_END_TIME | ELAPSED_TIME | TENANT_NAME | user_name | db_name | plan_id | tenant_id | mysql_version | svr_ip | svr_port |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| YB42AC11AC54-00063C5419359DD8-0-0 | SELECT /*test092301*/ *, ( CASE WHEN t.if_color_num = 0 THEN 1 WHEN t.order_count = t.if_color_num THEN 2 ELSE 3 END ) color_type FROM ( SELECT a.order_name, a.order_id, a.cust_id, a.use_type, a.state, a.create_time, a.state_date, a.dev_id, a.print_class, a.exec_print_flag, a.checked_flag, a.station_ver, g.pay_method, g.amount, g.bean_amt, g.channel_amt, (SELECT mobile FROM t_cust cust WHERE cust.cust_id = a.cust_id) mobile, d.station_id, d.station_name, d.merchant_id, d.set_id, e.merchant_name, e.merchant_short_name, g.return_amt AS return_fee, s.set_name, a.checked_ops_name, a.checked_time, a.print_mode, ( SELECT w.total_set_name FROM t_total_set w WHERE w.total_set_id = s.total_set_id ) total_set_name, ( SELECT SUM( g.printed_page ) FROM t_order_file g WHERE g.order_id = a.order_id ) printed_page, ( SELECT SUM(CEILING(g.page_num / g.shrink_plate_num) * g.copy_num) FROM t_order_file g WHERE g.order_id = a.order_id ) page_num, ( SELECT SUM( g.if_color ) FROM t_order_file g WHERE g.order_id = a.order_id ) if_color_num, ( SELECT COUNT( 1 ) FROM t_order_file g WHERE g.order_id = a.order_id ) order_count, '' AS startPage, '' AS endPage, ( SELECT GROUP_CONCAT(CONCAT(t.file_id, ':', t.err_msg) SEPARATOR ';$$$') FROM t_order_file_msg t WHERE t.order_id = a.order_id AND err_msg != '') errMsgConcat, ( SELECT GROUP_CONCAT(CONCAT('退款描述',t.return_id,':', t.problem_desc) SEPARATOR ';$$$') FROM t_order_return t WHERE t.order_id = a.order_id AND problem_desc != '') problemDescConcat FROM t_order a LEFT JOIN t_station d ON a.station_id = d.station_id LEFT JOIN t_device c ON a.dev_id = c.dev_id LEFT JOIN t_set s ON a.set_id = s.set_id LEFT JOIN t_merchant e ON s.merchant_id = e.merchant_id LEFT JOIN t_pay g ON a.pay_id = g.pay_id WHERE 1 = 1 AND a.create_time >= '2025-09-23 00:00:00' AND a.create_time <= '2025-09-23 23:59:59' AND ( EXISTS (SELECT 1 FROM t_order_file_msg s WHERE s.order_id = a.order_id AND s.err_msg!='' AND s.err_msg LIKE CONCAT('%','重复','%')) OR EXISTS (SELECT 1 FROM t_order_return s WHERE s.order_id = a.order_id AND s.problem_desc!='' AND s.problem_desc LIKE CONCAT('%','重复','%')) ) AND a.station_id IS NOT NULL ) t WHERE 1=1 ORDER BY create_time DESC, order_id DESC LIMIT 0,30 |
0 | 2025-09-23 15:17:54.035400 | 2025-09-23 15:18:43.939800 | 49904453 | woqu | rd_read | cprint | 627102 | 1002 | 5.7.25-OceanBase_CE-v4.3.5.3 | 172.17.172.84 | 2882 |
explain extended SELECT /*test092301*/
*,
( CASE WHEN t.if_color_num = 0 THEN 1 WHEN t.order_count = t.if_color_num THEN 2 ELSE 3 END ) color_type
FROM (
SELECT
a.order_name,
a.order_id,
a.cust_id,
a.use_type,
a.state,
a.create_time,
a.state_date,
a.dev_id,
a.print_class,
a.exec_print_flag,
a.checked_flag,
a.station_ver,
g.pay_method,
g.amount,
g.bean_amt,
g.channel_amt,
(SELECT mobile FROM t_cust cust WHERE cust.cust_id = a.cust_id) mobile,
d.station_id,
d.station_name,
d.merchant_id,
d.set_id,
e.merchant_name,
e.merchant_short_name,
g.return_amt AS return_fee,
s.set_name,
a.checked_ops_name,
a.checked_time,
a.print_mode,
( SELECT w.total_set_name FROM t_total_set w WHERE w.total_set_id = s.total_set_id ) total_set_name,
( SELECT SUM( g.printed_page ) FROM t_order_file g WHERE g.order_id = a.order_id ) printed_page,
( SELECT SUM(CEILING(g.page_num / g.shrink_plate_num) * g.copy_num) FROM t_order_file g WHERE g.order_id =
a.order_id ) page_num,
( SELECT SUM( g.if_color ) FROM t_order_file g WHERE g.order_id = a.order_id ) if_color_num,
( SELECT COUNT( 1 ) FROM t_order_file g WHERE g.order_id = a.order_id ) order_count,
'' AS startPage,
'' AS endPage,
( SELECT GROUP_CONCAT(CONCAT(t.file_id, ':', t.err_msg) SEPARATOR ';$$$') FROM t_order_file_msg t WHERE
t.order_id =
a.order_id
AND err_msg != '') errMsgConcat,
( SELECT GROUP_CONCAT(CONCAT('退款描述',t.return_id,':', t.problem_desc) SEPARATOR ';$$$') FROM t_order_return t
WHERE t.order_id = a.order_id
AND problem_desc != '') problemDescConcat
FROM
t_order a
LEFT JOIN t_station d ON a.station_id = d.station_id
LEFT JOIN t_device c ON a.dev_id = c.dev_id
LEFT JOIN t_set s ON a.set_id = s.set_id
LEFT JOIN t_merchant e ON s.merchant_id = e.merchant_id
LEFT JOIN t_pay g ON a.pay_id = g.pay_id
WHERE
1 = 1
AND a.create_time >= '2025-09-23 00:00:00'
AND a.create_time <= '2025-09-23 23:59:59'
AND (
EXISTS (SELECT 1 FROM t_order_file_msg s WHERE s.order_id = a.order_id AND s.err_msg!='' AND s.err_msg LIKE
CONCAT('%','重复','%'))
OR EXISTS (SELECT 1 FROM t_order_return s WHERE s.order_id = a.order_id AND s.problem_desc!='' AND
s.problem_desc LIKE
CONCAT('%','重复','%'))
)
AND a.station_id IS NOT NULL
) t WHERE 1=1
ORDER BY create_time DESC, order_id DESC LIMIT 0,30+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Query Plan |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| ============================================================================================================== |
| |ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)| |
| -------------------------------------------------------------------------------------------------------------- |
| |0 |SORT | |31 |102921 | |
| |1 |└─SUBPLAN FILTER | |31 |102879 | |
| |2 | ├─PX COORDINATOR | |31 |20942 | |
| |3 | │ └─EXCHANGE OUT DISTR |:EX10003 |31 |20754 | |
| |4 | │ └─NESTED-LOOP OUTER JOIN | |31 |20330 | |
| |5 | │ ├─NESTED-LOOP OUTER JOIN | |31 |19833 | |
| |6 | │ │ ├─EXCHANGE IN DISTR | |31 |19335 | |
| |7 | │ │ │ └─EXCHANGE OUT DISTR (BC2HOST) |:EX10002 |31 |19194 | |
| |8 | │ │ │ └─HASH RIGHT OUTER JOIN | |31 |18875 | |
| |9 | │ │ │ ├─TABLE FULL SCAN |e |59 |6 | |
| |10| │ │ │ └─EXCHANGE IN DISTR | |31 |18849 | |
| |11| │ │ │ └─EXCHANGE OUT DISTR |:EX10001 |31 |18722 | |
| |12| │ │ │ └─NESTED-LOOP OUTER JOIN | |31 |18436 | |
| |13| │ │ │ ├─EXCHANGE IN DISTR | |30 |17953 | |
| |14| │ │ │ │ └─EXCHANGE OUT DISTR (BC2HOST) |:EX10000 |30 |17845 | |
| |15| │ │ │ │ └─SUBPLAN SCAN |VIEW4 |30 |17602 | |
| |16| │ │ │ │ └─LIMIT | |30 |17602 | |
| |17| │ │ │ │ └─NESTED-LOOP SEMI JOIN | |30 |17602 | |
| |18| │ │ │ │ ├─TABLE RANGE SCAN |a(idx_2,Reverse)|30 |173 | |
| |19| │ │ │ │ └─SUBPLAN SCAN |VIEW3 |1 |581 | |
| |20| │ │ │ │ └─UNION ALL | |1 |581 | |
| |21| │ │ │ │ ├─DISTRIBUTED TABLE RANGE SCAN|s(i_order_id) |1 |292 | |
| |22| │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|s(idx_order_id) |1 |289 | |
| |23| │ │ │ └─TABLE GET |s |1 |16 | |
| |24| │ │ └─TABLE GET |d |1 |16 | |
| |25| │ └─TABLE GET |g |1 |16 | |
| |26| ├─TABLE GET |cust |1 |18 | |
| |27| ├─PX COORDINATOR | |1 |20 | |
| |28| │ └─EXCHANGE OUT DISTR |:EX20000 |1 |20 | |
| |29| │ └─TABLE GET |w |1 |18 | |
| |30| ├─PX COORDINATOR | |1 |46 | |
| |31| │ └─EXCHANGE OUT DISTR |:EX30000 |1 |46 | |
| |32| │ └─SCALAR GROUP BY | |1 |45 | |
| |33| │ └─TABLE RANGE SCAN |g(idx_1) |5 |45 | |
| |34| ├─PX COORDINATOR | |1 |47 | |
| |35| │ └─EXCHANGE OUT DISTR |:EX40000 |1 |47 | |
| |36| │ └─SCALAR GROUP BY | |1 |46 | |
| |37| │ └─TABLE RANGE SCAN |g(idx_1) |5 |46 | |
| |38| ├─PX COORDINATOR | |1 |46 | |
| |39| │ └─EXCHANGE OUT DISTR |:EX50000 |1 |46 | |
| |40| │ └─SCALAR GROUP BY | |1 |45 | |
| |41| │ └─TABLE RANGE SCAN |g(idx_1) |5 |45 | |
| |42| ├─PX COORDINATOR | |1 |19 | |
| |43| │ └─EXCHANGE OUT DISTR |:EX60000 |1 |19 | |
| |44| │ └─SCALAR GROUP BY | |1 |19 | |
| |45| │ └─TABLE RANGE SCAN |g(idx_1) |5 |18 | |
| |46| ├─PX COORDINATOR | |1 |40 | |
| |47| │ └─EXCHANGE OUT DISTR |:EX70000 |1 |39 | |
| |48| │ └─SCALAR GROUP BY | |1 |38 | |
| |49| │ └─TABLE RANGE SCAN |t(i_order_id) |3 |38 | |
| |50| └─SCALAR GROUP BY | |1 |31 | |
| |51| └─TABLE RANGE SCAN |t(idx_order_id) |1 |31 | |
| ============================================================================================================== |
| Outputs & filters: |
| ------------------------------------- |
| 0 - output([VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], [VIEW4.a.use_type(0x7fa2a85de120)], |
| [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [g.pay_method(0x7fa4986bdd10)], |
| [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [subquery(1)(0x7fa4986be8a0)], [d.station_id(0x7fa498670ba0)], |
| [d.station_name(0x7fa4986eedb0)], [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], |
| [g.return_amt(0x7fa4986efe40)], [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [subquery(2)(0x7fa4986f0d20)], [subquery(3)(0x7fa498704610)], [subquery(4)(0x7fa498721300)], [subquery(5)(0x7fa498738460)], [subquery(6)(0x7fa49875d3f0)], |
| [''(0x7fa498770c20)], [''(0x7fa498770d80)], [subquery(7)(0x7fa498770ee0)], [subquery(8)(0x7fa4987a3270)], [CASE WHEN subquery(5)(0x7fa498738460) = cast(0(0x7fa2e582d070), |
| DECIMAL_INT(33, 0))(0x7fa2e582e560)(0x7fa2e582d1c0) THEN 1(0x7fa2e582d310) WHEN cast(subquery(6)(0x7fa49875d3f0), DECIMAL_INT(33, 0))(0x7fa2e582ea20) = |
| subquery(5)(0x7fa498738460)(0x7fa2e582d7c0) THEN 2(0x7fa2e582d910) ELSE 3(0x7fa2e582da60) END(0x7fa2e582cb80)]), filter(nil), rowset=256 |
| sort_keys([VIEW4.a.create_time(0x7fa2a85ddaa0), DESC], [VIEW4.a.order_id(0x7fa2a85ddc40), DESC]) |
| 1 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [g.pay_method(0x7fa4986bdd10)], |
| [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [subquery(1)(0x7fa4986be8a0)], [d.station_id(0x7fa498670ba0)], |
| [d.station_name(0x7fa4986eedb0)], [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], |
| [g.return_amt(0x7fa4986efe40)], [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [subquery(2)(0x7fa4986f0d20)], [subquery(3)(0x7fa498704610)], [subquery(4)(0x7fa498721300)], [subquery(5)(0x7fa498738460)], [subquery(6)(0x7fa49875d3f0)], |
| [subquery(7)(0x7fa498770ee0)], [subquery(8)(0x7fa4987a3270)]), filter(nil), rowset=256 |
| exec_params_([VIEW4.a.cust_id(0x7fa2a85ddf80)(:0(0x7fa4986e0a90))], [s.total_set_id(0x7fa498703de0)(:1(0x7fa498703f70))], [VIEW4.a.order_id(0x7fa2a85ddc40)(:2(0x7fa49871ea90))], |
| [VIEW4.a.order_id(0x7fa2a85ddc40)(:3(0x7fa4987362d0))], [VIEW4.a.order_id(0x7fa2a85ddc40)(:4(0x7fa49875ca90))], [VIEW4.a.order_id(0x7fa2a85ddc40)(:5(0x7fa4987704b0))], |
| [VIEW4.a.order_id(0x7fa2a85ddc40)(:6(0x7fa498784060))], [VIEW4.a.order_id(0x7fa2a85ddc40)(:7(0x7fa4987b63e0))]), onetime_exprs_(nil), init_plan_idxs_(nil), |
| use_batch=false |
| 2 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [g.pay_method(0x7fa4986bdd10)], |
| [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [d.station_id(0x7fa498670ba0)], [d.station_name(0x7fa4986eedb0)], |
| [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], [g.return_amt(0x7fa4986efe40)], |
| [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [s.total_set_id(0x7fa498703de0)]), filter(nil), rowset=256 |
| 3 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [g.pay_method(0x7fa4986bdd10)], |
| [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [d.station_id(0x7fa498670ba0)], [d.station_name(0x7fa4986eedb0)], |
| [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], [g.return_amt(0x7fa4986efe40)], |
| [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [s.total_set_id(0x7fa498703de0)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 4 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [g.pay_method(0x7fa4986bdd10)], |
| [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [d.station_id(0x7fa498670ba0)], [d.station_name(0x7fa4986eedb0)], |
| [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], [g.return_amt(0x7fa4986efe40)], |
| [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [s.total_set_id(0x7fa498703de0)]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.pay_id(0x7fa2a85dd5c0)(:11(0x7fa4988d06b0))]), use_batch=true |
| 5 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [d.station_id(0x7fa498670ba0)], |
| [d.station_name(0x7fa4986eedb0)], [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)], |
| [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], |
| [s.total_set_id(0x7fa498703de0)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.station_id(0x7fa2a85dd900)(:9(0x7fa49889d020))]), use_batch=true |
| 6 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [e.merchant_name(0x7fa4986ef7a0)], |
| [e.merchant_short_name(0x7fa4986efaf0)], [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], |
| [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)]), filter(nil), rowset=256 |
| 7 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [e.merchant_name(0x7fa4986ef7a0)], |
| [e.merchant_short_name(0x7fa4986efaf0)], [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], |
| [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 8 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [e.merchant_name(0x7fa4986ef7a0)], |
| [e.merchant_short_name(0x7fa4986efaf0)], [s.set_name(0x7fa4986f0190)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], |
| [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)]), filter(nil), rowset=256 |
| equal_conds([s.merchant_id(0x7fa498676f60) = e.merchant_id(0x7fa4986770f0)(0x7fa498676df0)]), other_conds(nil) |
| 9 - output([e.merchant_id(0x7fa4986770f0)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)]), filter(nil), rowset=256 |
| access([e.merchant_id(0x7fa4986770f0)], [e.merchant_name(0x7fa4986ef7a0)], [e.merchant_short_name(0x7fa4986efaf0)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([e.merchant_id(0x7fa4986770f0)]), range(MIN ; MAX)always true |
| 10 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [s.set_name(0x7fa4986f0190)], |
| [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], |
| [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)], [s.merchant_id(0x7fa498676f60)]), filter(nil), rowset=256 |
| 11 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [s.set_name(0x7fa4986f0190)], |
| [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], |
| [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)], [s.merchant_id(0x7fa498676f60)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 12 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [s.set_name(0x7fa4986f0190)], |
| [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], [s.total_set_id(0x7fa498703de0)], |
| [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)], [s.merchant_id(0x7fa498676f60)]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.set_id(0x7fa2a85dd760)(:10(0x7fa4988b5880))]), use_batch=true |
| 13 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], |
| [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)], [VIEW4.a.set_id(0x7fa2a85dd760)]), filter(nil), rowset=256 |
| 14 - output([VIEW4.a.create_time(0x7fa2a85ddaa0)], [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], |
| [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], |
| [VIEW4.a.exec_print_flag(0x7fa2a85de950)], [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], |
| [VIEW4.a.checked_time(0x7fa2a85ec8f0)], [VIEW4.a.print_mode(0x7fa2a85eca90)], [VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.station_id(0x7fa2a85dd900)], [VIEW4.a.set_id(0x7fa2a85dd760)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 15 - output([VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.set_id(0x7fa2a85dd760)], [VIEW4.a.station_id(0x7fa2a85dd900)], [VIEW4.a.create_time(0x7fa2a85ddaa0)], |
| [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], |
| [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], [VIEW4.a.exec_print_flag(0x7fa2a85de950)], |
| [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], |
| [VIEW4.a.print_mode(0x7fa2a85eca90)]), filter(nil), rowset=256 |
| access([VIEW4.a.pay_id(0x7fa2a85dd5c0)], [VIEW4.a.set_id(0x7fa2a85dd760)], [VIEW4.a.station_id(0x7fa2a85dd900)], [VIEW4.a.create_time(0x7fa2a85ddaa0)], |
| [VIEW4.a.order_id(0x7fa2a85ddc40)], [VIEW4.a.order_name(0x7fa2a85ddde0)], [VIEW4.a.cust_id(0x7fa2a85ddf80)], [VIEW4.a.use_type(0x7fa2a85de120)], [VIEW4.a.state(0x7fa2a85de2c0)], |
| [VIEW4.a.state_date(0x7fa2a85de460)], [VIEW4.a.dev_id(0x7fa2a85de600)], [VIEW4.a.print_class(0x7fa2a85de7a0)], [VIEW4.a.exec_print_flag(0x7fa2a85de950)], |
| [VIEW4.a.checked_flag(0x7fa2a85deaf0)], [VIEW4.a.station_ver(0x7fa2a85dec90)], [VIEW4.a.checked_ops_name(0x7fa2a85dee40)], [VIEW4.a.checked_time(0x7fa2a85ec8f0)], |
| [VIEW4.a.print_mode(0x7fa2a85eca90)]) |
| 16 - output([a.pay_id(0x7fa498679b80)], [a.set_id(0x7fa498674340)], [a.station_id(0x7fa498670a10)], [a.create_time(0x7fa49867ab50)], [a.order_id(0x7fa4986a2b80)], |
| [a.order_name(0x7fa4986b9af0)], [a.cust_id(0x7fa4986ba000)], [a.use_type(0x7fa4986ba350)], [a.state(0x7fa4986ba6a0)], [a.state_date(0x7fa4986babb0)], [a.dev_id(0x7fa498673630)], |
| [a.print_class(0x7fa4986bcfd0)], [a.exec_print_flag(0x7fa4986bd320)], [a.checked_flag(0x7fa4986bd670)], [a.station_ver(0x7fa4986bd9c0)], [a.checked_ops_name(0x7fa4986f04e0)], |
| [a.checked_time(0x7fa4986f0830)], [a.print_mode(0x7fa4986f0b80)]), filter(nil), rowset=256 |
| limit(30(0x7fa2e582e250)), offset(0(0x7fa2e582e0f0)) |
| 17 - output([a.pay_id(0x7fa498679b80)], [a.set_id(0x7fa498674340)], [a.station_id(0x7fa498670a10)], [a.create_time(0x7fa49867ab50)], [a.order_id(0x7fa4986a2b80)], |
| [a.order_name(0x7fa4986b9af0)], [a.cust_id(0x7fa4986ba000)], [a.use_type(0x7fa4986ba350)], [a.state(0x7fa4986ba6a0)], [a.state_date(0x7fa4986babb0)], [a.dev_id(0x7fa498673630)], |
| [a.print_class(0x7fa4986bcfd0)], [a.exec_print_flag(0x7fa4986bd320)], [a.checked_flag(0x7fa4986bd670)], [a.station_ver(0x7fa4986bd9c0)], [a.checked_ops_name(0x7fa4986f04e0)], |
| [a.checked_time(0x7fa4986f0830)], [a.print_mode(0x7fa4986f0b80)]), filter(nil), rowset=256 |
| conds(nil), nl_params_([a.order_id(0x7fa4986a2b80)(:8(0x7fa305cb54a0))]), use_batch=false |
| 18 - output([a.order_id(0x7fa4986a2b80)], [a.station_id(0x7fa498670a10)], [a.dev_id(0x7fa498673630)], [a.set_id(0x7fa498674340)], [a.pay_id(0x7fa498679b80)], |
| [a.create_time(0x7fa49867ab50)], [a.order_name(0x7fa4986b9af0)], [a.cust_id(0x7fa4986ba000)], [a.use_type(0x7fa4986ba350)], [a.state(0x7fa4986ba6a0)], |
| [a.state_date(0x7fa4986babb0)], [a.print_class(0x7fa4986bcfd0)], [a.exec_print_flag(0x7fa4986bd320)], [a.checked_flag(0x7fa4986bd670)], [a.station_ver(0x7fa4986bd9c0)], |
| [a.checked_ops_name(0x7fa4986f04e0)], [a.checked_time(0x7fa4986f0830)], [a.print_mode(0x7fa4986f0b80)]), filter([a.station_id(0x7fa498670a10) IS NOT NULL(0x7fa4986b94b0)]), rowset=256 |
| access([a.order_id(0x7fa4986a2b80)], [a.station_id(0x7fa498670a10)], [a.dev_id(0x7fa498673630)], [a.set_id(0x7fa498674340)], [a.pay_id(0x7fa498679b80)], |
| [a.create_time(0x7fa49867ab50)], [a.order_name(0x7fa4986b9af0)], [a.cust_id(0x7fa4986ba000)], [a.use_type(0x7fa4986ba350)], [a.state(0x7fa4986ba6a0)], |
| [a.state_date(0x7fa4986babb0)], [a.print_class(0x7fa4986bcfd0)], [a.exec_print_flag(0x7fa4986bd320)], [a.checked_flag(0x7fa4986bd670)], [a.station_ver(0x7fa4986bd9c0)], |
| [a.checked_ops_name(0x7fa4986f04e0)], [a.checked_time(0x7fa4986f0830)], [a.print_mode(0x7fa4986f0b80)]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([a.create_time(0x7fa49867ab50)], [a.order_id(0x7fa4986a2b80)]), range(2025-09-23 00:00:00.000000,MIN ; 2025-09-23 23:59:59.000000,MAX), |
| |
| range_cond([a.create_time(0x7fa49867ab50) >= cast('2025-09-23 00:00:00'(0x7fa3c645be30), MYSQL_DATETIME(-1, -1))(0x7fa3c645bbc0)(0x7fa3c645b950)], |
| [a.create_time(0x7fa49867ab50) <= cast('2025-09-23 23:59:59'(0x7fa3c645c610), MYSQL_DATETIME(-1, -1))(0x7fa3c645c3a0)(0x7fa3c645c130)]) |
| 19 - output(nil), filter(nil), rowset=256 |
| access(nil) |
| 20 - output([UNION([1])(0x7fa2e58929c0)]), filter(nil), rowset=256 |
| 21 - output([s.order_id(0x7fa4986a29f0)]), filter([(T_OP_LIKE, s.err_msg(0x7fa4986a3460), CONCAT('%'(0x7fa4986a3bd0), '重复'(0x7fa4986a3d20), '%'(0x7fa4986a3e70))(0x7fa4986a3a60), |
| '\\')(0x7fa4986a3760)], [s.err_msg(0x7fa4986a3460) != ''(0x7fa4986a31a0)(0x7fa4986a32f0)]), rowset=256 |
| access([s.order_file_id(0x7fa2e5835040)], [s.order_id(0x7fa4986a29f0)], [s.err_msg(0x7fa4986a3460)]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false,false], |
| range_key([s.order_id(0x7fa4986a29f0)], [s.file_id(0x7fa305d43aa0)], [s.order_file_id(0x7fa2e5835040)]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true, |
| |
| range_cond([s.order_id(0x7fa4986a29f0) = :8(0x7fa305cb54a0)(0x7fa3c645c910)]), is_fast_range = true |
| 22 - output([s.order_id(0x7fa4986b7140)]), filter([s.problem_desc(0x7fa4986b7a20) != ''(0x7fa4986b7760)(0x7fa4986b78b0)], [(T_OP_LIKE, s.problem_desc(0x7fa4986b7a20), |
| CONCAT('%'(0x7fa4986b8190), '重复'(0x7fa4986b82e0), '%'(0x7fa4986b8430))(0x7fa4986b8020), '\\')(0x7fa4986b7d20)]), rowset=256 |
| access([s.return_id(0x7fa2e5835450)], [s.order_id(0x7fa4986b7140)], [s.problem_desc(0x7fa4986b7a20)]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false,false], |
| range_key([s.order_id(0x7fa4986b7140)], [s.return_id(0x7fa2e5835450)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([s.order_id(0x7fa4986b7140) = :8(0x7fa305cb54a0)(0x7fa3c645cb50)]), is_fast_range = true |
| 23 - output([s.merchant_id(0x7fa498676f60)], [s.set_name(0x7fa4986f0190)], [s.total_set_id(0x7fa498703de0)]), filter(nil), rowset=256 |
| access([GROUP_ID(0x7fa3c6437090)], [s.merchant_id(0x7fa498676f60)], [s.set_name(0x7fa4986f0190)], [s.total_set_id(0x7fa498703de0)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([s.set_id(0x7fa4986744d0)]), range(MIN ; MAX), |
| range_cond([:10(0x7fa4988b5880) = s.set_id(0x7fa4986744d0)(0x7fa3c645cd90)]), is_fast_range = true |
| 24 - output([d.station_id(0x7fa498670ba0)], [d.station_name(0x7fa4986eedb0)], [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)]), filter(nil), rowset=256 |
| access([GROUP_ID(0x7fa3c6447d80)], [d.station_id(0x7fa498670ba0)], [d.station_name(0x7fa4986eedb0)], [d.merchant_id(0x7fa4986ef100)], [d.set_id(0x7fa4986ef450)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([d.station_id(0x7fa498670ba0)]), range(MIN ; MAX), |
| range_cond([:9(0x7fa49889d020) = d.station_id(0x7fa498670ba0)(0x7fa3c645cfd0)]), is_fast_range = true |
| 25 - output([g.pay_method(0x7fa4986bdd10)], [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], [g.return_amt(0x7fa4986efe40)]), filter(nil), rowset=256 |
| access([GROUP_ID(0x7fa3c644bca0)], [g.pay_method(0x7fa4986bdd10)], [g.amount(0x7fa4986be060)], [g.bean_amt(0x7fa4986be3b0)], [g.channel_amt(0x7fa4986be700)], |
| [g.return_amt(0x7fa4986efe40)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([g.pay_id(0x7fa498679d10)]), range(MIN ; MAX), |
| range_cond([:11(0x7fa4988d06b0) = g.pay_id(0x7fa498679d10)(0x7fa3c645d210)]), is_fast_range = true |
| 26 - output([cust.mobile(0x7fa4986e0f30)]), filter(nil), rowset=256 |
| access([cust.mobile(0x7fa4986e0f30)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([cust.cust_id(0x7fa4986e0900)]), range(MIN ; MAX)always true, |
| range_cond([cust.cust_id(0x7fa4986e0900) = :0(0x7fa4986e0a90)(0x7fa3c645d450)]), is_fast_range = true |
| 27 - output([w.total_set_name(0x7fa498704410)]), filter(nil), rowset=256 |
| 28 - output([w.total_set_name(0x7fa498704410)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 29 - output([w.total_set_name(0x7fa498704410)]), filter(nil), rowset=256 |
| access([w.total_set_name(0x7fa498704410)]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([w.total_set_id(0x7fa498703c50)]), range(MIN ; MAX)always true, |
| range_cond([w.total_set_id(0x7fa498703c50) = :1(0x7fa498703f70)(0x7fa3c645d690)]), is_fast_range = true |
| 30 - output([T_FUN_SUM(g.printed_page(0x7fa49871f1a0))(0x7fa49871ed80)]), filter(nil), rowset=256 |
| 31 - output([T_FUN_SUM(g.printed_page(0x7fa49871f1a0))(0x7fa49871ed80)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 32 - output([T_FUN_SUM(g.printed_page(0x7fa49871f1a0))(0x7fa49871ed80)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(g.printed_page(0x7fa49871f1a0))(0x7fa49871ed80)]) |
| 33 - output([g.printed_page(0x7fa49871f1a0)]), filter(nil), rowset=256 |
| access([g.order_file_id(0x7fa2e5835960)], [g.printed_page(0x7fa49871f1a0)]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id(0x7fa49871e900)], [g.order_file_id(0x7fa2e5835960)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id(0x7fa49871e900) = :2(0x7fa49871ea90)(0x7fa3c645d8d0)]), is_fast_range = true |
| 34 - output([T_FUN_SUM(CEILING(cast(g.page_num(0x7fa498737270), DECIMAL_INT(27, 16))(0x7fa4987379e0) / cast(g.shrink_plate_num(0x7fa498737400), DECIMAL_INT(4, |
| 0))(0x7fa498737db0)(0x7fa498736ce0))(0x7fa498736820) * g.copy_num(0x7fa498737590)(0x7fa4987370c0))(0x7fa4987365c0)]), filter(nil), rowset=256 |
| 35 - output([T_FUN_SUM(CEILING(cast(g.page_num(0x7fa498737270), DECIMAL_INT(27, 16))(0x7fa4987379e0) / cast(g.shrink_plate_num(0x7fa498737400), DECIMAL_INT(4, |
| 0))(0x7fa498737db0)(0x7fa498736ce0))(0x7fa498736820) * g.copy_num(0x7fa498737590)(0x7fa4987370c0))(0x7fa4987365c0)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 36 - output([T_FUN_SUM(CEILING(cast(g.page_num(0x7fa498737270), DECIMAL_INT(27, 16))(0x7fa4987379e0) / cast(g.shrink_plate_num(0x7fa498737400), DECIMAL_INT(4, |
| 0))(0x7fa498737db0)(0x7fa498736ce0))(0x7fa498736820) * g.copy_num(0x7fa498737590)(0x7fa4987370c0))(0x7fa4987365c0)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(CEILING(cast(g.page_num(0x7fa498737270), DECIMAL_INT(27, 16))(0x7fa4987379e0) / cast(g.shrink_plate_num(0x7fa498737400), |
| DECIMAL_INT(4, 0))(0x7fa498737db0)(0x7fa498736ce0))(0x7fa498736820) * g.copy_num(0x7fa498737590)(0x7fa4987370c0))(0x7fa4987365c0)]) |
| 37 - output([g.page_num(0x7fa498737270)], [g.shrink_plate_num(0x7fa498737400)], [g.copy_num(0x7fa498737590)]), filter(nil), rowset=256 |
| access([g.order_file_id(0x7fa2e5835bb0)], [g.page_num(0x7fa498737270)], [g.shrink_plate_num(0x7fa498737400)], [g.copy_num(0x7fa498737590)]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id(0x7fa498736140)], [g.order_file_id(0x7fa2e5835bb0)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id(0x7fa498736140) = :3(0x7fa4987362d0)(0x7fa3c645db10)]), is_fast_range = true |
| 38 - output([T_FUN_SUM(g.if_color(0x7fa49875d1a0))(0x7fa49875cd80)]), filter(nil), rowset=256 |
| 39 - output([T_FUN_SUM(g.if_color(0x7fa49875d1a0))(0x7fa49875cd80)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 40 - output([T_FUN_SUM(g.if_color(0x7fa49875d1a0))(0x7fa49875cd80)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(g.if_color(0x7fa49875d1a0))(0x7fa49875cd80)]) |
| 41 - output([g.if_color(0x7fa49875d1a0)]), filter(nil), rowset=256 |
| access([g.order_file_id(0x7fa2e5836180)], [g.if_color(0x7fa49875d1a0)]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id(0x7fa49875c900)], [g.order_file_id(0x7fa2e5836180)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id(0x7fa49875c900) = :4(0x7fa49875ca90)(0x7fa3c645dd50)]), is_fast_range = true |
| 42 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*)(0x7fa4987707a0))(0x7fa5865842a0)]), filter(nil), rowset=256 |
| 43 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*)(0x7fa4987707a0))(0x7fa5865842a0)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 44 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*)(0x7fa4987707a0))(0x7fa5865842a0)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_COUNT_SUM(T_FUN_COUNT(*)(0x7fa4987707a0))(0x7fa5865842a0)]) |
| 45 - output([T_FUN_COUNT(*)(0x7fa4987707a0)]), filter(nil), rowset=256 |
| access(nil), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([g.order_id(0x7fa498770320)], [g.order_file_id(0x7fa2e58363d0)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id(0x7fa498770320) = :5(0x7fa4987704b0)(0x7fa4987701b0)]), is_fast_range = true, |
| pushdown_aggregation([T_FUN_COUNT(*)(0x7fa4987707a0)]) |
| 46 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id(0x7fa4987855e0), VARCHAR(1048576))(0x7fa498785930), ':'(0x7fa498785060), t.err_msg(0x7fa4987847b0))(0x7fa498784d40)) |
| separator_param_expr(';$$$'(0x7fa498785440))(0x7fa498784ae0)]), filter(nil), rowset=256 |
| 47 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id(0x7fa4987855e0), VARCHAR(1048576))(0x7fa498785930), ':'(0x7fa498785060), t.err_msg(0x7fa4987847b0))(0x7fa498784d40)) |
| separator_param_expr(';$$$'(0x7fa498785440))(0x7fa498784ae0)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 48 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id(0x7fa4987855e0), VARCHAR(1048576))(0x7fa498785930), ':'(0x7fa498785060), t.err_msg(0x7fa4987847b0))(0x7fa498784d40)) |
| separator_param_expr(';$$$'(0x7fa498785440))(0x7fa498784ae0)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id(0x7fa4987855e0), VARCHAR(1048576))(0x7fa498785930), ':'(0x7fa498785060), t.err_msg(0x7fa4987847b0))(0x7fa498784d40)) |
| separator_param_expr(';$$$'(0x7fa498785440))(0x7fa498784ae0)]) |
| 49 - output([t.err_msg(0x7fa4987847b0)], [t.file_id(0x7fa4987855e0)]), filter([t.err_msg(0x7fa4987847b0) != ''(0x7fa4987844f0)(0x7fa498784640)]), rowset=256 |
| access([t.order_file_id(0x7fa2e5836620)], [t.err_msg(0x7fa4987847b0)], [t.file_id(0x7fa4987855e0)]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([t.order_id(0x7fa498783ed0)], [t.file_id(0x7fa4987855e0)], [t.order_file_id(0x7fa2e5836620)]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true, |
| |
| range_cond([t.order_id(0x7fa498783ed0) = :6(0x7fa498784060)(0x7fa3c645df90)]), is_fast_range = true |
| 50 - output([T_FUN_GROUP_CONCAT(CONCAT('退款描述'(0x7fa4987b7240), cast(t.return_id(0x7fa4987b7ad0), VARCHAR(1048576))(0x7fa4987b7e60), ':'(0x7fa4987b7540), |
| t.problem_desc(0x7fa4987b6b30))(0x7fa4987b70c0)) separator_param_expr(';$$$'(0x7fa4987b7920))(0x7fa4987b6e60)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_GROUP_CONCAT(CONCAT('退款描述'(0x7fa4987b7240), cast(t.return_id(0x7fa4987b7ad0), VARCHAR(1048576))(0x7fa4987b7e60), |
| ':'(0x7fa4987b7540), t.problem_desc(0x7fa4987b6b30))(0x7fa4987b70c0)) separator_param_expr(';$$$'(0x7fa4987b7920))(0x7fa4987b6e60)]) |
| 51 - output([t.return_id(0x7fa4987b7ad0)], [t.problem_desc(0x7fa4987b6b30)]), filter([t.problem_desc(0x7fa4987b6b30) != ''(0x7fa4987b6870)(0x7fa4987b69c0)]), rowset=256 |
| access([t.return_id(0x7fa4987b7ad0)], [t.problem_desc(0x7fa4987b6b30)]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([t.order_id(0x7fa4987b6250)], [t.return_id(0x7fa4987b7ad0)]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([t.order_id(0x7fa4987b6250) = :7(0x7fa4987b63e0)(0x7fa3c645e1d0)]), is_fast_range = true |
| Used Hint: |
| ------------------------------------- |
| /*+ |
| |
| */ |
| Qb name trace: |
| ------------------------------------- |
| stmt_id:0, stmt_type:T_EXPLAIN |
| stmt_id:1, SEL$1 > SEL$F8C4A4E7 |
| stmt_id:2, SEL$2 > SEL$A3D39CCF > SEL$2500BE6D > SEL$FB402869 > SEL$810145F0 > SEL$4934EF32 > SEL$39525290 |
| stmt_id:3, SEL$3 |
| stmt_id:4, SEL$4 |
| stmt_id:5, SEL$5 |
| stmt_id:6, SEL$6 |
| stmt_id:7, SEL$7 |
| stmt_id:8, SEL$8 |
| stmt_id:9, SEL$9 |
| stmt_id:10, SEL$10 > SEL$BDFD150D |
| stmt_id:11, SEL$11 |
| stmt_id:12, SEL$12 |
| stmt_id:13, parent:SEL$A3D39CCF > SET$2DD2A5F2 > SET$4F3B16EA |
| stmt_id:14, parent:SEL$2500BE6D > SEL$DDCA7861 |
| stmt_id:15, parent:SEL$2500BE6D > SEL$DDCA7862 |
| stmt_id:16, parent:SEL$4934EF32 > SEL$3952528F |
| Outline Data: |
| ------------------------------------- |
| /*+ |
| BEGIN_OUTLINE_DATA |
| PQ_SUBQUERY(@"SEL$39525290" ("SEL$5" "SEL$6" "SEL$7" "SEL$8" "SEL$9" "SEL$BDFD150D" "SEL$11" "SEL$12") LOCAL LOCAL) |
| LEADING(@"SEL$39525290" ((("e"@"SEL$2" ("VIEW4"@"SEL$4934EF32" "s"@"SEL$2")) "d"@"SEL$2") "g"@"SEL$2")) |
| USE_NL(@"SEL$39525290" "g"@"SEL$2") |
| USE_NL(@"SEL$39525290" "d"@"SEL$2") |
| PQ_DISTRIBUTE(@"SEL$39525290" "d"@"SEL$2" BC2HOST NONE) |
| USE_HASH(@"SEL$39525290" ("s"@"SEL$2" "VIEW4"@"SEL$4934EF32")) |
| PQ_DISTRIBUTE(@"SEL$39525290" ("s"@"SEL$2" "VIEW4"@"SEL$4934EF32") LOCAL LOCAL) |
| FULL(@"SEL$39525290" "e"@"SEL$2") |
| USE_NL(@"SEL$39525290" "s"@"SEL$2") |
| PQ_DISTRIBUTE(@"SEL$39525290" "s"@"SEL$2" BC2HOST NONE) |
| LEADING(@"SEL$3952528F" ("a"@"SEL$2" "VIEW3"@"SEL$2500BE6D")) |
| USE_NL(@"SEL$3952528F" "VIEW3"@"SEL$2500BE6D") |
| INDEX_DESC(@"SEL$3952528F" "a"@"SEL$2" "idx_2") |
| INDEX(@"SEL$3" "s"@"SEL$3" "i_order_id") |
| USE_DAS(@"SEL$3" "s"@"SEL$3") |
| INDEX(@"SEL$4" "s"@"SEL$4" "idx_order_id") |
| USE_DAS(@"SEL$4" "s"@"SEL$4") |
| INDEX(@"SEL$39525290" "s"@"SEL$2" "primary") |
| INDEX(@"SEL$39525290" "d"@"SEL$2" "primary") |
| INDEX(@"SEL$39525290" "g"@"SEL$2" "primary") |
| INDEX(@"SEL$5" "cust"@"SEL$5" "primary") |
| INDEX(@"SEL$6" "w"@"SEL$6" "primary") |
| INDEX(@"SEL$7" "g"@"SEL$7" "idx_1") |
| INDEX(@"SEL$8" "g"@"SEL$8" "idx_1") |
| INDEX(@"SEL$9" "g"@"SEL$9" "idx_1") |
| INDEX(@"SEL$BDFD150D" "g"@"SEL$10" "idx_1") |
| INDEX(@"SEL$11" "t"@"SEL$11" "i_order_id") |
| INDEX(@"SEL$12" "t"@"SEL$12" "idx_order_id") |
| SIMPLIFY_EXPR(@"SEL$2") |
| SIMPLIFY_EXPR(@"SEL$1") |
| SIMPLIFY_GROUP_BY(@"SEL$10") |
| COALESCE_SQ(@"SEL$A3D39CCF" ("SEL$3", "SEL$4")) |
| UNNEST(@"SET$2DD2A5F2") |
| MERGE(@"SET$2DD2A5F2" < "SEL$DDCA7861") |
| MERGE(@"SEL$FB402869" < "SEL$F8C4A4E7") |
| ELIMINATE_JOIN(@"SEL$810145F0" "c"@"SEL$2") |
| PUSH_LIMIT(@"SEL$4934EF32") |
| OPTIMIZER_FEATURES_ENABLE('4.3.5.3') |
| END_OUTLINE_DATA |
| */ |
| Optimization Info: |
| ------------------------------------- |
| e: |
| table_rows:58 |
| physical_range_rows:59 |
| logical_range_rows:59 |
| index_back_rows:0 |
| output_rows:59 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[t_merchant] |
| stats info:[version=2025-09-01 22:01:01.092774, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| a: |
| table_rows:6768587 |
| physical_range_rows:58876 |
| logical_range_rows:58876 |
| index_back_rows:58876 |
| output_rows:58037 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time, t_order] |
| pruned_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time] |
| stats info:[version=2025-09-22 22:01:07.523453, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:591109 |
| physical_range_rows:2 |
| logical_range_rows:2 |
| index_back_rows:2 |
| output_rows:1 |
| table_dop:1 |
| dop_method:DAS DOP |
| avaiable_index_name:[i_order_id, t_order_file_msg] |
| unstable_index_name:[t_order_file_msg] |
| stats info:[version=2025-09-18 22:02:20.024632, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:1020661 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:1 |
| output_rows:0 |
| table_dop:1 |
| dop_method:DAS DOP |
| avaiable_index_name:[idx_2, idx_order_id, idx_return_audit_time, t_order_return] |
| pruned_index_name:[idx_2, idx_return_audit_time] |
| unstable_index_name:[t_order_return] |
| stats info:[version=2025-08-14 18:38:38.085277, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:333 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id, t_set] |
| pruned_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id] |
| stats info:[version=2025-09-14 22:01:33.278220, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| d: |
| table_rows:2205 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_set_id, t_station] |
| pruned_index_name:[idx_set_id] |
| stats info:[version=2025-09-23 15:14:01.977535, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| g: |
| table_rows:10516137 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[udx_1, idx_2, idx_3, idx_4, idx_6, i_state, udx_5, t_pay] |
| pruned_index_name:[udx_1, idx_2, idx_3, idx_4, idx_6, i_state, udx_5] |
| stats info:[version=2025-09-21 22:02:45.875288, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| cust: |
| table_rows:3811082 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_2, idx_set_id, udx_moblie_henant, t_cust] |
| pruned_index_name:[idx_2, idx_set_id, udx_moblie_henant] |
| stats info:[version=2025-09-21 22:00:50.079900, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| w: |
| table_rows:211 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[t_total_set] |
| stats info:[version=2025-08-14 18:46:44.758155, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:0 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| t: |
| table_rows:591109 |
| physical_range_rows:2 |
| logical_range_rows:2 |
| index_back_rows:2 |
| output_rows:2 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[i_order_id, t_order_file_msg] |
| unstable_index_name:[t_order_file_msg] |
| stats info:[version=2025-09-18 22:02:20.024632, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| t: |
| table_rows:1020661 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:1 |
| output_rows:0 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_2, idx_order_id, idx_return_audit_time, t_order_return] |
| pruned_index_name:[idx_2, idx_return_audit_time] |
| unstable_index_name:[t_order_return] |
| stats info:[version=2025-08-14 18:38:38.085277, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| Plan Type: |
| DISTRIBUTED |
| Parameters: |
| :0 => 0 |
| :1 => 1 |
| :2 => 2 |
| :3 => 3 |
| :4 => 1 |
| :5 => '' |
| :6 => '' |
| :7 => ':' |
| :8 => ';$$$' |
| :9 => '' |
| :10 => '退款描述' |
| :11 => ':' |
| :12 => ';$$$' |
| :13 => '' |
| :14 => 1 |
| :15 => 1 |
| :16 => '2025-09-23 00:00:00' |
| :17 => '2025-09-23 23:59:59' |
| :18 => 1 |
| :19 => '' |
| :20 => '%' |
| :21 => '重复' |
| :22 => '%' |
| :23 => 1 |
| :24 => '' |
| :25 => '%' |
| :26 => '重复' |
| :27 => '%' |
| :28 => 1 |
| :29 => 1 |
| :30 => 0 |
| :31 => 30 |
| Note: |
| Degree of Parallelisim is 1 because of table property |
| Const Parameter Constraints: |
| :4 = 1 |
| Expr Constraints: |
| 1 = 1 result is TRUE |
| 1 = 1 result is TRUE |
+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+select * from oceanbase.gv$ob_plan_cache_plan_explain where tenant_id = 1002 and plan_id = 627102 and svr_ip = '172.17.172.84' and svr_port = 2882
+-----------+---------------+----------+---------+------------+--------------+------------------------------------------+-----------------+------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | TENANT_ID | SVR_IP | SVR_PORT | PLAN_ID | PLAN_DEPTH | PLAN_LINE_ID | OPERATOR | NAME | ROWS | COST | PROPERTY | +-----------+---------------+----------+---------+------------+--------------+------------------------------------------+-----------------+------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | 1002 | 172.17.172.84 | 2882 | 627102 | 0 | 0 | PHY_VEC_SORT | NULL | 31 | 102919 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 1 | 1 | PHY_SUBPLAN_FILTER | NULL | 31 | 102878 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 2 | PHY_VEC_PX_FIFO_COORD | NULL | 31 | 20941 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 3 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 31 | 20753 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 4 | PHY_VEC_NESTED_LOOP_JOIN | NULL | 31 | 20329 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 5 | PHY_VEC_NESTED_LOOP_JOIN | NULL | 31 | 19832 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 6 | 6 | PHY_VEC_PX_FIFO_RECEIVE | NULL | 31 | 19334 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 7 | 7 | PHY_VEC_PX_DIST_TRANSMIT | NULL | 31 | 19193 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 8 | 8 | PHY_VEC_HASH_JOIN | NULL | 31 | 18874 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 9 | 9 | PHY_VEC_TABLE_SCAN | e | 59 | 5 | table_rows:58, physical_range_rows:59, logical_range_rows:59, index_back_rows:0, output_rows:59, avaiable_index_name[t_merchant], estimation info[table_id:504142, (table_type:10, version:-1--1--1, logical_rc:59, physical_rc:59)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 9 | 10 | PHY_VEC_PX_FIFO_RECEIVE | NULL | 31 | 18848 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 10 | 11 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 31 | 18721 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 11 | 12 | PHY_VEC_NESTED_LOOP_JOIN | NULL | 31 | 18435 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 12 | 13 | PHY_VEC_PX_FIFO_RECEIVE | NULL | 30 | 17952 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 13 | 14 | PHY_VEC_PX_DIST_TRANSMIT | NULL | 30 | 17844 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 14 | 15 | PHY_VEC_SUBPLAN_SCAN | NULL | 30 | 17601 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 15 | 16 | PHY_VEC_LIMIT | NULL | 30 | 17601 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 16 | 17 | PHY_VEC_NESTED_LOOP_JOIN | NULL | 30 | 17601 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 17 | 18 | PHY_TABLE_SCAN | a(idx_2) | 30 | 172 | table_rows:6768587, physical_range_rows:58395, logical_range_rows:58395, index_back_rows:58395, output_rows:57563, avaiable_index_name[idx_1,idx_2,idx_3,idx_6,idx_7,idx_8,idx_dev_id,idx_exec_print_time,idx_group,idx_merchant_id,idx_set_id,idx_10,idx_9,i_station_create_time,t_order], pruned_index_name[idx_1,idx_3,idx_6,idx_7,idx_8,idx_dev_id,idx_exec_print_time,idx_group,idx_merchant_id,idx_set_id,idx_10,idx_9,i_station_create_time], estimation info[table_id:504519, (table_type:10, version:-1--1--1, logical_rc:753, physical_rc:753), (table_type:11, version:-1--1--1, logical_rc:56061, physical_rc:56061), (table_type:0, version:-1--1--1, logical_rc:1581, physical_rc:1581)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 17 | 19 | PHY_VEC_SUBPLAN_SCAN | NULL | 1 | 580 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 18 | 20 | PHY_VEC_MERGE_UNION | NULL | 1 | 580 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 19 | 21 | PHY_TABLE_SCAN | s(i_order_id) | 1 | 291 | table_rows:591109, physical_range_rows:2, logical_range_rows:2, index_back_rows:2, output_rows:1, avaiable_index_name[i_order_id,t_order_file_msg], unstable_index_name[t_order_file_msg], estimation info[table_id:504636, (table_type:10, version:-1--1--1, logical_rc:620674, physical_rc:620674), (table_type:11, version:-1--1--1, logical_rc:3238, physical_rc:3731), (table_type:0, version:-1--1--1, logical_rc:119, physical_rc:122)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 19 | 22 | PHY_TABLE_SCAN | s(idx_order_id) | 1 | 288 | table_rows:1020661, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:0, avaiable_index_name[idx_2,idx_order_id,idx_return_audit_time,t_order_return], pruned_index_name[idx_2,idx_return_audit_time], unstable_index_name[t_order_return], estimation info[table_id:504485, (table_type:10, version:-1--1--1, logical_rc:1041316, physical_rc:1041316), (table_type:11, version:-1--1--1, logical_rc:443, physical_rc:443), (table_type:0, version:-1--1--1, logical_rc:11, physical_rc:11)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 12 | 23 | PHY_TABLE_SCAN | s | 1 | 15 | table_rows:333, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[idx_1,idx_real_merchant_id,idx_total_set_id,t_set], pruned_index_name[idx_1,idx_real_merchant_id,idx_total_set_id] | | 1002 | 172.17.172.84 | 2882 | 627102 | 6 | 24 | PHY_TABLE_SCAN | d | 1 | 15 | table_rows:2205, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[idx_set_id,t_station], pruned_index_name[idx_set_id] | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 25 | PHY_TABLE_SCAN | g | 1 | 15 | table_rows:10516137, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[udx_1,idx_2,idx_3,idx_4,idx_6,i_state,udx_5,t_pay], pruned_index_name[udx_1,idx_2,idx_3,idx_4,idx_6,i_state,udx_5] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 26 | PHY_VEC_TABLE_SCAN | cust | 1 | 17 | table_rows:3811082, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[idx_2,idx_set_id,udx_moblie_henant,t_cust], pruned_index_name[idx_2,idx_set_id,udx_moblie_henant], estimation info[table_id:504009, (table_type:10, version:-1--1--1, logical_rc:3826162, physical_rc:3826162), (table_type:11, version:-1--1--1, logical_rc:5107, physical_rc:52743), (table_type:12, version:-1--1--1, logical_rc:787, physical_rc:25419), (table_type:0, version:-1--1--1, logical_rc:260, physical_rc:1629)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 27 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 19 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 28 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 19 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 29 | PHY_VEC_TABLE_SCAN | w | 1 | 17 | table_rows:211, physical_range_rows:1, logical_range_rows:1, index_back_rows:0, output_rows:1, avaiable_index_name[t_total_set], estimation info[table_id:504224, (table_type:10, version:-1--1--1, logical_rc:221, physical_rc:221)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 30 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 45 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 31 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 45 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 32 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 44 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 33 | PHY_TABLE_SCAN | g(idx_1) | 5 | 44 | table_rows:17230673, physical_range_rows:4, logical_range_rows:4, index_back_rows:4, output_rows:4, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,t_order_file], pruned_index_name[idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed], unstable_index_name[t_order_file], estimation info[table_id:504553, (table_type:10, version:-1--1--1, logical_rc:14972430, physical_rc:14972430), (table_type:11, version:-1--1--1, logical_rc:85131, physical_rc:104300), (table_type:0, version:-1--1--1, logical_rc:2452, physical_rc:3043)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 34 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 46 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 35 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 46 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 36 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 45 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 37 | PHY_TABLE_SCAN | g(idx_1) | 5 | 45 | table_rows:17230673, physical_range_rows:4, logical_range_rows:4, index_back_rows:4, output_rows:4, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,t_order_file], pruned_index_name[idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed], unstable_index_name[t_order_file], estimation info[table_id:504553, (table_type:10, version:-1--1--1, logical_rc:14972430, physical_rc:14972430), (table_type:11, version:-1--1--1, logical_rc:85131, physical_rc:104300), (table_type:0, version:-1--1--1, logical_rc:2452, physical_rc:3043)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 38 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 45 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 39 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 45 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 40 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 44 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 41 | PHY_TABLE_SCAN | g(idx_1) | 5 | 44 | table_rows:17230673, physical_range_rows:4, logical_range_rows:4, index_back_rows:4, output_rows:4, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,t_order_file], pruned_index_name[idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed], unstable_index_name[t_order_file], estimation info[table_id:504553, (table_type:10, version:-1--1--1, logical_rc:14972430, physical_rc:14972430), (table_type:11, version:-1--1--1, logical_rc:85131, physical_rc:104300), (table_type:0, version:-1--1--1, logical_rc:2452, physical_rc:3043)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 42 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 18 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 43 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 18 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 44 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 18 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 45 | PHY_VEC_TABLE_SCAN | g(idx_1) | 5 | 17 | table_rows:17230673, physical_range_rows:4, logical_range_rows:4, index_back_rows:0, output_rows:4, avaiable_index_name[idx_1,idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,t_order_file], pruned_index_name[idx_2,idx_3,idx_4,idx_print_state,idx_update_time,idx_update_time_speed,t_order_file], estimation info[table_id:504553, (table_type:10, version:-1--1--1, logical_rc:14972430, physical_rc:14972430), (table_type:11, version:-1--1--1, logical_rc:85131, physical_rc:104300), (table_type:0, version:-1--1--1, logical_rc:2452, physical_rc:3043)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 46 | PHY_VEC_PX_FIFO_COORD | NULL | 1 | 39 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 47 | PHY_VEC_PX_REDUCE_TRANSMIT | NULL | 1 | 38 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 4 | 48 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 37 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 5 | 49 | PHY_TABLE_SCAN | t(i_order_id) | 3 | 37 | table_rows:591109, physical_range_rows:2, logical_range_rows:2, index_back_rows:2, output_rows:2, avaiable_index_name[i_order_id,t_order_file_msg], unstable_index_name[t_order_file_msg], estimation info[table_id:504636, (table_type:10, version:-1--1--1, logical_rc:620674, physical_rc:620674), (table_type:11, version:-1--1--1, logical_rc:3238, physical_rc:3731), (table_type:0, version:-1--1--1, logical_rc:119, physical_rc:122)] | | 1002 | 172.17.172.84 | 2882 | 627102 | 2 | 50 | PHY_VEC_SCALAR_AGGREGATE | NULL | 1 | 30 | NULL | | 1002 | 172.17.172.84 | 2882 | 627102 | 3 | 51 | PHY_TABLE_SCAN | t(idx_order_id) | 1 | 30 | table_rows:1020661, physical_range_rows:1, logical_range_rows:1, index_back_rows:1, output_rows:0, avaiable_index_name[idx_2,idx_order_id,idx_return_audit_time,t_order_return], pruned_index_name[idx_2,idx_return_audit_time], unstable_index_name[t_order_return], estimation info[table_id:504485, (table_type:10, version:-1--1--1, logical_rc:1041316, physical_rc:1041316), (table_type:11, version:-1--1--1, logical_rc:443, physical_rc:443), (table_type:0, version:-1--1--1, logical_rc:11, physical_rc:11)] | +-----------+---------------+----------+---------+------------+--------------+------------------------------------------+-----------------+------+--------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
obclient> SELECT DBMS_XPLAN.DISPLAY_CURSOR(627102, 'all', '172.17.172.84', 2882, 1002) FROM DUAL
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| DBMS_XPLAN.DISPLAY_CURSOR(627102, 'all', '172.17.172.84', 2882, 1002) |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| =============================================================================================================================================================== |
| |ID|OPERATOR |NAME |EST.ROWS|EST.TIME(us)|REAL.ROWS|REAL.TIME(us)|IO TIME(us)|CPU TIME(us)| |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| |0 |SORT | |31 |102920 |0 |49849543 |0 |41 | |
| |1 |└─SUBPLAN FILTER | |31 |102879 |0 |49849543 |0 |28 | |
| |2 | ├─PX COORDINATOR | |31 |20942 |0 |49849543 |49819200 |49847333 | |
| |3 | │ └─EXCHANGE OUT DISTR |:EX10003 |31 |20754 |0 |0 |0 |0 | |
| |4 | │ └─NESTED-LOOP OUTER JOIN | |31 |20330 |0 |0 |0 |0 | |
| |5 | │ ├─NESTED-LOOP OUTER JOIN | |31 |19833 |0 |0 |0 |0 | |
| |6 | │ │ ├─EXCHANGE IN DISTR | |31 |19335 |0 |0 |0 |0 | |
| |7 | │ │ │ └─EXCHANGE OUT DISTR (BC2HOST) |:EX10002 |31 |19194 |0 |0 |0 |0 | |
| |8 | │ │ │ └─HASH RIGHT OUTER JOIN | |31 |18875 |0 |0 |0 |0 | |
| |9 | │ │ │ ├─TABLE FULL SCAN |e |59 |6 |0 |0 |0 |0 | |
| |10| │ │ │ └─EXCHANGE IN DISTR | |31 |18849 |0 |0 |0 |0 | |
| |11| │ │ │ └─EXCHANGE OUT DISTR |:EX10001 |31 |18722 |0 |0 |0 |0 | |
| |12| │ │ │ └─NESTED-LOOP OUTER JOIN | |31 |18436 |0 |0 |0 |0 | |
| |13| │ │ │ ├─EXCHANGE IN DISTR | |30 |17953 |0 |0 |0 |0 | |
| |14| │ │ │ │ └─EXCHANGE OUT DISTR (BC2HOST) |:EX10000 |30 |17845 |9 |49849457 |0 |159 | |
| |15| │ │ │ │ └─SUBPLAN SCAN |VIEW4 |30 |17602 |9 |49849457 |0 |54 | |
| |16| │ │ │ │ └─LIMIT | |30 |17602 |9 |49849457 |0 |45 | |
| |17| │ │ │ │ └─NESTED-LOOP SEMI JOIN | |30 |17602 |9 |49849457 |0 |453084 | |
| |18| │ │ │ │ ├─TABLE RANGE SCAN |a(idx_2,Reverse)|30 |173 |31400 |49849457 |0 |279425 | |
| |19| │ │ │ │ └─SUBPLAN SCAN |VIEW3 |1 |581 |10 |49846261 |0 |15355 | |
| |20| │ │ │ │ └─UNION ALL | |1 |581 |10 |49846261 |0 |49496 | |
| |21| │ │ │ │ ├─DISTRIBUTED TABLE RANGE SCAN|s(i_order_id) |1 |292 |10 |49847334 |0 |22225006 | |
| |22| │ │ │ │ └─DISTRIBUTED TABLE RANGE SCAN|s(idx_order_id) |1 |289 |0 |49849457 |0 |26822614 | |
| |23| │ │ │ └─TABLE GET |s |1 |16 |0 |0 |0 |0 | |
| |24| │ │ └─TABLE GET |d |1 |16 |0 |0 |0 |0 | |
| |25| │ └─TABLE GET |g |1 |16 |0 |0 |0 |0 | |
| |26| ├─TABLE GET |cust |1 |18 |0 |49849543 |0 |0 | |
| |27| ├─PX COORDINATOR | |1 |20 |0 |49849543 |0 |0 | |
| |28| │ └─EXCHANGE OUT DISTR |:EX20000 |1 |20 |0 |0 |0 |0 | |
| |29| │ └─TABLE GET |w |1 |18 |0 |0 |0 |0 | |
| |30| ├─PX COORDINATOR | |1 |46 |0 |49849543 |0 |0 | |
| |31| │ └─EXCHANGE OUT DISTR |:EX30000 |1 |46 |0 |0 |0 |0 | |
| |32| │ └─SCALAR GROUP BY | |1 |45 |0 |0 |0 |0 | |
| |33| │ └─TABLE RANGE SCAN |g(idx_1) |5 |45 |0 |0 |0 |0 | |
| |34| ├─PX COORDINATOR | |1 |47 |0 |49849543 |0 |0 | |
| |35| │ └─EXCHANGE OUT DISTR |:EX40000 |1 |47 |0 |0 |0 |0 | |
| |36| │ └─SCALAR GROUP BY | |1 |46 |0 |0 |0 |0 | |
| |37| │ └─TABLE RANGE SCAN |g(idx_1) |5 |46 |0 |0 |0 |0 | |
| |38| ├─PX COORDINATOR | |1 |46 |0 |49849543 |0 |0 | |
| |39| │ └─EXCHANGE OUT DISTR |:EX50000 |1 |46 |0 |0 |0 |0 | |
| |40| │ └─SCALAR GROUP BY | |1 |45 |0 |0 |0 |0 | |
| |41| │ └─TABLE RANGE SCAN |g(idx_1) |5 |45 |0 |0 |0 |0 | |
| |42| ├─PX COORDINATOR | |1 |19 |0 |49849543 |0 |0 | |
| |43| │ └─EXCHANGE OUT DISTR |:EX60000 |1 |19 |0 |0 |0 |0 | |
| |44| │ └─SCALAR GROUP BY | |1 |19 |0 |0 |0 |0 | |
| |45| │ └─TABLE RANGE SCAN |g(idx_1) |5 |18 |0 |0 |0 |0 | |
| |46| ├─PX COORDINATOR | |1 |40 |0 |49849543 |0 |0 | |
| |47| │ └─EXCHANGE OUT DISTR |:EX70000 |1 |39 |0 |0 |0 |0 | |
| |48| │ └─SCALAR GROUP BY | |1 |38 |0 |0 |0 |0 | |
| |49| │ └─TABLE RANGE SCAN |t(i_order_id) |3 |38 |0 |0 |0 |0 | |
| |50| └─SCALAR GROUP BY | |1 |31 |0 |49849543 |0 |0 | |
| |51| └─TABLE RANGE SCAN |t(idx_order_id) |1 |31 |0 |49849543 |0 |0 | |
| =============================================================================================================================================================== |
| |
| Outputs & filters: |
| ------------------------------------- |
| 0 - output([VIEW4.a.order_name], [VIEW4.a.order_id], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.create_time], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [g.pay_method], [g.amount], [g.bean_amt], |
| [g.channel_amt], [subquery(1)], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id], [e.merchant_name], [e.merchant_short_name], [g.return_amt], |
| [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [subquery(2)], [subquery(3)], [subquery(4)], [subquery(5)], [subquery(6)], |
| [''], [''], [subquery(7)], [subquery(8)], [CASE WHEN subquery(5) = cast(0, DECIMAL_INT(33, 0)) THEN 1 WHEN cast(subquery(6), DECIMAL_INT(33, 0)) = subquery(5) |
| THEN 2 ELSE 3 END]), filter(nil), rowset=256 |
| sort_keys([VIEW4.a.create_time, DESC], [VIEW4.a.order_id, DESC]) |
| 1 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [g.pay_method], [g.amount], [g.bean_amt], |
| [g.channel_amt], [subquery(1)], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id], [e.merchant_name], [e.merchant_short_name], [g.return_amt], |
| [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [subquery(2)], [subquery(3)], [subquery(4)], [subquery(5)], [subquery(6)], |
| [subquery(7)], [subquery(8)]), filter(nil), rowset=256 |
| exec_params_([VIEW4.a.cust_id(:0)], [s.total_set_id(:1)], [VIEW4.a.order_id(:2)], [VIEW4.a.order_id(:3)], [VIEW4.a.order_id(:4)], [VIEW4.a.order_id(:5)], |
| [VIEW4.a.order_id(:6)], [VIEW4.a.order_id(:7)]), onetime_exprs_(nil), init_plan_idxs_(nil), use_batch=false |
| 2 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [g.pay_method], [g.amount], [g.bean_amt], |
| [g.channel_amt], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id], [e.merchant_name], [e.merchant_short_name], [g.return_amt], [s.set_name], |
| [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id]), filter(nil), rowset=256 |
| 3 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [g.pay_method], [g.amount], [g.bean_amt], |
| [g.channel_amt], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id], [e.merchant_name], [e.merchant_short_name], [g.return_amt], [s.set_name], |
| [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 4 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [g.pay_method], [g.amount], [g.bean_amt], |
| [g.channel_amt], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id], [e.merchant_name], [e.merchant_short_name], [g.return_amt], [s.set_name], |
| [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.pay_id(:11)]), use_batch=true |
| 5 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [d.station_id], [d.station_name], [d.merchant_id], |
| [d.set_id], [e.merchant_name], [e.merchant_short_name], [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], |
| [VIEW4.a.pay_id]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.station_id(:9)]), use_batch=true |
| 6 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [e.merchant_name], [e.merchant_short_name], |
| [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id]), filter(nil), rowset=256 |
| 7 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [e.merchant_name], [e.merchant_short_name], |
| [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 8 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [e.merchant_name], [e.merchant_short_name], |
| [s.set_name], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id]), filter(nil), rowset=256 |
| equal_conds([s.merchant_id = e.merchant_id]), other_conds(nil) |
| 9 - output([e.merchant_id], [e.merchant_name], [e.merchant_short_name]), filter(nil), rowset=256 |
| access([e.merchant_id], [e.merchant_name], [e.merchant_short_name]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([e.merchant_id]), range(MIN ; MAX)always true |
| 10 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [s.set_name], [VIEW4.a.checked_ops_name], |
| [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id], [s.merchant_id]), filter(nil), rowset=256 |
| 11 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [s.set_name], [VIEW4.a.checked_ops_name], |
| [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id], [s.merchant_id]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 12 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [s.set_name], [VIEW4.a.checked_ops_name], |
| [VIEW4.a.checked_time], [VIEW4.a.print_mode], [s.total_set_id], [VIEW4.a.pay_id], [VIEW4.a.station_id], [s.merchant_id]), filter(nil), rowset=256 |
| conds(nil), nl_params_([VIEW4.a.set_id(:10)]), use_batch=true |
| 13 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], |
| [VIEW4.a.print_mode], [VIEW4.a.pay_id], [VIEW4.a.station_id], [VIEW4.a.set_id]), filter(nil), rowset=256 |
| 14 - output([VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], |
| [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], [VIEW4.a.station_ver], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], |
| [VIEW4.a.print_mode], [VIEW4.a.pay_id], [VIEW4.a.station_id], [VIEW4.a.set_id]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 15 - output([VIEW4.a.pay_id], [VIEW4.a.set_id], [VIEW4.a.station_id], [VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], |
| [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], |
| [VIEW4.a.station_ver], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode]), filter(nil), rowset=256 |
| access([VIEW4.a.pay_id], [VIEW4.a.set_id], [VIEW4.a.station_id], [VIEW4.a.create_time], [VIEW4.a.order_id], [VIEW4.a.order_name], [VIEW4.a.cust_id], |
| [VIEW4.a.use_type], [VIEW4.a.state], [VIEW4.a.state_date], [VIEW4.a.dev_id], [VIEW4.a.print_class], [VIEW4.a.exec_print_flag], [VIEW4.a.checked_flag], |
| [VIEW4.a.station_ver], [VIEW4.a.checked_ops_name], [VIEW4.a.checked_time], [VIEW4.a.print_mode]) |
| 16 - output([a.pay_id], [a.set_id], [a.station_id], [a.create_time], [a.order_id], [a.order_name], [a.cust_id], [a.use_type], [a.state], [a.state_date], |
| [a.dev_id], [a.print_class], [a.exec_print_flag], [a.checked_flag], [a.station_ver], [a.checked_ops_name], [a.checked_time], [a.print_mode]), filter(nil), rowset=256 |
| limit(30), offset(0) |
| 17 - output([a.pay_id], [a.set_id], [a.station_id], [a.create_time], [a.order_id], [a.order_name], [a.cust_id], [a.use_type], [a.state], [a.state_date], |
| [a.dev_id], [a.print_class], [a.exec_print_flag], [a.checked_flag], [a.station_ver], [a.checked_ops_name], [a.checked_time], [a.print_mode]), filter(nil), rowset=256 |
| conds(nil), nl_params_([a.order_id(:8)]), use_batch=false |
| 18 - output([a.order_id], [a.station_id], [a.dev_id], [a.set_id], [a.pay_id], [a.create_time], [a.order_name], [a.cust_id], [a.use_type], [a.state], [a.state_date], |
| [a.print_class], [a.exec_print_flag], [a.checked_flag], [a.station_ver], [a.checked_ops_name], [a.checked_time], [a.print_mode]), filter([a.station_id |
| IS NOT NULL]), rowset=256 |
| access([a.order_id], [a.station_id], [a.dev_id], [a.set_id], [a.pay_id], [a.create_time], [a.order_name], [a.cust_id], [a.use_type], [a.state], [a.state_date], |
| [a.print_class], [a.exec_print_flag], [a.checked_flag], [a.station_ver], [a.checked_ops_name], [a.checked_time], [a.print_mode]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([a.create_time], [a.order_id]), range(2025-09-23 00:00:00.000000,MIN ; 2025-09-23 23:59:59.000000,MAX), |
| range_cond([a.create_time >= cast('2025-09-23 00:00:00', MYSQL_DATETIME(-1, -1))], [a.create_time <= cast('2025-09-23 23:59:59', MYSQL_DATETIME(-1, |
| -1))]) |
| 19 - output(nil), filter(nil), rowset=256 |
| access(nil) |
| 20 - output([UNION([1])]), filter(nil), rowset=256 |
| 21 - output([s.order_id]), filter([(T_OP_LIKE, s.err_msg, CONCAT('%', '重复', '%'), '\\')], [s.err_msg != '']), rowset=256 |
| access([s.order_file_id], [s.order_id], [s.err_msg]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false,false], |
| range_key([s.order_id], [s.file_id], [s.order_file_id]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true, |
| range_cond([s.order_id = :8]) |
| 22 - output([s.order_id]), filter([s.problem_desc != ''], [(T_OP_LIKE, s.problem_desc, CONCAT('%', '重复', '%'), '\\')]), rowset=256 |
| access([s.return_id], [s.order_id], [s.problem_desc]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false,false], |
| range_key([s.order_id], [s.return_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([s.order_id = :8]) |
| 23 - output([s.merchant_id], [s.set_name], [s.total_set_id]), filter(nil), rowset=256 |
| access([GROUP_ID], [s.merchant_id], [s.set_name], [s.total_set_id]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([s.set_id]), range(MIN ; MAX), |
| range_cond([:10 = s.set_id]) |
| 24 - output([d.station_id], [d.station_name], [d.merchant_id], [d.set_id]), filter(nil), rowset=256 |
| access([GROUP_ID], [d.station_id], [d.station_name], [d.merchant_id], [d.set_id]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([d.station_id]), range(MIN ; MAX), |
| range_cond([:9 = d.station_id]) |
| 25 - output([g.pay_method], [g.amount], [g.bean_amt], [g.channel_amt], [g.return_amt]), filter(nil), rowset=256 |
| access([GROUP_ID], [g.pay_method], [g.amount], [g.bean_amt], [g.channel_amt], [g.return_amt]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([g.pay_id]), range(MIN ; MAX), |
| range_cond([:11 = g.pay_id]) |
| 26 - output([cust.mobile]), filter(nil), rowset=256 |
| access([cust.mobile]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([cust.cust_id]), range(MIN ; MAX)always true, |
| range_cond([cust.cust_id = :0]) |
| 27 - output([w.total_set_name]), filter(nil), rowset=256 |
| 28 - output([w.total_set_name]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 29 - output([w.total_set_name]), filter(nil), rowset=256 |
| access([w.total_set_name]), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([w.total_set_id]), range(MIN ; MAX)always true, |
| range_cond([w.total_set_id = :1]) |
| 30 - output([T_FUN_SUM(g.printed_page)]), filter(nil), rowset=256 |
| 31 - output([T_FUN_SUM(g.printed_page)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 32 - output([T_FUN_SUM(g.printed_page)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(g.printed_page)]) |
| 33 - output([g.printed_page]), filter(nil), rowset=256 |
| access([g.order_file_id], [g.printed_page]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id], [g.order_file_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id = :2]) |
| 34 - output([T_FUN_SUM(CEILING(cast(g.page_num, DECIMAL_INT(27, 16)) / cast(g.shrink_plate_num, DECIMAL_INT(4, 0))) * g.copy_num)]), filter(nil), rowset=256 |
| 35 - output([T_FUN_SUM(CEILING(cast(g.page_num, DECIMAL_INT(27, 16)) / cast(g.shrink_plate_num, DECIMAL_INT(4, 0))) * g.copy_num)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 36 - output([T_FUN_SUM(CEILING(cast(g.page_num, DECIMAL_INT(27, 16)) / cast(g.shrink_plate_num, DECIMAL_INT(4, 0))) * g.copy_num)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(CEILING(cast(g.page_num, DECIMAL_INT(27, 16)) / cast(g.shrink_plate_num, DECIMAL_INT(4, 0))) * g.copy_num)]) |
| 37 - output([g.page_num], [g.shrink_plate_num], [g.copy_num]), filter(nil), rowset=256 |
| access([g.order_file_id], [g.page_num], [g.shrink_plate_num], [g.copy_num]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id], [g.order_file_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id = :3]) |
| 38 - output([T_FUN_SUM(g.if_color)]), filter(nil), rowset=256 |
| 39 - output([T_FUN_SUM(g.if_color)]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 40 - output([T_FUN_SUM(g.if_color)]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_SUM(g.if_color)]) |
| 41 - output([g.if_color]), filter(nil), rowset=256 |
| access([g.order_file_id], [g.if_color]), partitions(p0) |
| is_index_back=true, is_global_index=false, |
| range_key([g.order_id], [g.order_file_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id = :4]) |
| 42 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*))]), filter(nil), rowset=256 |
| 43 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*))]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 44 - output([T_FUN_COUNT_SUM(T_FUN_COUNT(*))]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_COUNT_SUM(T_FUN_COUNT(*))]) |
| 45 - output([T_FUN_COUNT(*)]), filter(nil), rowset=256 |
| access(nil), partitions(p0) |
| is_index_back=false, is_global_index=false, |
| range_key([g.order_id], [g.order_file_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([g.order_id = :5]), |
| pushdown_aggregation([T_FUN_COUNT(*)]) |
| 46 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id, VARCHAR(1048576)), ':', t.err_msg)) separator_param_expr(';$$$')]), filter(nil), rowset=256 |
| 47 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id, VARCHAR(1048576)), ':', t.err_msg)) separator_param_expr(';$$$')]), filter(nil), rowset=256 |
| is_single, dop=1 |
| 48 - output([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id, VARCHAR(1048576)), ':', t.err_msg)) separator_param_expr(';$$$')]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_GROUP_CONCAT(CONCAT(cast(t.file_id, VARCHAR(1048576)), ':', t.err_msg)) separator_param_expr(';$$$')]) |
| 49 - output([t.err_msg], [t.file_id]), filter([t.err_msg != '']), rowset=256 |
| access([t.order_file_id], [t.err_msg], [t.file_id]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([t.order_id], [t.file_id], [t.order_file_id]), range(MIN,MIN,MIN ; MAX,MAX,MAX)always true, |
| range_cond([t.order_id = :6]) |
| 50 - output([T_FUN_GROUP_CONCAT(CONCAT('退款描述', cast(t.return_id, VARCHAR(1048576)), ':', t.problem_desc)) separator_param_expr(';$$$')]), filter(nil), rowset=256 |
| group(nil), agg_func([T_FUN_GROUP_CONCAT(CONCAT('退款描述', cast(t.return_id, VARCHAR(1048576)), ':', t.problem_desc)) separator_param_expr(';$$$')]) |
| 51 - output([t.return_id], [t.problem_desc]), filter([t.problem_desc != '']), rowset=256 |
| access([t.return_id], [t.problem_desc]), partitions(p0) |
| is_index_back=true, is_global_index=false, filter_before_indexback[false], |
| range_key([t.order_id], [t.return_id]), range(MIN,MIN ; MAX,MAX)always true, |
| range_cond([t.order_id = :7]) |
| |
| Used Hint: |
| ------------------------------------- |
| /*+ |
| |
| */ |
| Qb name trace: |
| ------------------------------------- |
| stmt_id:0, SEL$1 > SEL$F8C4A4E7 |
| stmt_id:1, SEL$2 > SEL$A3D39CCF > SEL$2500BE6D > SEL$FB402869 > SEL$810145F0 > SEL$4934EF32 > SEL$39525290 |
| stmt_id:2, SEL$3 |
| stmt_id:3, SEL$4 |
| stmt_id:4, SEL$5 |
| stmt_id:5, SEL$6 |
| stmt_id:6, SEL$7 |
| stmt_id:7, SEL$8 |
| stmt_id:8, SEL$9 |
| stmt_id:9, SEL$10 > SEL$BDFD150D |
| stmt_id:10, SEL$11 |
| stmt_id:11, SEL$12 |
| stmt_id:12, parent:SEL$A3D39CCF > SET$2DD2A5F2 > SET$4F3B16EA |
| stmt_id:13, parent:SEL$2500BE6D > SEL$DDCA7861 |
| stmt_id:14, parent:SEL$2500BE6D > SEL$DDCA7862 |
| stmt_id:15, parent:SEL$4934EF32 > SEL$3952528F |
| |
| Outline Data: |
| ------------------------------------- |
| /*+ |
| BEGIN_OUTLINE_DATA |
| PQ_SUBQUERY(@"SEL$39525290" ("SEL$5" "SEL$6" "SEL$7" "SEL$8" "SEL$9" "SEL$BDFD150D" "SEL$11" "SEL$12") LOCAL LOCAL) |
| LEADING(@"SEL$39525290" ((("e"@"SEL$2" ("VIEW4"@"SEL$4934EF32" "s"@"SEL$2")) "d"@"SEL$2") "g"@"SEL$2")) |
| USE_NL(@"SEL$39525290" "g"@"SEL$2") |
| USE_NL(@"SEL$39525290" "d"@"SEL$2") |
| PQ_DISTRIBUTE(@"SEL$39525290" "d"@"SEL$2" BC2HOST NONE) |
| USE_HASH(@"SEL$39525290" ("s"@"SEL$2" "VIEW4"@"SEL$4934EF32")) |
| PQ_DISTRIBUTE(@"SEL$39525290" ("s"@"SEL$2" "VIEW4"@"SEL$4934EF32") LOCAL LOCAL) |
| FULL(@"SEL$39525290" "e"@"SEL$2") |
| USE_NL(@"SEL$39525290" "s"@"SEL$2") |
| PQ_DISTRIBUTE(@"SEL$39525290" "s"@"SEL$2" BC2HOST NONE) |
| LEADING(@"SEL$3952528F" ("a"@"SEL$2" "VIEW3"@"SEL$2500BE6D")) |
| USE_NL(@"SEL$3952528F" "VIEW3"@"SEL$2500BE6D") |
| INDEX_DESC(@"SEL$3952528F" "a"@"SEL$2" "idx_2") |
| INDEX(@"SEL$3" "s"@"SEL$3" "i_order_id") |
| USE_DAS(@"SEL$3" "s"@"SEL$3") |
| INDEX(@"SEL$4" "s"@"SEL$4" "idx_order_id") |
| USE_DAS(@"SEL$4" "s"@"SEL$4") |
| INDEX(@"SEL$39525290" "s"@"SEL$2" "primary") |
| INDEX(@"SEL$39525290" "d"@"SEL$2" "primary") |
| INDEX(@"SEL$39525290" "g"@"SEL$2" "primary") |
| INDEX(@"SEL$5" "cust"@"SEL$5" "primary") |
| INDEX(@"SEL$6" "w"@"SEL$6" "primary") |
| INDEX(@"SEL$7" "g"@"SEL$7" "idx_1") |
| INDEX(@"SEL$8" "g"@"SEL$8" "idx_1") |
| INDEX(@"SEL$9" "g"@"SEL$9" "idx_1") |
| INDEX(@"SEL$BDFD150D" "g"@"SEL$10" "idx_1") |
| INDEX(@"SEL$11" "t"@"SEL$11" "i_order_id") |
| INDEX(@"SEL$12" "t"@"SEL$12" "idx_order_id") |
| SIMPLIFY_EXPR(@"SEL$2") |
| SIMPLIFY_EXPR(@"SEL$1") |
| SIMPLIFY_GROUP_BY(@"SEL$10") |
| COALESCE_SQ(@"SEL$A3D39CCF" ("SEL$3", "SEL$4")) |
| UNNEST(@"SET$2DD2A5F2") |
| MERGE(@"SET$2DD2A5F2" < "SEL$DDCA7861") |
| MERGE(@"SEL$FB402869" < "SEL$F8C4A4E7") |
| ELIMINATE_JOIN(@"SEL$810145F0" "c"@"SEL$2") |
| PUSH_LIMIT(@"SEL$4934EF32") |
| OPTIMIZER_FEATURES_ENABLE('4.3.5.3') |
| END_OUTLINE_DATA |
| */ |
| Optimization Info: |
| ------------------------------------- |
| e: |
| table_rows:58 |
| physical_range_rows:59 |
| logical_range_rows:59 |
| index_back_rows:0 |
| output_rows:59 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[t_merchant] |
| stats info:[version=2025-09-01 22:01:01.092774, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| a: |
| table_rows:6768587 |
| physical_range_rows:58395 |
| logical_range_rows:58395 |
| index_back_rows:58395 |
| output_rows:57563 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time, t_order] |
| pruned_index_name:[idx_1, idx_3, idx_6, idx_7, idx_8, idx_dev_id, idx_exec_print_time, idx_group, idx_merchant_id, idx_set_id, idx_10, idx_9, i_station_create_time] |
| stats info:[version=2025-09-22 22:01:07.523453, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:591109 |
| physical_range_rows:2 |
| logical_range_rows:2 |
| index_back_rows:2 |
| output_rows:1 |
| table_dop:1 |
| dop_method:DAS DOP |
| avaiable_index_name:[i_order_id, t_order_file_msg] |
| unstable_index_name:[t_order_file_msg] |
| stats info:[version=2025-09-18 22:02:20.024632, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:1020661 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:1 |
| output_rows:0 |
| table_dop:1 |
| dop_method:DAS DOP |
| avaiable_index_name:[idx_2, idx_order_id, idx_return_audit_time, t_order_return] |
| pruned_index_name:[idx_2, idx_return_audit_time] |
| unstable_index_name:[t_order_return] |
| stats info:[version=2025-08-14 18:38:38.085277, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| s: |
| table_rows:333 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id, t_set] |
| pruned_index_name:[idx_1, idx_real_merchant_id, idx_total_set_id] |
| stats info:[version=2025-09-14 22:01:33.278220, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| d: |
| table_rows:2205 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_set_id, t_station] |
| pruned_index_name:[idx_set_id] |
| stats info:[version=2025-09-23 15:14:01.977535, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| g: |
| table_rows:10516137 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[udx_1, idx_2, idx_3, idx_4, idx_6, i_state, udx_5, t_pay] |
| pruned_index_name:[udx_1, idx_2, idx_3, idx_4, idx_6, i_state, udx_5] |
| stats info:[version=2025-09-21 22:02:45.875288, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS] |
| cust: |
| table_rows:3811082 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_2, idx_set_id, udx_moblie_henant, t_cust] |
| pruned_index_name:[idx_2, idx_set_id, udx_moblie_henant] |
| stats info:[version=2025-09-21 22:00:50.079900, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| w: |
| table_rows:211 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:0 |
| output_rows:1 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[t_total_set] |
| stats info:[version=2025-08-14 18:46:44.758155, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:4 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed] |
| unstable_index_name:[t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| g: |
| table_rows:17230673 |
| physical_range_rows:4 |
| logical_range_rows:4 |
| index_back_rows:0 |
| output_rows:4 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_1, idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| pruned_index_name:[idx_2, idx_3, idx_4, idx_print_state, idx_update_time, idx_update_time_speed, t_order_file] |
| stats info:[version=2025-09-22 22:01:36.920892, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| t: |
| table_rows:591109 |
| physical_range_rows:2 |
| logical_range_rows:2 |
| index_back_rows:2 |
| output_rows:2 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[i_order_id, t_order_file_msg] |
| unstable_index_name:[t_order_file_msg] |
| stats info:[version=2025-09-18 22:02:20.024632, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| t: |
| table_rows:1020661 |
| physical_range_rows:1 |
| logical_range_rows:1 |
| index_back_rows:1 |
| output_rows:0 |
| table_dop:1 |
| dop_method:Table DOP |
| avaiable_index_name:[idx_2, idx_order_id, idx_return_audit_time, t_order_return] |
| pruned_index_name:[idx_2, idx_return_audit_time] |
| unstable_index_name:[t_order_return] |
| stats info:[version=2025-08-14 18:38:38.085277, is_locked=0, is_expired=0] |
| dynamic sampling level:0 |
| estimation method:[OPTIMIZER STATISTICS, STORAGE] |
| |
| Plan Type: |
| DISTRIBUTED |
| |
| Parameters: |
| :0 => 0 |
| :1 => 1 |
| :2 => 2 |
| :3 => 3 |
| :4 => 1 |
| :5 => '' |
| :6 => '' |
| :7 => ':' |
| :8 => ';$$$' |
| :9 => '' |
| :10 => '退款描述' |
| :11 => ':' |
| :12 => ';$$$' |
| :13 => '' |
| :14 => 1 |
| :15 => 1 |
| :16 => '2025-09-23 00:00:00' |
| :17 => '2025-09-23 23:59:59' |
| :18 => 1 |
| :19 => '' |
| :20 => '%' |
| :21 => '重复' |
| :22 => '%' |
| :23 => 1 |
| :24 => '' |
| :25 => '%' |
| :26 => '重复' |
| :27 => '%' |
| :28 => 1 |
| :29 => 1 |
| :30 => 0 |
| :31 => 30 |
| |
| Note: |
| Degree of Parallelisim is 1 because of table property |
| |
| Const Parameter Constraints: |
| :4 = 1 |
| |
| Expr Constraints: |
| 1 = 1 result is TRUE |
| 1 = 1 result is TRUE |
| |
| |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+调度时序图
数据时序图
DB Time 算子真实耗时分析图
算子优先视图
机器优先视图
算子优先视图
线程优先视图
select
AVG(ROWS) EST_ROWS, /*0*/
plan_monitor.PLAN_DEPTH PLAN_DEPTH,
plan_monitor.PLAN_LINE_ID PLAN_LINE_ID,
PLAN_OPERATION,
COUNT(*) PARALLEL,
MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME,/*5*/
MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME,
MIN(FIRST_CHANGE_TIME) MIN_FIRST_CHANGE_TIME,
MAX(LAST_CHANGE_TIME) MAX_LAST_CHANGE_TIME,
UNIX_TIMESTAMP(MIN(FIRST_REFRESH_TIME)) MIN_FIRST_REFRESH_TS,
UNIX_TIMESTAMP(MAX(LAST_REFRESH_TIME)) MAX_LAST_REFRESH_TS, /*10*/
UNIX_TIMESTAMP(MIN(FIRST_CHANGE_TIME)) MIN_FIRST_CHANGE_TS,
UNIX_TIMESTAMP(MAX(LAST_CHANGE_TIME)) MAX_LAST_CHANGE_TS,
AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) AVG_REFRESH_TIME,
MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MAX_REFRESH_TIME,
MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MIN_REFRESH_TIME, /*15 */
AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) AVG_CHANGE_TIME,
MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MAX_CHANGE_TIME,
MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MIN_CHANGE_TIME,
SUM(OUTPUT_ROWS) TOTAL_OUTPUT_ROWS,
(MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) - MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME))) / MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)+0.00000001) SKEWNESS,
SUM(STARTS) TOTAL_RESCAN_TIMES,/* 20 */
MAX(OTHERSTAT_1_ID) OTHERSTAT_1_ID,
SUM(OTHERSTAT_1_VALUE) SUM_STAT_1,
MAX(OTHERSTAT_1_VALUE) MAX_STAT_1,
MIN(OTHERSTAT_1_VALUE) MIN_STAT_1,
AVG(OTHERSTAT_1_VALUE) AVG_STAT_1, /* 25 */
MAX(OTHERSTAT_2_ID) OTHERSTAT_2_ID,
SUM(OTHERSTAT_2_VALUE) SUM_STAT_2,
MAX(OTHERSTAT_2_VALUE) MAX_STAT_2,
MIN(OTHERSTAT_2_VALUE) MIN_STAT_2,
AVG(OTHERSTAT_2_VALUE) AVG_STAT_2, /* 30 */
MAX(OTHERSTAT_3_ID) OTHERSTAT_3_ID,
SUM(OTHERSTAT_3_VALUE) SUM_STAT_3,
MAX(OTHERSTAT_3_VALUE) MAX_STAT_3,
MIN(OTHERSTAT_3_VALUE) MIN_STAT_3,
AVG(OTHERSTAT_3_VALUE) AVG_STAT_3, /* 35 */
MAX(OTHERSTAT_4_ID) OTHERSTAT_4_ID,
SUM(OTHERSTAT_4_VALUE) SUM_STAT_4,
MAX(OTHERSTAT_4_VALUE) MAX_STAT_4,
MIN(OTHERSTAT_4_VALUE) MIN_STAT_4,
AVG(OTHERSTAT_4_VALUE) AVG_STAT_4, /* 40 */
MAX(OTHERSTAT_5_ID) OTHERSTAT_5_ID,
SUM(OTHERSTAT_5_VALUE) SUM_STAT_5,
MAX(OTHERSTAT_5_VALUE) MAX_STAT_5,
MIN(OTHERSTAT_5_VALUE) MIN_STAT_5,
AVG(OTHERSTAT_5_VALUE) AVG_STAT_5, /* 45*/
MAX(OTHERSTAT_6_ID) OTHERSTAT_6_ID,
SUM(OTHERSTAT_6_VALUE) SUM_STAT_6,
MAX(OTHERSTAT_6_VALUE) MAX_STAT_6,
MIN(OTHERSTAT_6_VALUE) MIN_STAT_6,
AVG(OTHERSTAT_6_VALUE) AVG_STAT_6 /* 50 */,
TRUNCATE(AVG(DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
TRUNCATE(AVG(DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
TRUNCATE(AVG(USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
(
select * FROM oceanbase.gv$sql_plan_monitor
where
trace_id = 'YB42AC11AC54-00063C5419359DD8-0-0'
) plan_monitor
LEFT JOIN
(
SELECT ROWS, PLAN_LINE_ID FROM oceanbase.gv$ob_plan_cache_plan_explain WHERE plan_id = 627102 AND tenant_id = 1002 and svr_ip = '172.17.172.84' and svr_port = 2882
) plan_explain
ON
plan_monitor.PLAN_LINE_ID = plan_explain.PLAN_LINE_ID
GROUP BY
plan_monitor.PLAN_LINE_ID, plan_monitor.PLAN_OPERATION
ORDER BY
plan_monitor.PLAN_LINE_ID ASC;
select
PLAN_DEPTH,
PLAN_LINE_ID,
PLAN_OPERATION,
COUNT(*) PARALLEL,
MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME,
MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME,
MIN(FIRST_CHANGE_TIME) MIN_FIRST_CHANGE_TIME,
MAX(LAST_CHANGE_TIME) MAX_LAST_CHANGE_TIME,
UNIX_TIMESTAMP(MIN(FIRST_REFRESH_TIME)) MIN_FIRST_REFRESH_TS,
UNIX_TIMESTAMP(MAX(LAST_REFRESH_TIME)) MAX_LAST_REFRESH_TS,
UNIX_TIMESTAMP(MIN(FIRST_CHANGE_TIME)) MIN_FIRST_CHANGE_TS,
UNIX_TIMESTAMP(MAX(LAST_CHANGE_TIME)) MAX_LAST_CHANGE_TS,
AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) AVG_REFRESH_TIME,
MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MAX_REFRESH_TIME,
MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_REFRESH_TIME, LAST_REFRESH_TIME)) MIN_REFRESH_TIME,
AVG(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) AVG_CHANGE_TIME,
MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MAX_CHANGE_TIME,
MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) MIN_CHANGE_TIME,
SUM(OUTPUT_ROWS) TOTAL_OUTPUT_ROWS,
(MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) - MIN(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME))) / MAX(TIMESTAMPDIFF(MICROSECOND, FIRST_CHANGE_TIME, LAST_CHANGE_TIME)) SKEWNESS,
SUM(STARTS) TOTAL_RESCAN_TIMES,
SVR_IP,
SVR_PORT,
MAX(OTHERSTAT_1_VALUE) MAX_STAT_1,
MIN(OTHERSTAT_1_VALUE) MIN_STAT_1,
AVG(OTHERSTAT_1_VALUE) AVG_STAT_1,
MAX(OTHERSTAT_2_VALUE) MAX_STAT_2,
MIN(OTHERSTAT_2_VALUE) MIN_STAT_2,
AVG(OTHERSTAT_2_VALUE) AVG_STAT_2,
MAX(OTHERSTAT_3_VALUE) MAX_STAT_3,
MIN(OTHERSTAT_3_VALUE) MIN_STAT_3,
AVG(OTHERSTAT_3_VALUE) AVG_STAT_3,
MAX(OTHERSTAT_4_VALUE) MAX_STAT_4,
MIN(OTHERSTAT_4_VALUE) MIN_STAT_4,
AVG(OTHERSTAT_4_VALUE) AVG_STAT_4,
MAX(OTHERSTAT_5_VALUE) MAX_STAT_5,
MIN(OTHERSTAT_5_VALUE) MIN_STAT_5,
AVG(OTHERSTAT_5_VALUE) AVG_STAT_5,
MAX(OTHERSTAT_6_VALUE) MAX_STAT_6,
MIN(OTHERSTAT_6_VALUE) MIN_STAT_6,
AVG(OTHERSTAT_6_VALUE) AVG_STAT_6,
TRUNCATE(AVG(DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
TRUNCATE(AVG(DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
TRUNCATE(AVG(USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
oceanbase.gv$sql_plan_monitor
where
trace_id = 'YB42AC11AC54-00063C5419359DD8-0-0'
GROUP BY
PLAN_LINE_ID,PLAN_OPERATION,SVR_IP,SVR_PORT
ORDER BY
PLAN_LINE_ID ASC, MAX_CHANGE_TIME ASC, SVR_IP, SVR_PORT;
select
PLAN_DEPTH,/*0*/
SVR_IP,
SVR_PORT,
PROCESS_NAME,
PLAN_LINE_ID,
PLAN_OPERATION, /*5*/
OUTPUT_ROWS,
STARTS RESCAN_TIMES,
FIRST_REFRESH_TIME,
LAST_REFRESH_TIME,
FIRST_CHANGE_TIME,/*10*/
LAST_CHANGE_TIME,
UNIX_TIMESTAMP(FIRST_REFRESH_TIME) FIRST_REFRESH_TS,
UNIX_TIMESTAMP(LAST_REFRESH_TIME) LAST_REFRESH_TS,
UNIX_TIMESTAMP(LAST_REFRESH_TIME) - UNIX_TIMESTAMP(FIRST_REFRESH_TIME) REFRESH_TS,
UNIX_TIMESTAMP(FIRST_CHANGE_TIME) FIRST_CHANGE_TS, /*15*/
UNIX_TIMESTAMP(LAST_CHANGE_TIME) LAST_CHANGE_TS,
UNIX_TIMESTAMP(LAST_CHANGE_TIME) - UNIX_TIMESTAMP(FIRST_CHANGE_TIME) CHANGE_TS,
OTHERSTAT_1_ID,
OTHERSTAT_1_VALUE,
OTHERSTAT_2_ID, /*20*/
OTHERSTAT_2_VALUE,
OTHERSTAT_3_ID,
OTHERSTAT_3_VALUE,
OTHERSTAT_4_ID,
OTHERSTAT_4_VALUE, /*25*/
OTHERSTAT_5_ID,
OTHERSTAT_5_VALUE,
OTHERSTAT_6_ID,
OTHERSTAT_6_VALUE,
TRUNCATE((DB_TIME)/1000000000.0/2.5, 4) MY_DB_TIME,
TRUNCATE((DB_TIME-USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_CPU_TIME,
TRUNCATE((USER_IO_WAIT_TIME)/1000000000.0/2.5, 4) MY_IO_TIME
from
oceanbase.gv$sql_plan_monitor
where
trace_id = 'YB42AC11AC54-00063C5419359DD8-0-0'
ORDER BY
PLAN_LINE_ID ASC, SVR_IP, SVR_PORT, CHANGE_TS, PROCESS_NAME ASC;