Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix](inveted index) fix variant index #36163

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

csun5285
Copy link
Contributor

@csun5285 csun5285 commented Jun 12, 2024

Proposed changes

Some columns from the variant do not support indexing, but they are listed in TabletIndex. If such a column can obtain the TabletIndex, the corresponding index file will not be found in copying files, creating snapshots, and uploading files to S3.

When the variant column is created, it has a TabletIndex. The extracted column from the variant will inherit this TabletIndex.

If the column extracted from the variant does not support index, it should not get TabletIndex.

Issue Number: close #xxx

@doris-robot
Copy link

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

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@csun5285 csun5285 changed the title [fix](varaint) fix variant tablet index [fix](varaint) fix variant index Jun 12, 2024
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@csun5285
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.41% (8986/24680)
Line Coverage: 27.96% (73482/262821)
Region Coverage: 27.38% (38106/139179)
Branch Coverage: 24.01% (19348/80588)
Coverage Report: http://coverage.selectdb-in.cc/coverage/04ae86fb49e34275b413674e7e90988d0f27290c_04ae86fb49e34275b413674e7e90988d0f27290c/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17633	4757	4665	4665
q2	2024	191	189	189
q3	10478	1199	1294	1199
q4	10200	875	851	851
q5	7485	2862	2795	2795
q6	240	136	133	133
q7	1031	611	590	590
q8	9207	2256	2284	2256
q9	8930	6909	6915	6909
q10	9091	3875	3843	3843
q11	450	233	237	233
q12	508	235	225	225
q13	17775	2975	3009	2975
q14	278	222	220	220
q15	533	471	471	471
q16	518	381	388	381
q17	1017	773	762	762
q18	8131	7633	7303	7303
q19	7289	1742	1675	1675
q20	683	318	320	318
q21	5234	4248	4023	4023
q22	398	330	331	330
Total cold run time: 119133 ms
Total hot run time: 42346 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4804	4686	4844	4686
q2	405	284	291	284
q3	3371	3031	3117	3031
q4	2097	1721	1692	1692
q5	5591	5701	5705	5701
q6	247	133	127	127
q7	2350	1855	1906	1855
q8	3523	3744	3682	3682
q9	8985	8791	8689	8689
q10	4220	3965	3961	3961
q11	610	502	500	500
q12	855	669	637	637
q13	16074	3198	3136	3136
q14	299	277	267	267
q15	541	502	488	488
q16	517	439	443	439
q17	1985	1618	1610	1610
q18	8211	7854	7977	7854
q19	2012	1710	1744	1710
q20	3124	1850	1868	1850
q21	5361	4942	5127	4942
q22	636	558	532	532
Total cold run time: 75818 ms
Total hot run time: 57673 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172357 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 04ae86fb49e34275b413674e7e90988d0f27290c, data reload: false

query1	928	371	382	371
query2	6385	2572	2300	2300
query3	6637	211	211	211
query4	19542	17216	17233	17216
query5	3717	477	457	457
query6	237	168	168	168
query7	4589	304	294	294
query8	318	295	282	282
query9	8465	2355	2325	2325
query10	578	290	274	274
query11	10612	10005	10116	10005
query12	116	90	82	82
query13	1639	373	370	370
query14	9075	7855	7672	7672
query15	221	193	187	187
query16	7786	276	273	273
query17	1878	537	518	518
query18	1950	286	278	278
query19	193	152	167	152
query20	88	82	83	82
query21	206	128	125	125
query22	4209	4148	4044	4044
query23	33658	33767	33607	33607
query24	10831	2970	2872	2872
query25	589	413	360	360
query26	717	160	170	160
query27	2327	329	331	329
query28	5638	2093	2103	2093
query29	891	659	621	621
query30	275	151	160	151
query31	941	766	754	754
query32	94	57	57	57
query33	650	286	285	285
query34	906	487	477	477
query35	755	643	669	643
query36	1125	938	955	938
query37	146	73	74	73
query38	2917	2840	2837	2837
query39	893	849	846	846
query40	216	133	125	125
query41	57	51	52	51
query42	113	106	107	106
query43	629	580	568	568
query44	1098	748	746	746
query45	204	162	167	162
query46	1075	716	693	693
query47	1858	1787	1756	1756
query48	380	303	297	297
query49	886	405	415	405
query50	767	383	391	383
query51	6857	6702	6684	6684
query52	96	96	89	89
query53	357	282	291	282
query54	876	445	457	445
query55	78	82	75	75
query56	292	276	279	276
query57	1109	1046	1047	1046
query58	258	241	253	241
query59	3523	3448	3346	3346
query60	309	294	295	294
query61	111	106	110	106
query62	616	440	462	440
query63	321	290	292	290
query64	8950	2343	1830	1830
query65	3196	3201	3132	3132
query66	763	335	332	332
query67	15334	14924	14915	14915
query68	6949	552	553	552
query69	643	462	407	407
query70	1236	1039	1077	1039
query71	508	277	286	277
query72	7377	2925	2797	2797
query73	800	328	325	325
query74	5844	5768	5768	5768
query75	4177	2721	2676	2676
query76	3948	905	931	905
query77	655	302	290	290
query78	10544	9721	9959	9721
query79	8986	522	522	522
query80	1676	483	471	471
query81	517	287	216	216
query82	862	114	102	102
query83	204	165	164	164
query84	266	85	86	85
query85	1292	286	264	264
query86	459	328	306	306
query87	3356	3145	3088	3088
query88	4532	2461	2429	2429
query89	540	377	370	370
query90	1844	191	193	191
query91	131	130	99	99
query92	66	53	52	52
query93	6891	508	507	507
query94	1085	192	188	188
query95	411	310	318	310
query96	600	284	275	275
query97	3175	3019	3033	3019
query98	218	199	196	196
query99	1239	842	843	842
Total cold run time: 284082 ms
Total hot run time: 172357 ms

@doris-robot
Copy link

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

query1	0.05	0.03	0.03
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.67	0.10	0.10
query5	0.52	0.49	0.50
query6	1.12	0.73	0.72
query7	0.02	0.01	0.02
query8	0.05	0.04	0.04
query9	0.54	0.48	0.49
query10	0.53	0.55	0.54
query11	0.15	0.11	0.12
query12	0.15	0.12	0.12
query13	0.60	0.60	0.60
query14	0.76	0.78	0.77
query15	0.84	0.83	0.82
query16	0.36	0.36	0.37
query17	1.06	1.04	0.98
query18	0.25	0.26	0.25
query19	1.80	1.80	1.80
query20	0.01	0.01	0.01
query21	15.44	0.64	0.64
query22	4.15	7.30	1.65
query23	18.23	1.36	1.35
query24	2.11	0.22	0.23
query25	0.15	0.08	0.08
query26	0.28	0.17	0.17
query27	0.08	0.07	0.08
query28	13.26	1.01	1.00
query29	12.67	3.25	3.26
query30	0.25	0.06	0.06
query31	2.86	0.39	0.39
query32	3.28	0.47	0.46
query33	2.91	2.92	2.93
query34	17.22	4.42	4.41
query35	4.48	4.48	4.49
query36	0.65	0.48	0.51
query37	0.19	0.16	0.15
query38	0.15	0.14	0.15
query39	0.05	0.03	0.04
query40	0.17	0.14	0.14
query41	0.09	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.56 s
Total hot run time: 30.55 s

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@csun5285
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.41% (8986/24681)
Line Coverage: 27.96% (73494/262871)
Region Coverage: 27.40% (38111/139103)
Branch Coverage: 24.02% (19359/80584)
Coverage Report: http://coverage.selectdb-in.cc/coverage/523aeaf41e6b67bcb387f261b48cac519bfbcb25_523aeaf41e6b67bcb387f261b48cac519bfbcb25/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17638	4286	4248	4248
q2	2020	191	195	191
q3	10465	1143	1094	1094
q4	10199	783	790	783
q5	7472	2646	2620	2620
q6	222	138	133	133
q7	945	602	595	595
q8	9216	2066	2036	2036
q9	8834	6475	6441	6441
q10	9064	3739	3697	3697
q11	478	236	239	236
q12	463	230	225	225
q13	17760	3031	2983	2983
q14	260	225	221	221
q15	509	479	480	479
q16	528	370	377	370
q17	954	661	709	661
q18	7952	7398	7312	7312
q19	1877	1363	1546	1363
q20	648	305	327	305
q21	5005	3111	4063	3111
q22	393	329	337	329
Total cold run time: 112902 ms
Total hot run time: 39433 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4313	4173	4201	4173
q2	358	260	250	250
q3	2978	2685	2689	2685
q4	2034	1775	1700	1700
q5	5513	5615	5522	5522
q6	222	130	125	125
q7	2188	1825	1790	1790
q8	3261	3472	3387	3387
q9	8678	8620	8639	8620
q10	4185	3821	3892	3821
q11	623	487	489	487
q12	764	631	604	604
q13	15883	3177	3209	3177
q14	309	269	301	269
q15	521	486	486	486
q16	503	429	427	427
q17	1794	1486	1498	1486
q18	8115	7852	7943	7852
q19	5467	1622	1488	1488
q20	2147	1879	1828	1828
q21	5143	4804	4943	4804
q22	647	538	554	538
Total cold run time: 75646 ms
Total hot run time: 55519 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173001 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 523aeaf41e6b67bcb387f261b48cac519bfbcb25, data reload: false

query1	927	376	375	375
query2	6468	2355	2315	2315
query3	6758	217	213	213
query4	18997	17304	17197	17197
query5	3581	478	467	467
query6	240	154	158	154
query7	4582	294	296	294
query8	325	288	291	288
query9	8582	2383	2360	2360
query10	572	319	277	277
query11	10352	9997	9952	9952
query12	114	83	84	83
query13	1645	386	375	375
query14	9461	6884	7477	6884
query15	224	184	187	184
query16	7681	264	263	263
query17	1901	543	505	505
query18	1838	269	266	266
query19	189	151	149	149
query20	92	82	85	82
query21	208	125	129	125
query22	4495	4022	3999	3999
query23	33460	33570	33433	33433
query24	9685	2883	2927	2883
query25	587	374	381	374
query26	712	154	154	154
query27	2289	349	334	334
query28	5851	2104	2100	2100
query29	877	660	618	618
query30	242	157	161	157
query31	971	771	745	745
query32	97	59	58	58
query33	703	311	277	277
query34	904	487	485	485
query35	727	656	642	642
query36	1114	970	962	962
query37	144	74	71	71
query38	2984	2857	2851	2851
query39	881	840	821	821
query40	208	123	125	123
query41	56	52	46	46
query42	113	101	104	101
query43	586	544	549	544
query44	1093	731	776	731
query45	191	169	165	165
query46	1053	705	707	705
query47	1864	1762	1764	1762
query48	387	306	290	290
query49	819	398	403	398
query50	764	380	396	380
query51	6866	6742	6667	6667
query52	100	88	90	88
query53	361	283	304	283
query54	843	445	448	445
query55	75	72	73	72
query56	274	254	257	254
query57	1102	1072	1052	1052
query58	242	233	241	233
query59	3293	3100	3106	3100
query60	292	277	282	277
query61	111	118	106	106
query62	578	447	444	444
query63	325	294	289	289
query64	8532	2213	1726	1726
query65	3239	3077	3082	3077
query66	737	323	326	323
query67	15494	14902	14902	14902
query68	4590	547	544	544
query69	531	393	374	374
query70	1198	1183	1166	1166
query71	409	280	271	271
query72	7096	5182	5404	5182
query73	747	333	337	333
query74	5903	5441	5448	5441
query75	3342	2647	2672	2647
query76	2380	934	882	882
query77	603	300	295	295
query78	10310	9792	9741	9741
query79	2155	525	503	503
query80	929	459	467	459
query81	574	213	218	213
query82	810	105	99	99
query83	258	165	170	165
query84	238	81	93	81
query85	1647	269	274	269
query86	477	308	319	308
query87	3301	3116	3124	3116
query88	4409	2481	2486	2481
query89	471	380	381	380
query90	1730	198	203	198
query91	140	110	182	110
query92	58	48	48	48
query93	2523	506	507	506
query94	1164	192	192	192
query95	408	318	331	318
query96	596	272	269	269
query97	3260	3040	3044	3040
query98	220	197	188	188
query99	1245	827	829	827
Total cold run time: 264780 ms
Total hot run time: 173001 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.04
query3	0.23	0.05	0.05
query4	1.67	0.06	0.07
query5	0.50	0.48	0.48
query6	1.13	0.73	0.71
query7	0.02	0.01	0.01
query8	0.04	0.04	0.04
query9	0.55	0.50	0.49
query10	0.54	0.57	0.53
query11	0.15	0.11	0.11
query12	0.14	0.12	0.12
query13	0.59	0.59	0.58
query14	0.78	0.78	0.80
query15	0.84	0.80	0.81
query16	0.38	0.37	0.36
query17	1.04	1.04	1.04
query18	0.23	0.22	0.24
query19	1.82	1.77	1.72
query20	0.02	0.01	0.01
query21	15.40	0.64	0.64
query22	4.09	7.04	2.19
query23	18.32	1.38	1.32
query24	2.16	0.22	0.22
query25	0.17	0.09	0.09
query26	0.26	0.18	0.18
query27	0.07	0.09	0.08
query28	13.25	1.02	0.99
query29	12.58	3.27	3.23
query30	0.26	0.06	0.06
query31	2.86	0.39	0.39
query32	3.26	0.47	0.47
query33	2.90	2.89	2.90
query34	16.92	4.41	4.36
query35	4.49	4.49	4.47
query36	0.66	0.46	0.46
query37	0.18	0.15	0.16
query38	0.16	0.15	0.15
query39	0.05	0.04	0.03
query40	0.17	0.13	0.14
query41	0.10	0.05	0.04
query42	0.05	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.19 s
Total hot run time: 30.82 s

@csun5285 csun5285 changed the title [fix](varaint) fix variant index [fix](inveted index) fix variant index Jun 12, 2024
@@ -389,7 +389,7 @@ void inherit_column_attributes(const TabletColumn& source, TabletColumn& target,
// add index meta
TabletIndex index_info = *source_index_meta;
index_info.set_escaped_escaped_index_suffix_path(target.path_info_ptr()->get_path());
const auto* target_index_meta = target_schema->get_inverted_index(target);
const auto* target_index_meta = target_schema->get_inverted_index(target, false);
Copy link
Member

Choose a reason for hiding this comment

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

why set to false, and default true, add comment to explain?

Copy link
Contributor Author

@csun5285 csun5285 Jun 13, 2024

Choose a reason for hiding this comment

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

True: Check if the columns from the variant support inverted index
False: No need to check, just inherit directly

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not always check it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not always check it?

  1. When the variant column is created, it has a TabletIndex. The extracted column from the variant will inherit this TabletIndex.
  2. The variant column itself is JSONB and does not support index, no need to check.

@csun5285
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17623	4444	4466	4444
q2	2029	190	210	190
q3	10445	1142	1145	1142
q4	10193	794	769	769
q5	7451	2706	2665	2665
q6	225	139	139	139
q7	952	625	593	593
q8	9218	2092	2076	2076
q9	8992	6530	6499	6499
q10	9023	3741	3747	3741
q11	440	238	241	238
q12	434	233	234	233
q13	18781	2993	2992	2992
q14	255	210	225	210
q15	517	483	480	480
q16	524	380	372	372
q17	1000	689	741	689
q18	8050	7453	7382	7382
q19	7451	1478	1542	1478
q20	666	333	328	328
q21	5056	3138	3873	3138
q22	383	324	333	324
Total cold run time: 119708 ms
Total hot run time: 40122 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4451	4283	4239	4239
q2	378	260	269	260
q3	3115	2886	2940	2886
q4	1991	1714	1852	1714
q5	5529	5506	5496	5496
q6	228	133	146	133
q7	2273	1835	1856	1835
q8	3378	3415	3484	3415
q9	8742	8873	8774	8774
q10	4197	3686	3781	3686
q11	606	484	530	484
q12	860	628	618	618
q13	16913	3131	3186	3131
q14	316	278	287	278
q15	534	481	482	481
q16	472	447	417	417
q17	1817	1503	1478	1478
q18	8158	7953	7845	7845
q19	1877	1570	1617	1570
q20	3086	1895	1846	1846
q21	6870	4936	4836	4836
q22	624	572	557	557
Total cold run time: 76415 ms
Total hot run time: 55979 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.40% (8985/24684)
Line Coverage: 27.95% (73471/262901)
Region Coverage: 27.39% (38108/139114)
Branch Coverage: 24.01% (19350/80594)
Coverage Report: http://coverage.selectdb-in.cc/coverage/b10eab326ff0074b1805d5230be2567f810717f3_b10eab326ff0074b1805d5230be2567f810717f3/report/index.html

@doris-robot
Copy link

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

query1	927	378	374	374
query2	7498	2262	2394	2262
query3	6627	209	213	209
query4	18598	17481	17283	17283
query5	3732	476	443	443
query6	246	157	167	157
query7	4577	304	289	289
query8	305	275	279	275
query9	8520	2465	2455	2455
query10	571	300	274	274
query11	10559	10168	10003	10003
query12	114	91	85	85
query13	1640	366	364	364
query14	9595	6967	6226	6226
query15	219	185	178	178
query16	7151	272	272	272
query17	1402	562	529	529
query18	1930	272	276	272
query19	194	153	156	153
query20	89	83	80	80
query21	212	133	126	126
query22	4256	4148	3998	3998
query23	33409	33575	33569	33569
query24	11272	2918	2851	2851
query25	627	379	376	376
query26	1162	156	156	156
query27	2364	330	341	330
query28	7166	2154	2130	2130
query29	921	642	641	641
query30	248	157	161	157
query31	1008	744	759	744
query32	99	53	57	53
query33	768	286	284	284
query34	1075	494	526	494
query35	732	628	616	616
query36	1123	988	965	965
query37	144	71	75	71
query38	2924	2880	2795	2795
query39	902	844	842	842
query40	220	130	132	130
query41	61	56	55	55
query42	135	109	114	109
query43	602	541	552	541
query44	1232	748	727	727
query45	200	164	171	164
query46	1089	708	718	708
query47	1867	1756	1764	1756
query48	366	308	297	297
query49	855	418	415	415
query50	775	397	397	397
query51	6740	6651	6594	6594
query52	108	92	92	92
query53	360	290	292	290
query54	914	470	446	446
query55	76	76	73	73
query56	295	273	272	272
query57	1140	1035	1047	1035
query58	266	258	261	258
query59	3384	3121	3087	3087
query60	320	294	276	276
query61	109	105	108	105
query62	608	434	455	434
query63	323	297	294	294
query64	8997	2338	1834	1834
query65	3199	3122	3106	3106
query66	947	344	333	333
query67	15560	14933	14929	14929
query68	8272	555	573	555
query69	757	469	410	410
query70	1233	1183	1046	1046
query71	496	276	278	276
query72	8993	2949	2607	2607
query73	1153	330	328	328
query74	5821	5449	5463	5449
query75	4283	2643	2650	2643
query76	4259	959	948	948
query77	708	289	304	289
query78	10413	9743	9908	9743
query79	8172	506	520	506
query80	2395	472	466	466
query81	557	223	221	221
query82	763	101	100	100
query83	289	164	165	164
query84	268	83	86	83
query85	1353	278	276	276
query86	409	306	286	286
query87	3264	3104	3134	3104
query88	4983	2432	2437	2432
query89	514	373	379	373
query90	1835	187	188	187
query91	124	101	98	98
query92	68	49	46	46
query93	6230	515	513	513
query94	1121	188	188	188
query95	414	322	320	320
query96	614	268	264	264
query97	3217	3018	3083	3018
query98	235	201	189	189
query99	1175	848	821	821
Total cold run time: 290042 ms
Total hot run time: 170087 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.23	0.04	0.04
query4	1.70	0.07	0.08
query5	0.52	0.49	0.50
query6	1.13	0.72	0.73
query7	0.02	0.02	0.02
query8	0.05	0.04	0.05
query9	0.53	0.50	0.49
query10	0.53	0.54	0.54
query11	0.15	0.12	0.12
query12	0.14	0.12	0.12
query13	0.59	0.58	0.60
query14	0.76	0.78	0.77
query15	0.83	0.81	0.82
query16	0.37	0.36	0.37
query17	1.03	0.99	0.98
query18	0.20	0.28	0.23
query19	1.80	1.68	1.69
query20	0.02	0.01	0.01
query21	15.40	0.66	0.66
query22	4.03	6.53	2.37
query23	18.35	1.40	1.29
query24	2.05	0.24	0.21
query25	0.16	0.09	0.09
query26	0.27	0.18	0.17
query27	0.08	0.08	0.08
query28	13.22	1.01	1.00
query29	12.66	3.29	3.29
query30	0.26	0.06	0.07
query31	2.84	0.39	0.39
query32	3.28	0.46	0.47
query33	2.89	2.94	2.90
query34	17.11	4.48	4.42
query35	4.48	4.56	4.47
query36	0.65	0.48	0.46
query37	0.19	0.16	0.15
query38	0.16	0.14	0.15
query39	0.04	0.04	0.04
query40	0.18	0.15	0.15
query41	0.09	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.21 s
Total hot run time: 31.08 s

@csun5285
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.43% (8992/24684)
Line Coverage: 27.95% (73571/263177)
Region Coverage: 27.39% (38165/139323)
Branch Coverage: 24.02% (19376/80680)
Coverage Report: http://coverage.selectdb-in.cc/coverage/378f12a8f8e3eff7587234059ee068284158bfe7_378f12a8f8e3eff7587234059ee068284158bfe7/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17619	4510	4443	4443
q2	2040	200	211	200
q3	10411	1201	1119	1119
q4	10189	882	819	819
q5	7497	2655	2567	2567
q6	222	137	137	137
q7	962	610	594	594
q8	9220	2076	2099	2076
q9	8775	6518	6511	6511
q10	8947	3792	3720	3720
q11	458	236	242	236
q12	402	234	223	223
q13	17772	2954	3005	2954
q14	258	230	219	219
q15	526	487	476	476
q16	525	381	379	379
q17	959	664	743	664
q18	8120	7400	7592	7400
q19	6532	1511	1529	1511
q20	659	321	328	321
q21	4863	3193	3775	3193
q22	397	335	333	333
Total cold run time: 117353 ms
Total hot run time: 40095 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4349	4289	4259	4259
q2	375	272	261	261
q3	2995	2706	2766	2706
q4	1864	1653	1621	1621
q5	5269	5292	5282	5282
q6	219	126	128	126
q7	2134	1778	1727	1727
q8	3166	3376	3295	3295
q9	8341	8300	8316	8300
q10	3897	3607	3721	3607
q11	583	490	488	488
q12	735	589	571	571
q13	17605	3007	3012	3007
q14	308	263	274	263
q15	520	496	482	482
q16	481	423	437	423
q17	1781	1483	1472	1472
q18	7712	7647	7450	7450
q19	1768	1630	1441	1441
q20	1969	1793	1788	1788
q21	4801	4755	4751	4751
q22	649	549	572	549
Total cold run time: 71521 ms
Total hot run time: 53869 ms

@csun5285
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.47% (9001/24679)
Line Coverage: 28.01% (73729/263189)
Region Coverage: 27.49% (38306/139339)
Branch Coverage: 24.19% (19523/80710)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0c0a2b07696aae00833bbfb9f0c4d59b2322f50b_0c0a2b07696aae00833bbfb9f0c4d59b2322f50b/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17644	4352	4295	4295
q2	2026	197	203	197
q3	10724	1233	1179	1179
q4	10589	794	887	794
q5	7614	2711	2699	2699
q6	229	139	140	139
q7	974	623	628	623
q8	10270	2124	2092	2092
q9	9298	6614	6601	6601
q10	9399	3783	3713	3713
q11	454	244	238	238
q12	462	227	224	224
q13	18823	2965	2997	2965
q14	271	226	233	226
q15	518	473	497	473
q16	532	393	395	393
q17	964	697	693	693
q18	8141	7443	7433	7433
q19	2948	1498	1415	1415
q20	653	317	325	317
q21	4916	3189	3121	3121
q22	392	340	338	338
Total cold run time: 117841 ms
Total hot run time: 40168 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4358	4257	4240	4240
q2	379	260	273	260
q3	3011	2746	2806	2746
q4	1850	1600	1656	1600
q5	5242	5327	5302	5302
q6	216	127	133	127
q7	2122	1784	1762	1762
q8	3205	3340	3359	3340
q9	8398	8387	8413	8387
q10	3924	3709	3645	3645
q11	580	467	487	467
q12	780	621	591	591
q13	17319	2982	3008	2982
q14	303	253	273	253
q15	516	479	480	479
q16	469	409	419	409
q17	1762	1484	1457	1457
q18	7676	7445	7453	7445
q19	1695	1529	1557	1529
q20	1994	1762	1743	1743
q21	4884	4699	4639	4639
q22	625	531	559	531
Total cold run time: 71308 ms
Total hot run time: 53934 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173994 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 0c0a2b07696aae00833bbfb9f0c4d59b2322f50b, data reload: false

query1	943	403	392	392
query2	6477	2480	2502	2480
query3	6652	206	206	206
query4	20783	17684	17436	17436
query5	4187	480	470	470
query6	248	158	155	155
query7	4591	301	298	298
query8	342	299	295	295
query9	8445	2369	2377	2369
query10	601	306	272	272
query11	10660	10175	10011	10011
query12	128	85	85	85
query13	1635	359	358	358
query14	10263	7689	7632	7632
query15	287	190	191	190
query16	8112	281	262	262
query17	1910	546	537	537
query18	2111	282	278	278
query19	196	161	163	161
query20	96	92	87	87
query21	216	137	128	128
query22	4356	3986	3978	3978
query23	33873	33067	33134	33067
query24	11381	2893	2752	2752
query25	623	351	359	351
query26	1574	154	150	150
query27	2969	321	320	320
query28	7557	2059	2061	2059
query29	966	632	618	618
query30	280	161	163	161
query31	929	730	743	730
query32	96	79	54	54
query33	769	279	273	273
query34	994	474	475	474
query35	762	652	619	619
query36	1103	921	953	921
query37	166	68	70	68
query38	3008	2801	2730	2730
query39	891	827	835	827
query40	279	126	124	124
query41	60	54	55	54
query42	117	94	100	94
query43	576	557	535	535
query44	1189	714	731	714
query45	199	171	166	166
query46	1097	741	732	732
query47	1862	1767	1761	1761
query48	385	297	296	296
query49	1168	417	413	413
query50	759	395	381	381
query51	6881	6728	6699	6699
query52	106	97	97	97
query53	360	299	292	292
query54	865	468	440	440
query55	77	73	75	73
query56	279	248	256	248
query57	1150	1065	1087	1065
query58	249	236	234	234
query59	3520	3276	3250	3250
query60	296	278	295	278
query61	95	90	92	90
query62	641	455	436	436
query63	317	295	291	291
query64	9968	2249	1742	1742
query65	3276	3121	3176	3121
query66	1068	325	337	325
query67	15348	14931	14878	14878
query68	4601	539	535	535
query69	464	299	300	299
query70	1190	1061	1155	1061
query71	399	266	274	266
query72	7022	5523	5500	5500
query73	754	324	331	324
query74	6060	5552	5477	5477
query75	3546	2701	2693	2693
query76	2823	952	910	910
query77	457	291	300	291
query78	10527	10100	9759	9759
query79	2184	517	512	512
query80	1091	463	483	463
query81	528	235	235	235
query82	683	102	103	102
query83	245	176	194	176
query84	244	93	89	89
query85	1821	345	326	326
query86	491	321	336	321
query87	3330	3119	3094	3094
query88	3954	2377	2372	2372
query89	491	397	381	381
query90	1799	194	204	194
query91	141	110	114	110
query92	65	52	52	52
query93	2364	518	498	498
query94	1251	193	196	193
query95	410	316	337	316
query96	611	267	270	267
query97	3262	3069	3051	3051
query98	216	201	207	201
query99	1255	843	856	843
Total cold run time: 277646 ms
Total hot run time: 173994 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.08	0.04	0.05
query3	0.23	0.06	0.05
query4	1.67	0.08	0.08
query5	0.50	0.51	0.51
query6	1.12	0.73	0.73
query7	0.02	0.02	0.01
query8	0.05	0.05	0.05
query9	0.54	0.49	0.49
query10	0.55	0.56	0.54
query11	0.16	0.11	0.11
query12	0.15	0.12	0.12
query13	0.60	0.58	0.61
query14	0.78	0.77	0.78
query15	0.83	0.82	0.80
query16	0.38	0.35	0.35
query17	0.98	0.96	1.02
query18	0.23	0.24	0.24
query19	1.77	1.76	1.74
query20	0.01	0.01	0.01
query21	15.42	0.68	0.65
query22	4.07	7.17	2.22
query23	18.27	1.43	1.30
query24	2.08	0.22	0.22
query25	0.16	0.08	0.08
query26	0.26	0.17	0.18
query27	0.08	0.08	0.08
query28	13.27	1.01	1.00
query29	12.63	3.28	3.25
query30	0.26	0.07	0.06
query31	2.85	0.39	0.39
query32	3.31	0.48	0.46
query33	2.88	2.92	2.86
query34	17.28	4.40	4.43
query35	4.43	4.43	4.49
query36	0.66	0.46	0.49
query37	0.19	0.16	0.15
query38	0.16	0.14	0.15
query39	0.04	0.03	0.04
query40	0.17	0.14	0.14
query41	0.10	0.05	0.04
query42	0.05	0.05	0.04
query43	0.04	0.04	0.04
Total cold run time: 109.35 s
Total hot run time: 30.83 s

fix variant tabletindex

move

fix build

fix

add comment

fix unstable test

add comment
@csun5285
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17604	5055	4307	4307
q2	2037	199	186	186
q3	10450	1082	1071	1071
q4	10189	835	849	835
q5	7461	2637	2625	2625
q6	222	136	134	134
q7	966	615	593	593
q8	9229	2080	2123	2080
q9	8770	6491	6498	6491
q10	9035	3749	3729	3729
q11	472	232	236	232
q12	422	222	229	222
q13	17767	2943	2985	2943
q14	262	218	222	218
q15	508	474	467	467
q16	513	386	376	376
q17	979	645	614	614
q18	8042	7486	7408	7408
q19	7392	1562	1516	1516
q20	664	322	326	322
q21	4890	3264	3958	3264
q22	400	346	342	342
Total cold run time: 118274 ms
Total hot run time: 39975 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4460	4250	4248	4248
q2	389	266	264	264
q3	3121	2893	2874	2874
q4	1977	1723	1799	1723
q5	5698	5529	5453	5453
q6	228	131	142	131
q7	2302	1872	1864	1864
q8	3277	3431	3409	3409
q9	8726	8760	8663	8663
q10	4145	3749	3851	3749
q11	586	497	486	486
q12	834	647	618	618
q13	15918	3192	3134	3134
q14	295	274	278	274
q15	529	502	482	482
q16	489	426	432	426
q17	1825	1510	1478	1478
q18	8097	8015	7961	7961
q19	1857	1639	1664	1639
q20	2131	1892	1832	1832
q21	5132	4907	4846	4846
q22	642	521	545	521
Total cold run time: 72658 ms
Total hot run time: 56075 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.46% (9005/24696)
Line Coverage: 28.01% (73798/263457)
Region Coverage: 27.50% (38349/139442)
Branch Coverage: 24.19% (19544/80792)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c3c85deafcb077fab2b392ffd5f545df0a53f803_c3c85deafcb077fab2b392ffd5f545df0a53f803/report/index.html

@doris-robot
Copy link

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

query1	925	381	384	381
query2	6465	2616	2421	2421
query3	6661	206	204	204
query4	18794	17294	17589	17294
query5	3610	464	462	462
query6	238	154	164	154
query7	4571	298	284	284
query8	321	294	303	294
query9	8561	2385	2381	2381
query10	554	317	269	269
query11	10647	10068	10137	10068
query12	118	85	87	85
query13	1648	352	364	352
query14	9379	6792	7514	6792
query15	232	195	187	187
query16	7739	270	264	264
query17	1877	538	506	506
query18	1956	296	268	268
query19	198	153	155	153
query20	99	86	84	84
query21	211	126	124	124
query22	4356	4079	4029	4029
query23	33522	33539	33477	33477
query24	10867	2899	2920	2899
query25	593	378	369	369
query26	723	153	154	153
query27	2366	338	321	321
query28	6073	2100	2108	2100
query29	912	644	592	592
query30	253	151	160	151
query31	941	775	744	744
query32	97	52	52	52
query33	739	283	277	277
query34	1000	468	468	468
query35	734	625	659	625
query36	1093	997	949	949
query37	142	80	74	74
query38	2993	2822	2847	2822
query39	913	846	809	809
query40	206	129	126	126
query41	64	52	50	50
query42	116	99	98	98
query43	612	556	575	556
query44	1178	727	722	722
query45	193	163	159	159
query46	1078	739	758	739
query47	1886	1780	1772	1772
query48	375	290	284	284
query49	846	400	407	400
query50	779	383	385	383
query51	6789	6666	6688	6666
query52	108	94	93	93
query53	353	286	287	286
query54	853	439	439	439
query55	75	71	75	71
query56	290	271	294	271
query57	1173	1059	1037	1037
query58	258	244	255	244
query59	3572	3412	3279	3279
query60	296	259	266	259
query61	116	88	91	88
query62	597	446	454	446
query63	320	278	286	278
query64	8456	2295	1856	1856
query65	3234	3113	3106	3106
query66	758	335	333	333
query67	15533	14881	14949	14881
query68	6130	539	538	538
query69	657	482	406	406
query70	1149	1161	1122	1122
query71	449	283	271	271
query72	8312	5715	2928	2928
query73	792	330	332	330
query74	6022	5649	5534	5534
query75	3917	2654	2648	2648
query76	3751	971	959	959
query77	670	307	310	307
query78	10512	9943	9758	9758
query79	2417	513	521	513
query80	2265	487	478	478
query81	577	221	222	221
query82	813	108	104	104
query83	305	172	183	172
query84	275	90	95	90
query85	1316	348	346	346
query86	465	308	310	308
query87	3241	3074	3081	3074
query88	3799	2374	2373	2373
query89	471	383	379	379
query90	1725	195	187	187
query91	127	99	97	97
query92	56	50	49	49
query93	2714	507	491	491
query94	1042	189	184	184
query95	401	315	311	311
query96	614	264	264	264
query97	3218	3057	3004	3004
query98	219	204	194	194
query99	1197	843	861	843
Total cold run time: 272853 ms
Total hot run time: 171343 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.04
query2	0.08	0.04	0.04
query3	0.23	0.05	0.06
query4	1.67	0.07	0.07
query5	0.48	0.47	0.49
query6	1.14	0.73	0.73
query7	0.02	0.02	0.01
query8	0.06	0.04	0.05
query9	0.55	0.48	0.49
query10	0.56	0.55	0.55
query11	0.15	0.12	0.11
query12	0.14	0.11	0.12
query13	0.59	0.59	0.60
query14	0.80	0.77	0.77
query15	0.84	0.82	0.81
query16	0.36	0.35	0.36
query17	1.01	1.04	0.97
query18	0.24	0.24	0.22
query19	1.87	1.80	1.82
query20	0.01	0.01	0.01
query21	15.43	0.67	0.66
query22	4.62	6.71	1.86
query23	18.30	1.49	1.40
query24	2.14	0.22	0.23
query25	0.17	0.08	0.08
query26	0.27	0.18	0.18
query27	0.08	0.09	0.07
query28	13.21	1.04	0.99
query29	12.65	3.26	3.28
query30	0.28	0.06	0.06
query31	2.86	0.37	0.39
query32	3.28	0.47	0.48
query33	2.90	2.89	2.89
query34	17.21	4.63	4.63
query35	4.80	4.60	4.54
query36	0.65	0.47	0.46
query37	0.18	0.15	0.15
query38	0.15	0.14	0.15
query39	0.05	0.04	0.03
query40	0.16	0.15	0.14
query41	0.09	0.05	0.04
query42	0.06	0.05	0.04
query43	0.04	0.04	0.04
Total cold run time: 110.42 s
Total hot run time: 30.93 s

Copy link
Contributor

@xiaokang xiaokang left a comment

Choose a reason for hiding this comment

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

LGTM

@eldenmoon eldenmoon merged commit e561ef5 into apache:master Jun 20, 2024
24 of 27 checks passed
morningman pushed a commit that referenced this pull request Jun 20, 2024
iszhangpch pushed a commit to iszhangpch/doris-p that referenced this pull request Jun 21, 2024
Some columns from the variant do not support indexing, but they are
listed in TabletIndex. If such a column can obtain the TabletIndex, the
corresponding index file will not be found in copying files, creating
snapshots, and uploading files to S3.

When the variant column is created, it has a TabletIndex. The extracted
column from the variant will inherit this TabletIndex.

If the column extracted from the variant does not support index, it
should not get TabletIndex.
dataroaring pushed a commit that referenced this pull request Jun 21, 2024
Some columns from the variant do not support indexing, but they are
listed in TabletIndex. If such a column can obtain the TabletIndex, the
corresponding index file will not be found in copying files, creating
snapshots, and uploading files to S3.

When the variant column is created, it has a TabletIndex. The extracted
column from the variant will inherit this TabletIndex.

If the column extracted from the variant does not support index, it
should not get TabletIndex.
eldenmoon added a commit that referenced this pull request Aug 29, 2024
When reading from segment, the schema type is variant, if we check type
valid in `get_inverted_index`, the result should always return
nullptr(since variant type it self does not support inverted index), but
the actual storage could be `string` or etc.So we should ignore the type
check and return the correct inverted index iterators

introduced by #36163
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Sep 3, 2024
When reading from segment, the schema type is variant, if we check type
valid in `get_inverted_index`, the result should always return
nullptr(since variant type it self does not support inverted index), but
the actual storage could be `string` or etc.So we should ignore the type
check and return the correct inverted index iterators

introduced by apache#36163
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.4-merged dev/3.0.0-merged p0_b reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants