Skip to content

Conversation

@sollhui
Copy link
Contributor

@sollhui sollhui commented Mar 12, 2025

What problem does this PR solve?

Part IV of #48511

doc apache/doris-website#2196

Introduce routine load job statistic system table:

mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)

There are some benefits to empower job with SQL query capability for statistical information:

SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
  • User can use the select * from information_schema.routine_load_job instead of the show routine load. The advantage is that the show routine load can only be searched by name, but SQL can be very flexible in locating jobs

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@sollhui
Copy link
Contributor Author

sollhui commented Mar 12, 2025

run buildall

@hello-stephen
Copy link
Contributor

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR.

Please clearly describe your PR:

  1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
  2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
  3. What features were added. Why was this function added?
  4. Which code was refactored and why was this part of the code refactored?
  5. Which functions were optimized and what is the difference before and after the optimization?

@sollhui sollhui force-pushed the job_stat_sys_table branch from 2f3243e to 7b537bf Compare March 12, 2025 08:27
@sollhui
Copy link
Contributor Author

sollhui commented Mar 12, 2025

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 83.05% (1073/1292)
Line Coverage: 65.95% (17690/26824)
Region Coverage: 65.38% (8718/13334)
Branch Coverage: 55.28% (4703/8508)
Coverage Report: http://coverage.selectdb-in.cc/coverage/7b537bfcca13797c4b7032a6f5e616255b6d7836_7b537bfcca13797c4b7032a6f5e616255b6d7836_cloud/report/index.html

@sollhui sollhui force-pushed the job_stat_sys_table branch from 7b537bf to d251e41 Compare March 12, 2025 09:11
@sollhui
Copy link
Contributor Author

sollhui commented Mar 12, 2025

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 83.05% (1073/1292)
Line Coverage: 65.90% (17676/26824)
Region Coverage: 65.34% (8712/13334)
Branch Coverage: 55.23% (4699/8508)
Coverage Report: http://coverage.selectdb-in.cc/coverage/d251e4174a22d57d6b303081b71b861d9480d627_d251e4174a22d57d6b303081b71b861d9480d627_cloud/report/index.html

@doris-robot
Copy link

TPC-H: Total hot run time: 32671 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d251e4174a22d57d6b303081b71b861d9480d627, data reload: false

------ Round 1 ----------------------------------
q1	17624	5173	5110	5110
q2	2037	280	168	168
q3	10433	1306	688	688
q4	10219	1037	544	544
q5	8121	2404	2450	2404
q6	194	163	133	133
q7	917	735	624	624
q8	9298	1285	1135	1135
q9	5069	4899	4708	4708
q10	6840	2319	1882	1882
q11	479	268	258	258
q12	355	354	216	216
q13	17782	3714	3133	3133
q14	232	232	218	218
q15	534	484	480	480
q16	621	611	577	577
q17	584	860	359	359
q18	6929	6696	6382	6382
q19	1473	964	558	558
q20	315	328	186	186
q21	2995	2147	1916	1916
q22	1085	1006	992	992
Total cold run time: 104136 ms
Total hot run time: 32671 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5184	5122	5124	5122
q2	244	326	226	226
q3	2167	2709	2337	2337
q4	1487	1864	1406	1406
q5	4241	4201	4159	4159
q6	205	168	125	125
q7	1976	1942	1791	1791
q8	2703	2560	2556	2556
q9	7261	7171	7202	7171
q10	2936	3229	2772	2772
q11	594	511	485	485
q12	703	785	599	599
q13	3543	3955	3164	3164
q14	290	311	273	273
q15	528	484	479	479
q16	639	675	649	649
q17	1183	1556	1400	1400
q18	7708	7614	7395	7395
q19	836	885	887	885
q20	1956	2026	1888	1888
q21	5486	5027	4797	4797
q22	1104	1042	1028	1028
Total cold run time: 52974 ms
Total hot run time: 50707 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 185956 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit d251e4174a22d57d6b303081b71b861d9480d627, data reload: false

query1	1028	377	379	377
query2	6537	1889	1940	1889
query3	6790	217	214	214
query4	26211	23768	23423	23423
query5	4322	664	478	478
query6	329	196	188	188
query7	4613	502	300	300
query8	314	251	236	236
query9	8611	2647	2619	2619
query10	488	318	250	250
query11	15971	15075	14896	14896
query12	155	108	106	106
query13	1664	536	405	405
query14	9662	6692	6443	6443
query15	212	193	176	176
query16	7339	642	483	483
query17	1197	723	575	575
query18	1966	405	321	321
query19	200	188	159	159
query20	122	123	118	118
query21	209	130	107	107
query22	4214	4448	4161	4161
query23	34038	32966	33069	32966
query24	7735	2362	2364	2362
query25	544	448	385	385
query26	1227	273	157	157
query27	2091	494	336	336
query28	3908	2454	2444	2444
query29	729	535	437	437
query30	283	221	188	188
query31	951	833	752	752
query32	77	65	63	63
query33	563	376	296	296
query34	790	842	509	509
query35	796	811	739	739
query36	959	995	856	856
query37	115	99	78	78
query38	4160	4078	4270	4078
query39	1467	1402	1397	1397
query40	204	122	101	101
query41	56	51	50	50
query42	113	108	102	102
query43	481	509	490	490
query44	1281	778	793	778
query45	175	172	167	167
query46	829	1028	630	630
query47	1768	1830	1742	1742
query48	389	413	298	298
query49	792	516	421	421
query50	716	730	408	408
query51	4233	4212	4158	4158
query52	104	103	96	96
query53	233	248	191	191
query54	493	497	412	412
query55	91	79	87	79
query56	252	262	259	259
query57	1152	1132	1074	1074
query58	242	242	228	228
query59	2499	2512	2575	2512
query60	278	277	250	250
query61	121	116	122	116
query62	777	742	685	685
query63	233	183	190	183
query64	4304	999	772	772
query65	4447	4332	4370	4332
query66	1118	432	304	304
query67	15690	15443	15180	15180
query68	8180	904	509	509
query69	466	300	256	256
query70	1219	1160	1052	1052
query71	452	287	263	263
query72	5271	3747	3735	3735
query73	774	727	349	349
query74	9139	9123	8973	8973
query75	3721	3179	2733	2733
query76	3712	1204	774	774
query77	778	423	288	288
query78	10034	10147	9324	9324
query79	2113	817	595	595
query80	608	516	428	428
query81	497	264	224	224
query82	512	124	99	99
query83	175	170	157	157
query84	242	93	71	71
query85	812	360	300	300
query86	399	309	290	290
query87	4380	4575	4443	4443
query88	3704	2252	2270	2252
query89	381	326	290	290
query90	1856	205	206	205
query91	141	138	113	113
query92	83	63	61	61
query93	1632	1072	576	576
query94	651	422	311	311
query95	348	263	262	262
query96	485	560	274	274
query97	3348	3439	3307	3307
query98	222	217	202	202
query99	1336	1415	1255	1255
Total cold run time: 273329 ms
Total hot run time: 185956 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 30.65 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit d251e4174a22d57d6b303081b71b861d9480d627, data reload: false

query1	0.04	0.03	0.02
query2	0.07	0.04	0.03
query3	0.24	0.07	0.07
query4	1.61	0.10	0.11
query5	0.56	0.55	0.56
query6	1.21	0.72	0.73
query7	0.03	0.03	0.02
query8	0.05	0.03	0.04
query9	0.59	0.51	0.52
query10	0.58	0.61	0.58
query11	0.16	0.12	0.11
query12	0.15	0.11	0.12
query13	0.62	0.61	0.60
query14	2.79	2.69	2.68
query15	0.93	0.85	0.85
query16	0.39	0.37	0.37
query17	1.05	1.07	1.03
query18	0.21	0.20	0.20
query19	1.94	1.97	1.83
query20	0.02	0.01	0.02
query21	15.35	0.89	0.56
query22	0.76	1.10	0.61
query23	15.09	1.38	0.62
query24	7.72	1.44	0.55
query25	0.52	0.27	0.13
query26	0.70	0.16	0.13
query27	0.05	0.05	0.05
query28	9.46	0.89	0.45
query29	12.52	3.96	3.34
query30	0.25	0.10	0.06
query31	2.82	0.61	0.38
query32	3.23	0.54	0.46
query33	3.13	3.06	2.99
query34	15.81	5.19	4.53
query35	4.56	4.58	4.56
query36	0.66	0.49	0.49
query37	0.09	0.07	0.06
query38	0.06	0.04	0.04
query39	0.04	0.03	0.03
query40	0.16	0.14	0.13
query41	0.09	0.03	0.02
query42	0.04	0.02	0.03
query43	0.03	0.03	0.02
Total cold run time: 106.38 s
Total hot run time: 30.65 s

@sollhui sollhui force-pushed the job_stat_sys_table branch 2 times, most recently from d521022 to 5e35e7e Compare March 13, 2025 15:10
@sollhui
Copy link
Contributor Author

sollhui commented Mar 13, 2025

run buildall

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.88% (1075/1297)
Line Coverage: 65.94% (17755/26927)
Region Coverage: 65.26% (8739/13391)
Branch Coverage: 55.20% (4712/8536)
Coverage Report: http://coverage.selectdb-in.cc/coverage/d4cc1b624b9fc3b5cde197c715aed8e57d4962e7_d4cc1b624b9fc3b5cde197c715aed8e57d4962e7_cloud/report/index.html

@doris-robot
Copy link

TPC-H: Total hot run time: 32803 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit d4cc1b624b9fc3b5cde197c715aed8e57d4962e7, data reload: false

------ Round 1 ----------------------------------
q1	17621	5221	5016	5016
q2	2050	292	163	163
q3	10413	1307	732	732
q4	10207	1032	555	555
q5	7558	2446	2396	2396
q6	189	164	137	137
q7	918	770	616	616
q8	9313	1378	1111	1111
q9	4970	4920	4961	4920
q10	6827	2322	1884	1884
q11	481	278	276	276
q12	357	353	217	217
q13	17755	3718	3125	3125
q14	227	227	210	210
q15	535	487	484	484
q16	649	623	589	589
q17	595	848	366	366
q18	6972	6432	6294	6294
q19	1539	973	566	566
q20	333	350	199	199
q21	2834	2267	1949	1949
q22	994	1031	998	998
Total cold run time: 103337 ms
Total hot run time: 32803 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5140	5095	5101	5095
q2	243	329	233	233
q3	2149	2679	2307	2307
q4	1456	1845	1406	1406
q5	4255	4121	4169	4121
q6	208	167	128	128
q7	1922	1916	1782	1782
q8	2633	2612	2558	2558
q9	7253	7268	7243	7243
q10	3053	3231	2765	2765
q11	580	519	480	480
q12	665	722	581	581
q13	3421	3958	3261	3261
q14	299	290	291	290
q15	528	475	474	474
q16	662	691	651	651
q17	1162	1588	1368	1368
q18	7859	7645	7574	7574
q19	816	840	932	840
q20	1969	2016	1893	1893
q21	5481	4935	4708	4708
q22	1099	1062	1002	1002
Total cold run time: 52853 ms
Total hot run time: 50760 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192825 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit d4cc1b624b9fc3b5cde197c715aed8e57d4962e7, data reload: false

query1	1407	1023	990	990
query2	6318	2022	2029	2022
query3	11025	4512	4481	4481
query4	57402	24917	23491	23491
query5	5049	500	466	466
query6	363	181	167	167
query7	5039	517	304	304
query8	319	230	251	230
query9	6598	2621	2633	2621
query10	427	311	254	254
query11	15226	15151	14905	14905
query12	174	110	107	107
query13	1161	521	403	403
query14	10722	6645	6867	6645
query15	216	202	187	187
query16	7234	655	501	501
query17	1086	729	578	578
query18	1752	415	322	322
query19	201	196	170	170
query20	128	135	121	121
query21	214	129	102	102
query22	4474	4580	4526	4526
query23	33965	33250	33511	33250
query24	5707	2463	2412	2412
query25	449	474	399	399
query26	703	284	155	155
query27	1864	519	329	329
query28	2777	2477	2463	2463
query29	602	598	418	418
query30	270	221	190	190
query31	864	881	778	778
query32	73	62	63	62
query33	448	355	336	336
query34	765	868	506	506
query35	805	849	761	761
query36	975	999	909	909
query37	124	97	81	81
query38	4191	4345	4162	4162
query39	1526	1413	1515	1413
query40	199	117	108	108
query41	51	51	51	51
query42	127	104	106	104
query43	531	528	505	505
query44	1327	812	806	806
query45	180	174	168	168
query46	851	1054	644	644
query47	1830	1893	1767	1767
query48	392	418	314	314
query49	747	540	430	430
query50	728	772	416	416
query51	4313	4307	4306	4306
query52	112	109	95	95
query53	238	257	183	183
query54	502	509	422	422
query55	83	82	83	82
query56	298	285	273	273
query57	1192	1196	1126	1126
query58	250	238	245	238
query59	2951	3054	2851	2851
query60	289	286	270	270
query61	158	114	117	114
query62	724	725	684	684
query63	223	189	189	189
query64	1744	1060	700	700
query65	4500	4545	4435	4435
query66	760	387	290	290
query67	15601	15621	15371	15371
query68	7741	872	499	499
query69	538	296	262	262
query70	1187	1110	1117	1110
query71	497	292	281	281
query72	5612	3562	3782	3562
query73	1359	730	356	356
query74	9023	9141	8861	8861
query75	3662	3115	2698	2698
query76	4215	1331	754	754
query77	600	358	276	276
query78	9915	10189	9252	9252
query79	2697	810	592	592
query80	653	513	440	440
query81	478	259	223	223
query82	635	126	95	95
query83	310	170	158	158
query84	289	94	73	73
query85	869	356	308	308
query86	386	309	275	275
query87	4420	4436	4409	4409
query88	3527	2266	2270	2266
query89	401	322	279	279
query90	1936	210	220	210
query91	142	134	114	114
query92	79	58	56	56
query93	1309	1072	593	593
query94	705	396	306	306
query95	355	275	264	264
query96	480	553	282	282
query97	3401	3423	3322	3322
query98	225	219	202	202
query99	1436	1383	1288	1288
Total cold run time: 302626 ms
Total hot run time: 192825 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.38 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit d4cc1b624b9fc3b5cde197c715aed8e57d4962e7, data reload: false

query1	0.03	0.03	0.03
query2	0.11	0.05	0.05
query3	0.28	0.05	0.05
query4	1.59	0.07	0.08
query5	0.56	0.54	0.54
query6	1.20	0.73	0.72
query7	0.02	0.03	0.01
query8	0.06	0.05	0.05
query9	0.63	0.52	0.52
query10	0.56	0.60	0.56
query11	0.26	0.12	0.12
query12	0.25	0.13	0.13
query13	0.64	0.62	0.62
query14	2.68	2.74	2.70
query15	1.01	0.87	0.87
query16	0.38	0.37	0.39
query17	1.04	1.08	1.04
query18	0.18	0.21	0.17
query19	1.98	1.91	1.88
query20	0.01	0.02	0.01
query21	15.35	0.96	0.66
query22	0.92	1.03	0.83
query23	14.66	1.50	0.76
query24	5.50	0.57	0.29
query25	0.16	0.08	0.08
query26	0.55	0.22	0.17
query27	0.09	0.09	0.08
query28	11.00	1.15	0.55
query29	12.52	4.09	3.46
query30	0.28	0.08	0.06
query31	2.83	0.62	0.43
query32	3.22	0.61	0.50
query33	3.05	3.19	3.03
query34	16.18	5.11	4.43
query35	4.49	4.52	4.42
query36	0.64	0.50	0.50
query37	0.20	0.16	0.16
query38	0.17	0.16	0.14
query39	0.04	0.04	0.04
query40	0.20	0.16	0.15
query41	0.10	0.04	0.05
query42	0.06	0.05	0.06
query43	0.05	0.04	0.04
Total cold run time: 105.73 s
Total hot run time: 31.38 s

@sollhui sollhui force-pushed the job_stat_sys_table branch 2 times, most recently from 960f9a1 to ef2ad56 Compare March 14, 2025 05:07
@sollhui
Copy link
Contributor Author

sollhui commented Mar 14, 2025

run buildall

@sollhui sollhui changed the title [improve](information schema) introduce routine load job statistic system table [improve](information schema) introduce routine load job system table Mar 14, 2025
@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.88% (1075/1297)
Line Coverage: 65.87% (17736/26927)
Region Coverage: 65.19% (8730/13391)
Branch Coverage: 55.19% (4711/8536)
Coverage Report: http://coverage.selectdb-in.cc/coverage/bcc6b505453a63ebca3d2d0dbb15416873e5c262_bcc6b505453a63ebca3d2d0dbb15416873e5c262_cloud/report/index.html

@doris-robot
Copy link

TPC-H: Total hot run time: 32849 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit bcc6b505453a63ebca3d2d0dbb15416873e5c262, data reload: false

------ Round 1 ----------------------------------
q1	17597	5156	5148	5148
q2	2045	298	170	170
q3	10404	1285	772	772
q4	10201	1063	540	540
q5	7523	2346	2417	2346
q6	185	160	131	131
q7	922	745	615	615
q8	9305	1362	1188	1188
q9	4987	4887	4770	4770
q10	6847	2322	1936	1936
q11	491	267	256	256
q12	350	353	215	215
q13	17779	3755	3129	3129
q14	235	239	211	211
q15	535	493	481	481
q16	627	606	570	570
q17	594	873	375	375
q18	6771	6418	6275	6275
q19	1925	958	575	575
q20	325	331	197	197
q21	2953	2171	1985	1985
q22	1064	1040	964	964
Total cold run time: 103665 ms
Total hot run time: 32849 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5257	5180	5174	5174
q2	244	331	230	230
q3	2177	2680	2277	2277
q4	1443	1845	1381	1381
q5	4288	4137	4189	4137
q6	203	173	131	131
q7	1938	1916	1753	1753
q8	2663	2706	2595	2595
q9	7280	7244	7177	7177
q10	3032	3238	2779	2779
q11	577	508	502	502
q12	661	729	620	620
q13	3401	3936	3262	3262
q14	281	301	281	281
q15	528	484	474	474
q16	641	721	648	648
q17	1182	1636	1337	1337
q18	7784	7606	7563	7563
q19	834	887	1129	887
q20	2028	2037	1912	1912
q21	5441	4889	4664	4664
q22	1084	1104	1010	1010
Total cold run time: 52967 ms
Total hot run time: 50794 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192670 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit bcc6b505453a63ebca3d2d0dbb15416873e5c262, data reload: false

query1	1433	1011	994	994
query2	6253	2006	1969	1969
query3	10994	4590	4500	4500
query4	54115	25693	23491	23491
query5	5143	553	501	501
query6	355	205	186	186
query7	4972	502	291	291
query8	333	272	259	259
query9	6024	2632	2644	2632
query10	456	316	261	261
query11	15645	15127	14931	14931
query12	158	112	104	104
query13	1067	504	389	389
query14	10052	6524	6595	6524
query15	208	199	182	182
query16	7077	651	478	478
query17	1049	716	583	583
query18	1519	396	316	316
query19	202	183	162	162
query20	132	127	120	120
query21	215	138	117	117
query22	4349	4523	4281	4281
query23	33978	33483	33384	33384
query24	6725	2451	2463	2451
query25	490	482	438	438
query26	672	282	161	161
query27	2358	505	350	350
query28	2894	2481	2457	2457
query29	640	552	438	438
query30	279	222	187	187
query31	890	881	819	819
query32	78	66	66	66
query33	463	366	302	302
query34	762	854	522	522
query35	790	825	740	740
query36	944	987	928	928
query37	119	101	78	78
query38	4085	4208	4127	4127
query39	1514	1444	1457	1444
query40	208	116	116	116
query41	58	58	49	49
query42	122	106	104	104
query43	514	533	496	496
query44	1294	807	820	807
query45	176	177	164	164
query46	840	1044	646	646
query47	1814	1861	1774	1774
query48	391	426	316	316
query49	706	552	439	439
query50	712	744	425	425
query51	4279	4344	4224	4224
query52	112	109	93	93
query53	252	264	195	195
query54	514	514	413	413
query55	83	85	85	85
query56	303	310	264	264
query57	1161	1196	1126	1126
query58	240	251	236	236
query59	2768	2986	2797	2797
query60	287	274	257	257
query61	126	119	113	113
query62	745	730	652	652
query63	236	193	191	191
query64	1525	1066	736	736
query65	4587	4446	4491	4446
query66	789	411	295	295
query67	15925	15482	15099	15099
query68	5673	884	501	501
query69	542	306	267	267
query70	1181	1132	1147	1132
query71	438	283	264	264
query72	5996	3662	3786	3662
query73	1127	746	351	351
query74	9299	9036	9138	9036
query75	3253	3154	2735	2735
query76	3847	1189	767	767
query77	535	350	276	276
query78	9978	10037	9358	9358
query79	2525	818	578	578
query80	661	522	439	439
query81	496	252	218	218
query82	347	126	97	97
query83	178	165	159	159
query84	288	93	73	73
query85	835	476	306	306
query86	376	322	286	286
query87	4533	4567	4345	4345
query88	3571	2274	2288	2274
query89	403	309	284	284
query90	1855	213	217	213
query91	145	140	113	113
query92	77	62	55	55
query93	2399	1043	576	576
query94	670	415	292	292
query95	351	273	285	273
query96	488	565	277	277
query97	3323	3531	3258	3258
query98	233	207	204	204
query99	1341	1403	1280	1280
Total cold run time: 297163 ms
Total hot run time: 192670 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.46 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit bcc6b505453a63ebca3d2d0dbb15416873e5c262, data reload: false

query1	0.03	0.03	0.03
query2	0.11	0.04	0.05
query3	0.28	0.05	0.06
query4	1.60	0.07	0.07
query5	0.57	0.57	0.54
query6	1.20	0.74	0.73
query7	0.03	0.01	0.02
query8	0.06	0.05	0.05
query9	0.64	0.52	0.54
query10	0.57	0.58	0.58
query11	0.26	0.12	0.12
query12	0.26	0.13	0.14
query13	0.64	0.62	0.61
query14	2.66	2.78	2.71
query15	0.99	0.86	0.87
query16	0.36	0.36	0.37
query17	1.05	1.02	1.03
query18	0.19	0.18	0.20
query19	2.12	1.87	1.84
query20	0.02	0.02	0.02
query21	15.39	0.95	0.66
query22	0.92	1.12	0.83
query23	14.70	1.53	0.75
query24	5.11	0.62	0.30
query25	0.17	0.09	0.08
query26	0.55	0.22	0.18
query27	0.09	0.10	0.08
query28	11.04	1.15	0.56
query29	12.52	4.05	3.44
query30	0.28	0.08	0.06
query31	2.80	0.62	0.43
query32	3.24	0.60	0.49
query33	3.03	3.04	3.09
query34	16.40	5.14	4.50
query35	4.48	4.43	4.46
query36	0.64	0.50	0.50
query37	0.21	0.17	0.17
query38	0.16	0.15	0.15
query39	0.05	0.04	0.04
query40	0.18	0.17	0.16
query41	0.11	0.05	0.05
query42	0.06	0.04	0.04
query43	0.05	0.05	0.05
Total cold run time: 105.82 s
Total hot run time: 31.46 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 0.00% (0/131) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 47.95% (12823/26745)
Line Coverage 37.34% (109436/293106)
Region Coverage 36.44% (56064/153843)
Branch Coverage 31.72% (28249/89052)

@doris-robot
Copy link

TeamCity cloud ut coverage result:
Function Coverage: 82.88% (1075/1297)
Line Coverage: 65.92% (17749/26927)
Region Coverage: 65.25% (8737/13391)
Branch Coverage: 55.24% (4715/8536)
Coverage Report: http://coverage.selectdb-in.cc/coverage/54f6dc4a777923245398aeccf277e4e4a7079f71_54f6dc4a777923245398aeccf277e4e4a7079f71_cloud/report/index.html

@doris-robot
Copy link

TPC-H: Total hot run time: 32421 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 54f6dc4a777923245398aeccf277e4e4a7079f71, data reload: false

------ Round 1 ----------------------------------
q1	17585	5216	5079	5079
q2	2048	294	165	165
q3	10625	1291	763	763
q4	10212	1049	530	530
q5	7530	2446	2360	2360
q6	194	160	133	133
q7	939	748	625	625
q8	9295	1337	1107	1107
q9	4896	4804	4611	4611
q10	6824	2317	1905	1905
q11	461	271	278	271
q12	352	358	215	215
q13	17770	3676	3112	3112
q14	236	231	210	210
q15	535	485	491	485
q16	621	615	580	580
q17	592	880	374	374
q18	6752	6533	6216	6216
q19	1703	970	564	564
q20	332	326	194	194
q21	2865	2118	1949	1949
q22	1024	1026	973	973
Total cold run time: 103391 ms
Total hot run time: 32421 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5216	5147	5156	5147
q2	238	333	234	234
q3	2205	2704	2390	2390
q4	1517	1889	1400	1400
q5	4252	4191	4250	4191
q6	206	167	125	125
q7	1926	1976	1759	1759
q8	2675	2608	2516	2516
q9	7287	7235	7186	7186
q10	3052	3262	2781	2781
q11	567	522	503	503
q12	667	711	594	594
q13	3532	3957	3318	3318
q14	291	295	280	280
q15	524	474	482	474
q16	677	677	654	654
q17	1171	1620	1372	1372
q18	7877	7491	7556	7491
q19	841	861	1011	861
q20	1998	2128	1940	1940
q21	5735	4989	4770	4770
q22	1128	1062	1051	1051
Total cold run time: 53582 ms
Total hot run time: 51037 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191927 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 54f6dc4a777923245398aeccf277e4e4a7079f71, data reload: false

query1	1377	1019	994	994
query2	6475	1894	1900	1894
query3	11001	4600	4534	4534
query4	25522	23976	23058	23058
query5	4359	674	489	489
query6	316	212	182	182
query7	3979	500	292	292
query8	297	246	227	227
query9	8457	2595	2609	2595
query10	478	306	262	262
query11	15439	15150	15021	15021
query12	164	116	103	103
query13	1585	524	406	406
query14	9241	6312	6588	6312
query15	203	186	172	172
query16	7584	635	477	477
query17	1205	772	599	599
query18	2036	427	338	338
query19	196	203	178	178
query20	133	128	127	127
query21	207	124	109	109
query22	4489	4585	4356	4356
query23	34622	33644	33532	33532
query24	7851	2440	2422	2422
query25	500	462	460	460
query26	1226	282	153	153
query27	2418	500	331	331
query28	4749	2473	2442	2442
query29	713	576	455	455
query30	303	221	191	191
query31	952	842	765	765
query32	73	65	63	63
query33	534	357	307	307
query34	804	877	508	508
query35	809	872	784	784
query36	998	1013	896	896
query37	127	107	75	75
query38	4146	4324	4266	4266
query39	1519	1439	1432	1432
query40	225	118	107	107
query41	57	55	54	54
query42	118	106	105	105
query43	518	517	486	486
query44	1328	792	793	792
query45	180	174	170	170
query46	857	1045	650	650
query47	1887	1828	1794	1794
query48	393	415	319	319
query49	778	539	403	403
query50	709	743	419	419
query51	4272	4306	4271	4271
query52	120	105	100	100
query53	236	262	186	186
query54	492	507	440	440
query55	84	79	84	79
query56	282	278	278	278
query57	1192	1182	1101	1101
query58	249	238	235	235
query59	2639	2777	2777	2777
query60	292	278	260	260
query61	132	121	119	119
query62	793	733	678	678
query63	235	190	187	187
query64	4267	1059	704	704
query65	4633	4428	4522	4428
query66	952	401	352	352
query67	16180	15520	15171	15171
query68	9714	877	512	512
query69	485	298	266	266
query70	1202	1140	1130	1130
query71	467	292	253	253
query72	5152	3693	3761	3693
query73	807	715	357	357
query74	8991	9229	8621	8621
query75	4188	3144	2671	2671
query76	4439	1195	762	762
query77	961	365	277	277
query78	9838	10197	9307	9307
query79	1431	831	583	583
query80	689	527	454	454
query81	475	271	218	218
query82	203	127	97	97
query83	195	170	166	166
query84	287	94	77	77
query85	761	360	324	324
query86	337	306	282	282
query87	4596	4441	4320	4320
query88	2865	2217	2219	2217
query89	397	317	281	281
query90	1988	209	206	206
query91	154	141	109	109
query92	71	59	57	57
query93	1176	1048	582	582
query94	661	414	305	305
query95	350	272	265	265
query96	481	562	279	279
query97	3371	3422	3297	3297
query98	216	202	198	198
query99	1465	1440	1289	1289
Total cold run time: 279600 ms
Total hot run time: 191927 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 31.4 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 54f6dc4a777923245398aeccf277e4e4a7079f71, data reload: false

query1	0.03	0.03	0.03
query2	0.10	0.04	0.04
query3	0.28	0.05	0.06
query4	1.60	0.08	0.08
query5	0.56	0.54	0.54
query6	1.20	0.73	0.73
query7	0.03	0.02	0.02
query8	0.05	0.05	0.06
query9	0.62	0.53	0.51
query10	0.58	0.59	0.58
query11	0.26	0.14	0.13
query12	0.24	0.13	0.14
query13	0.64	0.61	0.62
query14	2.78	2.71	2.80
query15	1.00	0.88	0.88
query16	0.38	0.37	0.38
query17	1.01	1.06	1.05
query18	0.19	0.18	0.18
query19	1.97	1.96	1.90
query20	0.01	0.02	0.01
query21	15.35	0.97	0.66
query22	0.92	1.04	0.79
query23	14.69	1.51	0.75
query24	5.52	0.58	0.29
query25	0.17	0.10	0.09
query26	0.55	0.22	0.17
query27	0.09	0.08	0.09
query28	11.04	1.18	0.56
query29	12.51	4.03	3.38
query30	0.28	0.09	0.06
query31	2.80	0.63	0.42
query32	3.23	0.59	0.50
query33	3.01	3.10	3.03
query34	16.54	5.11	4.38
query35	4.61	4.50	4.50
query36	0.64	0.52	0.51
query37	0.20	0.16	0.17
query38	0.18	0.15	0.15
query39	0.04	0.04	0.04
query40	0.19	0.16	0.14
query41	0.10	0.06	0.05
query42	0.06	0.05	0.05
query43	0.06	0.05	0.04
Total cold run time: 106.31 s
Total hot run time: 31.4 s

@hello-stephen
Copy link
Contributor

BE UT Coverage Report

Increment line coverage 0.00% (0/130) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 48.26% (12912/26757)
Line Coverage 37.60% (110253/293213)
Region Coverage 36.68% (56442/153897)
Branch Coverage 31.88% (28399/89088)

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added approved Indicates a PR has been approved by one committer. reviewed labels Mar 16, 2025
@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

Copy link
Contributor

@liaoxin01 liaoxin01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring dataroaring merged commit e18ea53 into apache:master Mar 17, 2025
31 of 33 checks passed
sollhui added a commit to sollhui/doris that referenced this pull request Mar 20, 2025
…apache#48963)

Part IV of apache#48511

doc apache/doris-website#2196

**Introduce routine load job statistic system table:**
```
mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)
```

**There are some benefits to empower job with SQL query capability for
statistical information:**

- It can be used in conjunction with metrics add through
apache#48209 to roughly locate abnormal
jobs when Grafana alarms, and the following SQL can be used:

```
SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
```

- User can use the `select * from information_schema.routine_load_job`
instead of the `show routine load`. The advantage is that the `show
routine load` can only be searched by name, but SQL can be very flexible
in locating jobs
sollhui added a commit to sollhui/doris that referenced this pull request Mar 20, 2025
…apache#48963)

Part IV of apache#48511

doc apache/doris-website#2196

**Introduce routine load job statistic system table:**
```
mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)
```

**There are some benefits to empower job with SQL query capability for
statistical information:**

- It can be used in conjunction with metrics add through
apache#48209 to roughly locate abnormal
jobs when Grafana alarms, and the following SQL can be used:

```
SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
```

- User can use the `select * from information_schema.routine_load_job`
instead of the `show routine load`. The advantage is that the `show
routine load` can only be searched by name, but SQL can be very flexible
in locating jobs
dataroaring pushed a commit that referenced this pull request Mar 25, 2025
…#48963) (#49284)

pick #48963

Part IV of #48511

doc apache/doris-website#2196

**Introduce routine load job statistic system table:**
```
mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)
```

**There are some benefits to empower job with SQL query capability for
statistical information:**

- It can be used in conjunction with metrics add through
#48209 to roughly locate abnormal
jobs when Grafana alarms, and the following SQL can be used:

```
SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
```

- User can use the `select * from information_schema.routine_load_job`
instead of the `show routine load`. The advantage is that the `show
routine load` can only be searched by name, but SQL can be very flexible
in locating jobs

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
yiguolei pushed a commit that referenced this pull request May 21, 2025
…#48963) (#49286)

pick #48963

Part IV of #48511

doc apache/doris-website#2196

**Introduce routine load job statistic system table:**
```
mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)
```

**There are some benefits to empower job with SQL query capability for
statistical information:**

- It can be used in conjunction with metrics add through
#48209 to roughly locate abnormal
jobs when Grafana alarms, and the following SQL can be used:

```
SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
```

- User can use the `select * from information_schema.routine_load_job`
instead of the `show routine load`. The advantage is that the `show
routine load` can only be searched by name, but SQL can be very flexible
in locating jobs

### What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

### Release note

None

### Check List (For Author)

- Test <!-- At least one of them must be included. -->
    - [ ] Regression test
    - [ ] Unit Test
    - [ ] Manual test (add detailed scripts or steps below)
    - [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
        - [ ] Previous test can cover this change.
        - [ ] No code files have been changed.
        - [ ] Other reason <!-- Add your reason?  -->

- Behavior changed:
    - [ ] No.
    - [ ] Yes. <!-- Explain the behavior change -->

- Does this need documentation?
    - [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
apache/doris-website#1214 -->

### Check List (For Reviewer who merge this PR)

- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…apache#48963)

### What problem does this PR solve?

Part IV of apache#48511

doc apache/doris-website#2196

**Introduce routine load job statistic system table:**
```
mysql> show create table information_schema.routine_load_job\G
*************************** 1. row ***************************
       Table: routine_load_job
Create Table: CREATE TABLE `routine_load_job` (
  `JOB_ID` text NULL,
  `JOB_NAME` text NULL,
  `CREATE_TIME` text NULL,
  `PAUSE_TIME` text NULL,
  `END_TIME` text NULL,
  `DB_NAME` text NULL,
  `TABLE_NAME` text NULL,
  `STATE` text NULL,
  `CURRENT_TASK_NUM` text NULL,
  `JOB_PROPERTIES` text NULL,
  `DATA_SOURCE_PROPERTIES` text NULL,
  `CUSTOM_PROPERTIES` text NULL,
  `STATISTIC` text NULL,
  `PROGRESS` text NULL,
  `LAG` text NULL,
  `REASON_OF_STATE_CHANGED` text NULL,
  `ERROR_LOG_URLS` text NULL,
  `USER_NAME` text NULL,
  `CURRENT_ABORT_TASK_NUM` int NULL,
  `IS_ABNORMAL_PAUSE` boolean NULL
) ENGINE=SCHEMA;
1 row in set (0.00 sec)
```

**There are some benefits to empower job with SQL query capability for
statistical information:**

- It can be used in conjunction with metrics add through
apache#48209 to roughly locate abnormal
jobs when Grafana alarms, and the following SQL can be used:

```
SELECT JOB_NAME
FROM information_schema.routine_load_job_statistics
WHERE CURRENT_ABORT_TASK_NUM > 0
   OR IS_ABNORMAL_PAUSE = TRUE;
```

- User can use the `select * from information_schema.routine_load_job`
instead of the `show routine load`. The advantage is that the `show
routine load` can only be searched by name, but SQL can be very flexible
in locating jobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/2.1.11-merged dev/3.0.5-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants