Skip to content

Conversation

@seawinde
Copy link
Contributor

@seawinde seawinde commented Jan 21, 2026

What problem does this PR solve?

Code Flow

  • Command builds a lineage plan and registers an analyze hook (LineageInfoExtractor.registerAnalyzePlanHook) to keep the analyzed plan before rewrite pruning.
  • LineageUtils.buildLineageEvent(...) extracts lineage from the plan, builds LineageContext, and returns a LineageEvent.
  • LineageUtils.submitLineageEventIfNeeded(...) gates by plugin enablement + command match and skips VALUES‑only or internal schema targets.
  • LineageInfoExtractor.extractLineageInfo(plan):
    • Direct lineage: uses ExpressionLineageReplacer to shuttle outputs to base expressions.
    • Indirect lineage: traverses plan nodes to collect JOIN/FILTER/GROUP_BY/SORT/WINDOW/CONDITIONAL.

Design

  • Lineage is captured as a unified in‑memory model (LineageInfo) with:
    • Direct lineage (IDENTITY/TRANSFORMATION/AGGREGATION)
    • Indirect lineage per output + dataset‑level (JOIN/FILTER/GROUP_BY/SORT/WINDOW/CONDITIONAL)
    • Table lineage (source tables) and target table/columns
    • Query metadata in LineageContext (queryId, text, user, db, catalog, duration, external catalog properties)
  • Execution path is plugin‑agnostic; concrete plugins consume LineageInfo. This PR provides the generic framework and core flow only—no specific plugin implementation.

Example (JOIN)

  INSERT INTO tgt_join_customer
  SELECT c.c_name
  FROM orders o
  JOIN customer c ON o.o_custkey = c.c_custkey
  WHERE o.o_orderstatus = 'F';
  • Direct: c.c_name
  • Indirect: JOIN on o.o_custkey + c.c_custkey, FILTER on o.o_orderstatus
  • Table lineage: orders, customer

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

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

@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?

@seawinde
Copy link
Contributor Author

run buildall

1 similar comment
@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17628	4183	4063	4063
q2	2113	359	278	278
q3	10047	1267	690	690
q4	10198	831	309	309
q5	7508	2054	1822	1822
q6	192	175	139	139
q7	934	776	647	647
q8	9293	1372	1133	1133
q9	4942	4493	4562	4493
q10	6784	1803	1395	1395
q11	542	303	276	276
q12	680	732	593	593
q13	17768	3814	3092	3092
q14	287	288	275	275
q15	588	504	505	504
q16	672	677	611	611
q17	647	783	478	478
q18	6614	6344	6277	6277
q19	1126	992	621	621
q20	379	363	251	251
q21	3026	2502	2188	2188
q22	1061	1093	982	982
Total cold run time: 103029 ms
Total hot run time: 31117 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4131	4063	4044	4044
q2	320	383	326	326
q3	2085	2592	2219	2219
q4	1328	1724	1292	1292
q5	4042	3983	4003	3983
q6	207	165	132	132
q7	1854	1821	1646	1646
q8	2702	2440	2432	2432
q9	7366	7100	7111	7100
q10	2554	2773	2239	2239
q11	553	474	472	472
q12	727	748	629	629
q13	3535	4070	3473	3473
q14	346	358	282	282
q15	560	529	511	511
q16	649	694	629	629
q17	1112	1420	1370	1370
q18	8066	7763	7955	7763
q19	853	836	898	836
q20	1933	2027	1915	1915
q21	4792	4649	4192	4192
q22	1072	1055	948	948
Total cold run time: 50787 ms
Total hot run time: 48433 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173439 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 b3e56f83602b2071322450b5385b55ce095644aa, data reload: false

query5	4389	610	487	487
query6	325	225	210	210
query7	4209	454	255	255
query8	349	246	224	224
query9	8658	2870	2866	2866
query10	499	371	306	306
query11	15284	15087	14938	14938
query12	172	116	116	116
query13	1254	507	363	363
query14	6052	3058	2764	2764
query14_1	2674	2617	2647	2617
query15	197	187	170	170
query16	990	479	455	455
query17	1069	662	532	532
query18	2418	421	328	328
query19	217	204	183	183
query20	117	121	111	111
query21	209	132	114	114
query22	4177	4249	4087	4087
query23	16065	15542	15458	15458
query23_1	15359	15449	15516	15449
query24	7223	1517	1158	1158
query24_1	1133	1159	1146	1146
query25	499	417	385	385
query26	1238	274	149	149
query27	2770	450	276	276
query28	4536	2149	2135	2135
query29	729	505	420	420
query30	315	238	207	207
query31	807	631	573	573
query32	82	73	69	69
query33	518	327	313	313
query34	886	869	524	524
query35	720	749	666	666
query36	848	874	766	766
query37	134	95	87	87
query38	2710	2712	2620	2620
query39	772	761	725	725
query39_1	703	701	703	701
query40	226	132	119	119
query41	66	64	67	64
query42	104	98	103	98
query43	447	445	421	421
query44	1311	740	738	738
query45	181	183	185	183
query46	829	932	586	586
query47	1382	1474	1317	1317
query48	306	321	241	241
query49	624	425	337	337
query50	626	271	203	203
query51	3883	3773	3800	3773
query52	110	107	96	96
query53	287	325	271	271
query54	292	266	255	255
query55	81	77	74	74
query56	305	298	303	298
query57	1024	1038	896	896
query58	264	256	252	252
query59	2095	2205	1963	1963
query60	343	337	312	312
query61	148	176	151	151
query62	380	367	304	304
query63	289	263	268	263
query64	4848	1267	968	968
query65	3804	3723	3747	3723
query66	1466	411	310	310
query67	15400	15582	15439	15439
query68	2467	1096	760	760
query69	476	354	319	319
query70	988	941	819	819
query71	322	306	289	289
query72	5268	3240	3372	3240
query73	598	728	320	320
query74	8671	8702	8520	8520
query75	2745	2808	2472	2472
query76	2282	1047	635	635
query77	356	390	298	298
query78	9603	9746	9112	9112
query79	1112	846	585	585
query80	1260	580	514	514
query81	529	263	230	230
query82	1013	149	110	110
query83	365	251	243	243
query84	255	112	91	91
query85	894	473	428	428
query86	414	322	292	292
query87	2851	2831	2794	2794
query88	3475	2572	2548	2548
query89	393	342	319	319
query90	1918	169	166	166
query91	169	155	134	134
query92	71	74	65	65
query93	1040	884	542	542
query94	650	306	290	290
query95	595	400	371	371
query96	643	496	229	229
query97	2321	2355	2302	2302
query98	214	200	197	197
query99	604	607	499	499
Total cold run time: 246704 ms
Total hot run time: 173439 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.10	0.04	0.05
query3	0.26	0.09	0.08
query4	1.61	0.12	0.11
query5	0.28	0.26	0.26
query6	1.15	0.67	0.64
query7	0.03	0.03	0.02
query8	0.05	0.04	0.04
query9	0.57	0.50	0.49
query10	0.55	0.56	0.54
query11	0.15	0.10	0.10
query12	0.14	0.10	0.11
query13	0.61	0.59	0.58
query14	0.95	0.96	0.93
query15	0.79	0.75	0.78
query16	0.41	0.40	0.41
query17	1.05	1.06	1.04
query18	0.22	0.22	0.21
query19	1.91	1.91	1.87
query20	0.02	0.01	0.01
query21	15.47	0.28	0.13
query22	5.12	0.06	0.05
query23	15.83	0.27	0.10
query24	1.77	0.68	0.33
query25	0.12	0.06	0.09
query26	0.14	0.12	0.14
query27	0.06	0.08	0.05
query28	4.55	1.08	0.88
query29	12.53	3.86	3.13
query30	0.28	0.14	0.12
query31	2.82	0.64	0.39
query32	3.23	0.55	0.46
query33	3.01	2.98	3.07
query34	16.28	5.04	4.46
query35	4.43	4.44	4.47
query36	0.66	0.50	0.49
query37	0.11	0.06	0.07
query38	0.08	0.04	0.04
query39	0.05	0.03	0.04
query40	0.17	0.14	0.14
query41	0.10	0.03	0.04
query42	0.04	0.02	0.02
query43	0.05	0.04	0.04
Total cold run time: 97.8 s
Total hot run time: 26.8 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 66.43% (277/417) 🎉
Increment coverage report
Complete coverage report

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17614	4859	4558	4558
q2	2026	300	198	198
q3	10245	1272	707	707
q4	10224	820	305	305
q5	7523	2071	1799	1799
q6	192	172	138	138
q7	860	709	581	581
q8	9259	1358	1070	1070
q9	4908	4573	4677	4573
q10	6807	1663	1262	1262
q11	505	290	274	274
q12	351	367	215	215
q13	17800	3804	3111	3111
q14	237	255	223	223
q15	597	528	513	513
q16	635	641	582	582
q17	645	741	571	571
q18	6622	6337	6584	6337
q19	1517	1086	675	675
q20	450	451	243	243
q21	2928	2155	2110	2110
q22	1147	1104	1030	1030
Total cold run time: 103092 ms
Total hot run time: 31075 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5042	4949	4950	4949
q2	323	411	347	347
q3	2438	2867	2459	2459
q4	1474	1878	1432	1432
q5	4738	4267	4349	4267
q6	218	177	133	133
q7	2082	1979	1848	1848
q8	2549	2458	2393	2393
q9	7119	7305	7236	7236
q10	2405	2741	2559	2559
q11	556	482	450	450
q12	707	749	655	655
q13	3709	3991	3078	3078
q14	264	287	261	261
q15	542	511	513	511
q16	615	653	617	617
q17	1102	1220	1259	1220
q18	7436	7255	7253	7253
q19	839	763	751	751
q20	1885	1957	1841	1841
q21	4497	4222	4106	4106
q22	1054	1044	987	987
Total cold run time: 51594 ms
Total hot run time: 49353 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172742 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 022d0b67b8cf251dd672d573e2e50be2fcc5bb30, data reload: false

query5	4406	636	496	496
query6	329	217	207	207
query7	4215	459	268	268
query8	334	247	256	247
query9	8683	2875	2859	2859
query10	465	318	285	285
query11	15119	15274	14919	14919
query12	185	117	118	117
query13	1256	459	369	369
query14	6371	3021	2774	2774
query14_1	2682	2639	2642	2639
query15	201	193	175	175
query16	973	481	468	468
query17	1100	683	572	572
query18	2538	430	332	332
query19	198	179	150	150
query20	124	118	119	118
query21	212	143	122	122
query22	3950	4196	4045	4045
query23	15879	15583	15299	15299
query23_1	15429	15542	15474	15474
query24	7137	1556	1164	1164
query24_1	1192	1174	1201	1174
query25	536	461	419	419
query26	1232	265	153	153
query27	2779	440	279	279
query28	4547	2154	2164	2154
query29	783	550	454	454
query30	315	242	206	206
query31	773	630	577	577
query32	85	84	82	82
query33	537	363	324	324
query34	894	874	531	531
query35	753	760	698	698
query36	868	864	850	850
query37	141	105	92	92
query38	2697	2653	2615	2615
query39	773	755	737	737
query39_1	708	705	709	705
query40	229	141	124	124
query41	76	71	69	69
query42	101	95	95	95
query43	439	432	418	418
query44	1349	755	759	755
query45	191	194	178	178
query46	841	991	568	568
query47	1378	1518	1410	1410
query48	313	313	236	236
query49	616	446	341	341
query50	678	274	203	203
query51	3822	3757	3733	3733
query52	92	94	81	81
query53	206	216	171	171
query54	276	266	245	245
query55	82	80	72	72
query56	297	303	288	288
query57	1029	1015	986	986
query58	272	261	257	257
query59	1979	2099	1958	1958
query60	328	334	313	313
query61	149	144	140	140
query62	387	345	307	307
query63	190	167	162	162
query64	4821	1183	847	847
query65	3839	3721	3757	3721
query66	1438	432	311	311
query67	15528	15577	15462	15462
query68	2406	1054	729	729
query69	403	307	290	290
query70	969	965	893	893
query71	295	283	274	274
query72	5361	3108	3290	3108
query73	595	711	313	313
query74	8698	8774	8500	8500
query75	2299	2325	1930	1930
query76	2281	1055	657	657
query77	347	379	310	310
query78	9684	9962	9141	9141
query79	1055	910	582	582
query80	1295	522	441	441
query81	544	262	235	235
query82	1016	149	119	119
query83	318	260	243	243
query84	253	126	97	97
query85	893	469	413	413
query86	410	329	283	283
query87	2851	2845	2730	2730
query88	3500	2597	2562	2562
query89	300	252	241	241
query90	1985	174	164	164
query91	161	157	142	142
query92	77	73	73	73
query93	1083	1017	641	641
query94	616	314	286	286
query95	587	337	377	337
query96	629	505	231	231
query97	2356	2351	2318	2318
query98	218	202	201	201
query99	614	568	520	520
Total cold run time: 245260 ms
Total hot run time: 172742 ms

if (!LineageUtils.isSameParsedCommand(executor, currentHandleClass)) {
return;
}
if (!isLineagePluginConfigured()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we should check this one at first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have fixed

&& FeConstants.INTERNAL_DB_NAME.equalsIgnoreCase(dbName);
}

private static Map<String, Map<String, String>> collectExternalCatalogProperties(LineageInfo lineageInfo) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why need catalog properties?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because some lineage plugin need external catalog property such as uri and so on

package org.apache.doris.nereids.lineage;

/**
* Lineage event wrapping lineage info for plugins.
Copy link
Contributor

Choose a reason for hiding this comment

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

why need this wrapper?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lineage info is enough, remove the lineage event

lineagePlugins = Collections.emptyList();
}
if (LOG.isDebugEnabled()) {
LOG.debug("update lineage plugins. num: {}", lineagePlugins.size());
Copy link
Contributor

Choose a reason for hiding this comment

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

should print names here

for (Plugin plugin : lineagePlugins) {
try {
AbstractLineagePlugin lineagePlugin = (AbstractLineagePlugin) plugin;
if (!lineagePlugin.eventFilter()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

eventFilter do not need Event as parameter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this judge by the config parm in fe.conf, which can be get by Config.xxx,so not need parameter now

Comment on lines 136 to 140
LineageInfo lineageInfo = lineageEvent.getLineageInfo();
if (lineageInfo == null) {
LOG.warn("lineage info is null for event {}, skip", getQueryId(lineageEvent));
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

move it as the first step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

have fixed

return;
}
CascadesContext cascadesContext = getCascadesContext();
getStatementContext().getPlannerHooks().forEach(hook -> hook.beforeAnalyze(this));
Copy link
Contributor

Choose a reason for hiding this comment

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

if insert values does not generate lineage event, why add hoot here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17621	5208	5087	5087
q2	2082	337	191	191
q3	10154	1315	742	742
q4	10198	775	304	304
q5	7524	2170	1863	1863
q6	194	180	145	145
q7	902	747	603	603
q8	9269	1371	1150	1150
q9	5267	4910	4929	4910
q10	6788	1963	1551	1551
q11	528	292	271	271
q12	336	375	216	216
q13	17757	4066	3243	3243
q14	233	242	228	228
q15	904	828	807	807
q16	653	694	634	634
q17	648	798	473	473
q18	6712	6438	7391	6438
q19	1311	1054	645	645
q20	418	400	238	238
q21	3045	2349	2118	2118
q22	1115	1075	1000	1000
Total cold run time: 103659 ms
Total hot run time: 32857 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5653	5536	5613	5536
q2	262	335	244	244
q3	2352	2836	2546	2546
q4	1434	1826	1486	1486
q5	4813	4574	4739	4574
q6	227	186	138	138
q7	2134	1906	1742	1742
q8	2628	2368	2356	2356
q9	7450	7618	7623	7618
q10	2780	3006	2592	2592
q11	539	463	455	455
q12	676	705	583	583
q13	3846	4431	3248	3248
q14	267	297	263	263
q15	843	794	793	793
q16	633	682	645	645
q17	1085	1277	1322	1277
q18	7641	7422	7378	7378
q19	876	793	793	793
q20	1972	2107	1873	1873
q21	4467	4258	4078	4078
q22	1033	1016	974	974
Total cold run time: 53611 ms
Total hot run time: 51192 ms

@doris-robot
Copy link

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

query1	0.06	0.04	0.05
query2	0.11	0.05	0.05
query3	0.27	0.09	0.09
query4	1.61	0.11	0.10
query5	0.28	0.25	0.25
query6	1.16	0.69	0.68
query7	0.02	0.02	0.02
query8	0.05	0.04	0.03
query9	0.55	0.50	0.50
query10	0.54	0.53	0.55
query11	0.13	0.09	0.10
query12	0.13	0.11	0.10
query13	0.63	0.61	0.62
query14	1.08	1.06	1.06
query15	0.88	0.87	0.88
query16	0.41	0.39	0.40
query17	1.13	1.14	1.14
query18	0.23	0.21	0.21
query19	2.00	1.91	2.01
query20	0.02	0.01	0.02
query21	15.43	0.27	0.14
query22	5.15	0.05	0.04
query23	15.96	0.28	0.11
query24	1.08	0.32	0.25
query25	0.06	0.06	0.09
query26	0.15	0.13	0.13
query27	0.07	0.07	0.08
query28	3.35	1.15	0.96
query29	12.54	3.91	3.16
query30	0.28	0.14	0.11
query31	2.82	0.65	0.40
query32	3.25	0.59	0.48
query33	3.16	3.20	3.36
query34	16.71	5.41	4.76
query35	4.81	4.81	4.78
query36	0.68	0.51	0.49
query37	0.11	0.07	0.07
query38	0.08	0.04	0.04
query39	0.04	0.04	0.03
query40	0.18	0.16	0.17
query41	0.09	0.03	0.03
query42	0.05	0.03	0.03
query43	0.04	0.04	0.04
Total cold run time: 97.38 s
Total hot run time: 28.22 s

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 7.17% (44/614) 🎉
Increment coverage report
Complete coverage report

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17614	5270	5090	5090
q2	2018	303	195	195
q3	10211	1297	751	751
q4	10216	840	315	315
q5	7538	2124	1855	1855
q6	197	176	146	146
q7	887	731	590	590
q8	9257	1321	1027	1027
q9	5168	4853	4775	4775
q10	6797	1933	1552	1552
q11	523	300	270	270
q12	332	372	227	227
q13	17772	4049	3243	3243
q14	231	237	214	214
q15	882	805	815	805
q16	668	665	610	610
q17	633	769	499	499
q18	6925	6550	6443	6443
q19	1239	996	634	634
q20	395	337	235	235
q21	2506	1865	1928	1865
q22	1008	997	955	955
Total cold run time: 103017 ms
Total hot run time: 32296 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5359	5339	5352	5339
q2	259	330	250	250
q3	2164	2664	2235	2235
q4	1341	1735	1297	1297
q5	4271	4168	4212	4168
q6	208	181	140	140
q7	2309	2090	1855	1855
q8	2537	2570	2460	2460
q9	7582	7589	7448	7448
q10	2804	3051	2615	2615
q11	549	479	476	476
q12	699	738	642	642
q13	4039	4467	3797	3797
q14	302	311	288	288
q15	884	858	849	849
q16	686	746	746	746
q17	1179	1314	1298	1298
q18	8035	7822	8243	7822
q19	878	870	856	856
q20	2078	2410	1988	1988
q21	4842	4478	4211	4211
q22	1083	1040	985	985
Total cold run time: 54088 ms
Total hot run time: 51765 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.05	0.05
query3	0.25	0.09	0.09
query4	1.61	0.11	0.12
query5	0.27	0.25	0.25
query6	1.18	0.66	0.67
query7	0.03	0.02	0.03
query8	0.06	0.03	0.04
query9	0.57	0.51	0.49
query10	0.55	0.54	0.54
query11	0.14	0.09	0.10
query12	0.13	0.10	0.10
query13	0.62	0.60	0.60
query14	1.07	1.07	1.06
query15	0.87	0.88	0.88
query16	0.38	0.39	0.40
query17	1.09	1.14	1.13
query18	0.22	0.20	0.20
query19	2.12	2.02	2.05
query20	0.02	0.02	0.02
query21	15.40	0.27	0.14
query22	5.23	0.06	0.05
query23	16.10	0.27	0.11
query24	1.53	0.77	0.25
query25	0.10	0.08	0.07
query26	0.13	0.12	0.13
query27	0.07	0.06	0.05
query28	4.11	1.14	0.97
query29	12.60	3.90	3.15
query30	0.28	0.14	0.12
query31	2.82	0.63	0.40
query32	3.24	0.61	0.49
query33	3.26	3.24	3.31
query34	16.26	5.39	4.74
query35	4.83	4.79	4.81
query36	0.66	0.49	0.48
query37	0.11	0.08	0.07
query38	0.07	0.05	0.04
query39	0.04	0.03	0.03
query40	0.18	0.17	0.16
query41	0.08	0.04	0.03
query42	0.04	0.03	0.03
query43	0.05	0.04	0.03
Total cold run time: 98.53 s
Total hot run time: 28.34 s

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17638	5254	5095	5095
q2	2090	310	197	197
q3	10147	1321	758	758
q4	10214	847	310	310
q5	7571	2140	1946	1946
q6	195	181	150	150
q7	885	741	600	600
q8	9283	1418	1096	1096
q9	5193	4904	4851	4851
q10	6784	1973	1571	1571
q11	535	284	282	282
q12	331	378	233	233
q13	17767	4077	3209	3209
q14	237	234	228	228
q15	889	822	820	820
q16	681	700	635	635
q17	617	823	444	444
q18	6879	6487	7585	6487
q19	1292	1053	655	655
q20	410	350	251	251
q21	2990	2239	2097	2097
q22	1177	1055	1011	1011
Total cold run time: 103805 ms
Total hot run time: 32926 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5704	5518	5541	5518
q2	248	363	257	257
q3	2368	2873	2519	2519
q4	1516	1911	1519	1519
q5	4752	4656	4512	4512
q6	224	186	139	139
q7	2051	2031	1941	1941
q8	2604	2313	2354	2313
q9	7544	7588	7449	7449
q10	2933	3121	2551	2551
q11	541	490	478	478
q12	709	796	649	649
q13	3815	4189	3237	3237
q14	266	282	274	274
q15	836	804	788	788
q16	636	682	642	642
q17	1062	1201	1203	1201
q18	7575	7436	7401	7401
q19	854	785	813	785
q20	1989	2055	1886	1886
q21	4534	4275	4188	4188
q22	1061	1013	970	970
Total cold run time: 53822 ms
Total hot run time: 51217 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.04	0.05
query3	0.25	0.08	0.08
query4	1.63	0.11	0.12
query5	0.27	0.25	0.26
query6	1.17	0.67	0.67
query7	0.04	0.02	0.02
query8	0.04	0.04	0.04
query9	0.57	0.50	0.48
query10	0.55	0.57	0.54
query11	0.15	0.10	0.10
query12	0.14	0.10	0.10
query13	0.62	0.61	0.63
query14	1.07	1.05	1.05
query15	0.87	0.87	0.86
query16	0.39	0.39	0.40
query17	1.09	1.08	1.15
query18	0.23	0.21	0.20
query19	2.07	1.90	1.99
query20	0.02	0.01	0.01
query21	15.44	0.26	0.14
query22	5.32	0.05	0.05
query23	15.90	0.28	0.10
query24	1.22	0.34	0.62
query25	0.06	0.09	0.06
query26	0.14	0.14	0.13
query27	0.06	0.06	0.06
query28	3.91	1.15	0.97
query29	12.54	3.94	3.17
query30	0.28	0.13	0.14
query31	2.80	0.64	0.40
query32	3.25	0.60	0.50
query33	3.18	3.30	3.28
query34	16.02	5.40	4.68
query35	4.84	4.78	4.84
query36	0.65	0.51	0.49
query37	0.11	0.08	0.07
query38	0.07	0.04	0.03
query39	0.04	0.03	0.03
query40	0.18	0.17	0.15
query41	0.08	0.03	0.04
query42	0.04	0.02	0.02
query43	0.06	0.04	0.04
Total cold run time: 97.52 s
Total hot run time: 28.23 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 53.87% (313/581) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 7.57% (44/581) 🎉
Increment coverage report
Complete coverage report

1 similar comment
@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 7.57% (44/581) 🎉
Increment coverage report
Complete coverage report

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17648	5270	5034	5034
q2	2068	307	203	203
q3	10194	1290	716	716
q4	10206	886	325	325
q5	7502	2099	1885	1885
q6	192	182	147	147
q7	902	717	590	590
q8	9250	1372	1126	1126
q9	5217	4818	4745	4745
q10	6811	1935	1576	1576
q11	506	299	268	268
q12	340	377	216	216
q13	17796	4008	3229	3229
q14	234	235	213	213
q15	892	833	808	808
q16	687	670	611	611
q17	647	819	451	451
q18	7077	6429	6582	6429
q19	1256	985	620	620
q20	390	349	226	226
q21	2598	1957	2080	1957
q22	351	309	264	264
Total cold run time: 102764 ms
Total hot run time: 31639 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5302	5303	5292	5292
q2	252	349	246	246
q3	2158	2686	2237	2237
q4	1333	1753	1341	1341
q5	4296	4199	4163	4163
q6	220	184	139	139
q7	2124	2166	1912	1912
q8	2650	2446	2446	2446
q9	7502	7479	7460	7460
q10	2888	3051	2623	2623
q11	558	469	456	456
q12	735	823	640	640
q13	3947	4561	3399	3399
q14	306	322	301	301
q15	874	823	798	798
q16	694	795	814	795
q17	1164	1342	1333	1333
q18	8303	7831	7908	7831
q19	855	865	911	865
q20	2087	2146	2080	2080
q21	4614	4228	4143	4143
q22	588	532	521	521
Total cold run time: 53450 ms
Total hot run time: 51021 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.04
query2	0.10	0.04	0.04
query3	0.26	0.09	0.09
query4	1.61	0.11	0.11
query5	0.28	0.25	0.24
query6	1.17	0.68	0.67
query7	0.04	0.02	0.03
query8	0.05	0.04	0.04
query9	0.56	0.50	0.49
query10	0.55	0.53	0.54
query11	0.15	0.09	0.09
query12	0.14	0.10	0.10
query13	0.63	0.62	0.61
query14	1.07	1.05	1.05
query15	0.87	0.88	0.89
query16	0.41	0.38	0.38
query17	1.14	1.12	1.15
query18	0.23	0.21	0.20
query19	2.14	2.03	2.05
query20	0.02	0.01	0.02
query21	15.45	0.27	0.14
query22	5.24	0.06	0.05
query23	15.95	0.28	0.10
query24	1.29	0.60	0.60
query25	0.11	0.06	0.06
query26	0.14	0.14	0.14
query27	0.07	0.06	0.06
query28	4.69	1.14	0.98
query29	12.61	3.95	3.18
query30	0.27	0.14	0.12
query31	2.82	0.63	0.41
query32	3.24	0.59	0.49
query33	3.18	3.27	3.35
query34	16.21	5.36	4.74
query35	4.82	4.80	4.79
query36	0.64	0.50	0.48
query37	0.10	0.06	0.06
query38	0.07	0.04	0.03
query39	0.05	0.03	0.03
query40	0.19	0.17	0.16
query41	0.09	0.04	0.03
query42	0.04	0.02	0.02
query43	0.05	0.03	0.03
Total cold run time: 98.8 s
Total hot run time: 28.71 s

@hello-stephen
Copy link
Contributor

FE UT Coverage Report

Increment line coverage 53.08% (319/601) 🎉
Increment coverage report
Complete coverage report

@hello-stephen
Copy link
Contributor

FE Regression Coverage Report

Increment line coverage 7.99% (48/601) 🎉
Increment coverage report
Complete coverage report

@seawinde
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17593	5222	5066	5066
q2	2019	306	188	188
q3	10251	1313	739	739
q4	10201	801	318	318
q5	7536	2167	1891	1891
q6	204	187	153	153
q7	894	730	612	612
q8	9258	1327	1152	1152
q9	5190	4874	4762	4762
q10	6832	1955	1582	1582
q11	524	314	295	295
q12	352	386	224	224
q13	17771	3995	3181	3181
q14	235	246	218	218
q15	919	815	820	815
q16	681	675	611	611
q17	648	803	491	491
q18	6668	6577	6473	6473
q19	1236	974	624	624
q20	394	344	230	230
q21	2638	2073	1901	1901
q22	352	320	272	272
Total cold run time: 102396 ms
Total hot run time: 31798 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5338	5322	5317	5317
q2	263	357	271	271
q3	2165	2674	2263	2263
q4	1338	1737	1296	1296
q5	4284	4155	4256	4155
q6	215	186	143	143
q7	2082	2152	1833	1833
q8	2620	2375	2462	2375
q9	7513	7553	7515	7515
q10	2908	3084	2594	2594
q11	551	484	468	468
q12	689	842	647	647
q13	3967	4726	3499	3499
q14	309	325	297	297
q15	892	837	846	837
q16	658	748	694	694
q17	1157	1444	1396	1396
q18	7967	8083	8156	8083
q19	921	896	889	889
q20	2086	2174	2019	2019
q21	4879	4181	4165	4165
q22	566	549	520	520
Total cold run time: 53368 ms
Total hot run time: 51276 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.10	0.04	0.05
query3	0.26	0.08	0.09
query4	1.60	0.11	0.12
query5	0.26	0.25	0.25
query6	1.19	0.68	0.67
query7	0.03	0.03	0.02
query8	0.06	0.04	0.04
query9	0.56	0.50	0.48
query10	0.55	0.55	0.54
query11	0.15	0.10	0.09
query12	0.14	0.10	0.11
query13	0.63	0.62	0.61
query14	1.06	1.07	1.05
query15	0.89	0.86	0.87
query16	0.40	0.39	0.39
query17	1.13	1.15	1.15
query18	0.23	0.21	0.21
query19	2.08	2.01	2.07
query20	0.02	0.02	0.02
query21	15.41	0.28	0.14
query22	5.36	0.05	0.05
query23	15.70	0.28	0.11
query24	1.65	0.27	0.36
query25	0.08	0.06	0.06
query26	0.14	0.13	0.14
query27	0.09	0.06	0.04
query28	3.37	1.17	0.96
query29	12.53	3.87	3.13
query30	0.28	0.14	0.11
query31	2.82	0.64	0.40
query32	3.24	0.60	0.49
query33	3.26	3.22	3.25
query34	15.99	5.38	4.70
query35	4.78	4.73	4.79
query36	0.64	0.50	0.49
query37	0.11	0.07	0.07
query38	0.07	0.04	0.04
query39	0.04	0.02	0.03
query40	0.19	0.17	0.15
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.05	0.04	0.04
Total cold run time: 97.33 s
Total hot run time: 28.18 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants