Skip to content

Conversation

@zzzxl1993
Copy link
Contributor

@zzzxl1993 zzzxl1993 commented Jan 8, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

  1. Ensure that col_unique_ids in TabletIndex are not empty when TabletIndex exists after a schema change.
  2. Use unique_id to search for and complete index schema information.

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

@zzzxl1993
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17610	6252	6118	6118
q2	2042	305	168	168
q3	10413	1291	740	740
q4	10224	877	435	435
q5	7495	2235	2073	2073
q6	218	188	148	148
q7	912	737	600	600
q8	9231	1435	1240	1240
q9	5372	4897	4989	4897
q10	6725	2311	1865	1865
q11	500	279	254	254
q12	350	365	217	217
q13	17757	3722	3013	3013
q14	237	234	219	219
q15	573	510	503	503
q16	640	609	592	592
q17	593	877	351	351
q18	7279	6594	6455	6455
q19	1435	988	560	560
q20	325	335	193	193
q21	2997	2309	2011	2011
q22	367	338	323	323
Total cold run time: 103295 ms
Total hot run time: 32975 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6371	6284	6343	6284
q2	248	326	231	231
q3	2240	2598	2341	2341
q4	1412	1875	1379	1379
q5	4399	4761	4896	4761
q6	192	183	147	147
q7	2124	2024	1871	1871
q8	2629	2980	2692	2692
q9	7369	7154	7252	7154
q10	3037	3338	2820	2820
q11	581	555	496	496
q12	660	724	601	601
q13	3485	3963	3258	3258
q14	276	302	294	294
q15	575	495	498	495
q16	665	664	651	651
q17	1266	1774	1260	1260
q18	7781	7552	7114	7114
q19	837	1102	1105	1102
q20	1921	1966	1822	1822
q21	5447	5086	4818	4818
q22	629	621	591	591
Total cold run time: 54144 ms
Total hot run time: 52182 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 188332 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 0199371f57c3998a421857ef9d28c9089725ba24, data reload: false

query1	973	392	370	370
query2	6522	2301	2319	2301
query3	6711	213	207	207
query4	33591	23384	23452	23384
query5	4327	612	451	451
query6	277	204	192	192
query7	4616	500	300	300
query8	303	239	251	239
query9	9628	2805	2771	2771
query10	474	305	248	248
query11	18148	15259	15062	15062
query12	159	107	104	104
query13	1670	529	429	429
query14	11130	6597	6623	6597
query15	257	197	189	189
query16	8197	616	475	475
query17	1597	730	572	572
query18	2077	431	293	293
query19	226	167	149	149
query20	128	109	110	109
query21	205	120	102	102
query22	4271	4242	4163	4163
query23	34300	33084	33931	33084
query24	6514	2254	2287	2254
query25	449	465	381	381
query26	1076	257	148	148
query27	2290	449	332	332
query28	5683	2451	2440	2440
query29	506	519	419	419
query30	226	180	148	148
query31	994	888	777	777
query32	69	60	61	60
query33	505	347	308	308
query34	745	826	505	505
query35	808	796	719	719
query36	998	1011	959	959
query37	118	99	77	77
query38	3998	3945	4211	3945
query39	1444	1425	1397	1397
query40	209	126	98	98
query41	46	46	46	46
query42	119	152	101	101
query43	506	521	493	493
query44	1341	804	795	795
query45	179	170	159	159
query46	864	1028	633	633
query47	1821	1828	1774	1774
query48	378	404	326	326
query49	798	492	404	404
query50	625	635	393	393
query51	6999	6946	6889	6889
query52	104	99	91	91
query53	222	256	177	177
query54	494	475	406	406
query55	82	80	78	78
query56	240	261	242	242
query57	1155	1147	1092	1092
query58	243	232	237	232
query59	3019	3005	2897	2897
query60	273	275	261	261
query61	142	115	103	103
query62	859	773	722	722
query63	225	192	193	192
query64	4207	982	628	628
query65	3258	3173	3192	3173
query66	1048	412	315	315
query67	15824	15704	15444	15444
query68	8254	695	509	509
query69	459	288	254	254
query70	1233	1176	1140	1140
query71	492	283	263	263
query72	6104	3812	3855	3812
query73	655	759	360	360
query74	9481	8920	9014	8920
query75	3992	3121	2652	2652
query76	3729	1163	760	760
query77	787	369	271	271
query78	10054	9980	9536	9536
query79	3448	769	593	593
query80	730	509	426	426
query81	474	264	228	228
query82	587	146	128	128
query83	195	162	140	140
query84	284	96	69	69
query85	784	375	291	291
query86	351	318	278	278
query87	4493	4316	4345	4316
query88	4174	2213	2196	2196
query89	388	323	289	289
query90	1886	188	182	182
query91	133	132	102	102
query92	67	56	52	52
query93	1382	850	524	524
query94	658	413	290	290
query95	330	256	247	247
query96	478	625	283	283
query97	2852	2979	2826	2826
query98	219	207	196	196
query99	1602	1491	1375	1375
Total cold run time: 292245 ms
Total hot run time: 188332 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.07	0.04	0.03
query3	0.24	0.06	0.07
query4	1.62	0.10	0.11
query5	0.44	0.40	0.42
query6	1.18	0.65	0.66
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.57	0.52	0.50
query10	0.55	0.57	0.54
query11	0.14	0.10	0.10
query12	0.14	0.11	0.10
query13	0.61	0.60	0.59
query14	2.76	2.84	2.70
query15	0.88	0.82	0.81
query16	0.39	0.38	0.37
query17	1.05	1.04	1.01
query18	0.22	0.20	0.21
query19	1.92	1.91	1.98
query20	0.01	0.01	0.01
query21	15.36	0.97	0.58
query22	0.76	0.85	0.82
query23	15.05	1.41	0.55
query24	2.50	1.31	1.41
query25	0.25	0.14	0.19
query26	0.20	0.15	0.13
query27	0.04	0.05	0.05
query28	13.92	1.52	1.05
query29	12.56	3.86	3.28
query30	0.25	0.09	0.07
query31	2.81	0.57	0.38
query32	3.23	0.54	0.47
query33	3.19	3.22	3.11
query34	16.72	5.10	4.53
query35	4.54	4.56	4.47
query36	0.65	0.48	0.50
query37	0.09	0.06	0.06
query38	0.05	0.03	0.03
query39	0.03	0.03	0.02
query40	0.17	0.14	0.13
query41	0.08	0.02	0.02
query42	0.04	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 105.42 s
Total hot run time: 31.88 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 38.87% (10129/26061)
Line Coverage: 29.93% (85735/286480)
Region Coverage: 29.02% (43739/150713)
Branch Coverage: 25.56% (22328/87346)
Coverage Report: http://coverage.selectdb-in.cc/coverage/0199371f57c3998a421857ef9d28c9089725ba24_0199371f57c3998a421857ef9d28c9089725ba24/report/index.html

@zzzxl1993
Copy link
Contributor Author

run buildall

airborne12
airborne12 previously approved these changes Jan 13, 2025
Copy link
Member

@airborne12 airborne12 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 github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 13, 2025
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@airborne12 airborne12 changed the title [opt](inverted index) Ensure that col_unique_ids in TabletIndex are not empty. [fix](inverted index) Ensure that col_unique_ids in TabletIndex are not empty. Jan 13, 2025
@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17578	6344	6001	6001
q2	2053	300	172	172
q3	10426	1260	763	763
q4	10194	901	445	445
q5	7552	2168	2016	2016
q6	204	179	144	144
q7	880	756	615	615
q8	9240	1402	1200	1200
q9	5293	4877	4961	4877
q10	6747	2299	1879	1879
q11	479	280	264	264
q12	350	353	234	234
q13	17782	3703	3018	3018
q14	240	231	218	218
q15	563	501	511	501
q16	633	612	599	599
q17	550	855	328	328
q18	6915	6429	6345	6345
q19	2800	954	540	540
q20	299	317	187	187
q21	2828	2169	1990	1990
q22	362	337	305	305
Total cold run time: 103968 ms
Total hot run time: 32641 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6406	6322	6346	6322
q2	240	330	230	230
q3	2239	2700	2313	2313
q4	1416	1865	1379	1379
q5	4308	4775	4881	4775
q6	175	180	143	143
q7	2093	1955	1848	1848
q8	2647	2852	2713	2713
q9	7359	7269	7309	7269
q10	3103	3327	2757	2757
q11	579	535	497	497
q12	646	786	619	619
q13	3514	3837	3312	3312
q14	279	291	286	286
q15	555	516	525	516
q16	682	695	651	651
q17	1243	1734	1268	1268
q18	7746	7409	7424	7409
q19	780	863	1059	863
q20	1993	2024	1850	1850
q21	5853	5191	4977	4977
q22	631	617	578	578
Total cold run time: 54487 ms
Total hot run time: 52575 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 40.39% (10529/26071)
Line Coverage: 31.13% (89182/286497)
Region Coverage: 30.23% (45579/150782)
Branch Coverage: 26.51% (23161/87352)
Coverage Report: http://coverage.selectdb-in.cc/coverage/6cf3dca06d174d9e43a7f4cb4fb36b5c97223bb5_6cf3dca06d174d9e43a7f4cb4fb36b5c97223bb5/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 195091 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 6cf3dca06d174d9e43a7f4cb4fb36b5c97223bb5, data reload: false

query1	1341	979	990	979
query2	6450	2285	2283	2283
query3	11084	4848	5134	4848
query4	32715	23513	23632	23513
query5	4082	630	453	453
query6	287	197	206	197
query7	4007	498	311	311
query8	310	235	220	220
query9	9461	2703	2684	2684
query10	466	311	250	250
query11	17817	15195	15054	15054
query12	171	110	105	105
query13	1556	520	392	392
query14	10033	6767	7457	6767
query15	249	217	184	184
query16	7926	624	455	455
query17	1619	778	617	617
query18	2047	419	357	357
query19	237	201	194	194
query20	141	120	118	118
query21	213	127	108	108
query22	4529	4724	4363	4363
query23	34325	33309	32829	32829
query24	6567	2273	2311	2273
query25	480	476	403	403
query26	789	285	156	156
query27	2162	471	333	333
query28	5707	2484	2439	2439
query29	578	568	451	451
query30	221	192	159	159
query31	950	893	809	809
query32	66	65	63	63
query33	486	388	327	327
query34	752	847	519	519
query35	798	833	749	749
query36	1036	1067	946	946
query37	124	101	75	75
query38	4124	4218	4199	4199
query39	1496	1461	1637	1461
query40	218	122	109	109
query41	54	49	50	49
query42	120	106	103	103
query43	538	523	500	500
query44	1296	849	845	845
query45	186	172	169	169
query46	880	1051	662	662
query47	1903	1903	1952	1903
query48	385	404	324	324
query49	716	507	422	422
query50	676	676	408	408
query51	7002	7206	7048	7048
query52	103	102	92	92
query53	228	254	200	200
query54	514	490	419	419
query55	84	83	76	76
query56	263	275	264	264
query57	1214	1229	1111	1111
query58	249	240	265	240
query59	3183	3240	3168	3168
query60	291	300	258	258
query61	158	120	132	120
query62	839	787	717	717
query63	224	193	196	193
query64	3281	1039	672	672
query65	3366	3203	3209	3203
query66	791	422	318	318
query67	16458	15814	15380	15380
query68	7279	709	526	526
query69	497	294	260	260
query70	1176	1158	1069	1069
query71	437	290	273	273
query72	6467	3842	3898	3842
query73	647	775	371	371
query74	9975	8880	8763	8763
query75	4158	3174	2641	2641
query76	3621	1147	856	856
query77	787	372	276	276
query78	10119	10265	9352	9352
query79	3059	776	606	606
query80	673	539	444	444
query81	514	330	234	234
query82	582	147	127	127
query83	168	170	154	154
query84	238	90	71	71
query85	772	347	327	327
query86	384	316	302	302
query87	4580	4572	4441	4441
query88	4703	2259	2226	2226
query89	408	324	284	284
query90	1805	197	194	194
query91	143	139	109	109
query92	69	61	52	52
query93	1422	864	534	534
query94	633	396	290	290
query95	334	269	269	269
query96	488	633	286	286
query97	2864	2945	2738	2738
query98	214	210	190	190
query99	1643	1498	1368	1368
Total cold run time: 293481 ms
Total hot run time: 195091 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.07	0.03	0.04
query3	0.23	0.08	0.07
query4	1.62	0.10	0.11
query5	0.42	0.43	0.42
query6	1.15	0.65	0.65
query7	0.03	0.02	0.01
query8	0.04	0.03	0.03
query9	0.59	0.52	0.50
query10	0.56	0.56	0.54
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.60	0.62	0.60
query14	2.71	2.82	2.72
query15	0.89	0.82	0.82
query16	0.38	0.40	0.38
query17	1.01	0.98	1.06
query18	0.23	0.21	0.22
query19	1.81	1.84	1.92
query20	0.02	0.02	0.01
query21	15.36	0.95	0.59
query22	0.76	0.86	0.67
query23	15.23	1.42	0.62
query24	2.61	1.20	1.53
query25	0.20	0.31	0.09
query26	0.32	0.14	0.14
query27	0.06	0.04	0.04
query28	13.75	1.54	1.05
query29	12.58	3.96	3.28
query30	0.26	0.08	0.06
query31	2.83	0.58	0.37
query32	3.22	0.54	0.47
query33	3.05	3.14	3.13
query34	16.54	5.12	4.53
query35	4.62	4.52	4.57
query36	0.64	0.48	0.47
query37	0.09	0.06	0.06
query38	0.04	0.04	0.03
query39	0.03	0.03	0.02
query40	0.17	0.14	0.13
query41	0.08	0.03	0.02
query42	0.04	0.02	0.02
query43	0.03	0.04	0.03
Total cold run time: 105.19 s
Total hot run time: 31.69 s

@zzzxl1993
Copy link
Contributor Author

run buildall

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Jan 14, 2025
Copy link
Member

@airborne12 airborne12 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 github-actions bot added the approved Indicates a PR has been approved by one committer. label Jan 14, 2025
@github-actions
Copy link
Contributor

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

Copy link
Contributor

@yujun777 yujun777 left a comment

Choose a reason for hiding this comment

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

LGTM

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17616	6107	5995	5995
q2	2052	297	165	165
q3	10456	1237	716	716
q4	10283	860	424	424
q5	8824	2162	2005	2005
q6	213	180	145	145
q7	893	768	591	591
q8	9240	1366	1148	1148
q9	5106	4912	4835	4835
q10	6777	2289	1841	1841
q11	496	279	253	253
q12	345	351	212	212
q13	17780	3682	3096	3096
q14	240	233	211	211
q15	573	519	496	496
q16	627	621	585	585
q17	590	859	314	314
q18	6824	6480	6198	6198
q19	2270	948	531	531
q20	292	310	181	181
q21	2797	2153	1931	1931
q22	362	332	321	321
Total cold run time: 104656 ms
Total hot run time: 32194 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6287	6184	6222	6184
q2	241	325	235	235
q3	2238	2649	2299	2299
q4	1371	1786	1383	1383
q5	4329	4737	4745	4737
q6	192	176	139	139
q7	2050	1948	1805	1805
q8	2619	2822	2714	2714
q9	7301	7224	7284	7224
q10	3064	3293	2751	2751
q11	579	548	498	498
q12	664	750	650	650
q13	3436	3850	3199	3199
q14	282	305	277	277
q15	560	503	521	503
q16	656	699	658	658
q17	1211	1744	1253	1253
q18	7781	7276	7273	7273
q19	777	1176	1073	1073
q20	2026	2028	1929	1929
q21	5577	5188	4925	4925
q22	602	638	596	596
Total cold run time: 53843 ms
Total hot run time: 52305 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 40.37% (10526/26071)
Line Coverage: 31.12% (89150/286499)
Region Coverage: 30.22% (45561/150782)
Branch Coverage: 26.50% (23152/87352)
Coverage Report: http://coverage.selectdb-in.cc/coverage/67a1fefff186fe6c45208aa01c3cf028b087721e_67a1fefff186fe6c45208aa01c3cf028b087721e/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 195089 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 67a1fefff186fe6c45208aa01c3cf028b087721e, data reload: false

query1	1318	976	950	950
query2	6420	2224	2231	2224
query3	10978	4815	4887	4815
query4	32628	23666	23235	23235
query5	4058	595	465	465
query6	285	188	194	188
query7	3988	490	309	309
query8	278	238	216	216
query9	9432	2672	2663	2663
query10	479	303	275	275
query11	17899	15154	15094	15094
query12	161	105	112	105
query13	1556	516	411	411
query14	9391	6732	7732	6732
query15	273	202	208	202
query16	8209	654	471	471
query17	1539	796	597	597
query18	2137	438	316	316
query19	206	191	168	168
query20	135	121	119	119
query21	213	129	152	129
query22	4851	4712	4562	4562
query23	33924	33309	34162	33309
query24	6449	2393	2258	2258
query25	463	458	396	396
query26	753	252	153	153
query27	2160	462	336	336
query28	5410	2535	2495	2495
query29	553	545	412	412
query30	217	191	153	153
query31	952	891	816	816
query32	89	55	60	55
query33	488	368	326	326
query34	773	852	510	510
query35	797	837	764	764
query36	1008	1054	935	935
query37	131	92	75	75
query38	4088	4270	4182	4182
query39	1528	1477	1425	1425
query40	208	116	106	106
query41	53	52	49	49
query42	122	103	103	103
query43	497	504	495	495
query44	1398	851	826	826
query45	189	174	170	170
query46	896	1072	651	651
query47	1930	1924	1843	1843
query48	404	411	314	314
query49	739	508	407	407
query50	662	663	398	398
query51	7076	7039	7019	7019
query52	104	101	95	95
query53	223	251	184	184
query54	501	504	415	415
query55	85	81	82	81
query56	269	269	260	260
query57	1235	1240	1145	1145
query58	262	239	253	239
query59	3230	3154	3049	3049
query60	280	275	255	255
query61	129	110	114	110
query62	869	796	734	734
query63	223	193	191	191
query64	3726	1041	674	674
query65	3288	3233	3202	3202
query66	786	404	297	297
query67	16348	15753	15526	15526
query68	9546	722	518	518
query69	491	318	263	263
query70	1187	1120	1103	1103
query71	426	286	256	256
query72	6461	3858	3885	3858
query73	672	751	365	365
query74	10016	9206	8820	8820
query75	4554	3126	2653	2653
query76	4278	1169	804	804
query77	798	371	273	273
query78	9971	9902	9448	9448
query79	3617	808	597	597
query80	722	538	449	449
query81	502	273	239	239
query82	558	152	123	123
query83	199	170	156	156
query84	285	89	71	71
query85	766	353	295	295
query86	344	316	273	273
query87	4460	4438	4198	4198
query88	4097	2235	2210	2210
query89	415	336	290	290
query90	1852	195	193	193
query91	136	141	108	108
query92	68	56	57	56
query93	1048	884	542	542
query94	647	385	278	278
query95	337	261	254	254
query96	488	602	287	287
query97	2839	2923	2825	2825
query98	221	200	196	196
query99	1614	1532	1404	1404
Total cold run time: 295564 ms
Total hot run time: 195089 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.07	0.03	0.04
query3	0.24	0.07	0.06
query4	1.62	0.10	0.10
query5	0.40	0.43	0.40
query6	1.17	0.65	0.65
query7	0.02	0.02	0.02
query8	0.04	0.03	0.03
query9	0.60	0.49	0.52
query10	0.56	0.57	0.55
query11	0.14	0.10	0.10
query12	0.14	0.11	0.11
query13	0.60	0.60	0.58
query14	2.75	2.88	2.72
query15	0.90	0.82	0.82
query16	0.39	0.39	0.40
query17	0.99	1.02	1.05
query18	0.23	0.20	0.21
query19	1.87	1.83	2.01
query20	0.02	0.01	0.01
query21	15.36	0.93	0.56
query22	0.77	0.88	0.60
query23	15.26	1.43	0.60
query24	3.11	1.97	1.09
query25	0.28	0.18	0.11
query26	0.21	0.16	0.14
query27	0.07	0.06	0.05
query28	13.92	1.49	1.05
query29	12.60	3.98	3.31
query30	0.25	0.10	0.07
query31	2.80	0.59	0.39
query32	3.22	0.54	0.47
query33	3.08	3.03	3.14
query34	16.70	5.06	4.43
query35	4.49	4.59	4.40
query36	0.64	0.49	0.49
query37	0.09	0.06	0.06
query38	0.04	0.04	0.03
query39	0.03	0.03	0.02
query40	0.16	0.13	0.13
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.03	0.03	0.03
Total cold run time: 106.01 s
Total hot run time: 31.24 s

@airborne12 airborne12 merged commit 06922c8 into apache:master Jan 14, 2025
25 of 27 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 14, 2025
…ot empty. (#46648)

Problem Summary:
1. Ensure that col_unique_ids in TabletIndex are not empty when
TabletIndex exists after a schema change.
2. Use unique_id to search for and complete index schema information.
airborne12 pushed a commit that referenced this pull request Jan 14, 2025
…tIndex are not empty. #46648 (#46971)

Cherry-picked from #46648

Co-authored-by: zzzxl <yangsiyu@selectdb.com>
lzyy2024 pushed a commit to lzyy2024/doris that referenced this pull request Feb 21, 2025
…ot empty. (apache#46648)

Problem Summary:
1. Ensure that col_unique_ids in TabletIndex are not empty when
TabletIndex exists after a schema change.
2. Use unique_id to search for and complete index schema information.
dataroaring pushed a commit that referenced this pull request Mar 20, 2025
)

Issue Number: close #48989

Related PR: #46648 #42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
qidaye pushed a commit to qidaye/incubator-doris that referenced this pull request Mar 20, 2025
…che#48988)

Issue Number: close apache#48989

Related PR: apache#46648 apache#42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
qidaye pushed a commit to qidaye/incubator-doris that referenced this pull request Mar 20, 2025
…che#48988)

Issue Number: close apache#48989

Related PR: apache#46648 apache#42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
qidaye pushed a commit to qidaye/incubator-doris that referenced this pull request Mar 20, 2025
…che#48988)

Issue Number: close apache#48989

Related PR: apache#46648 apache#42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
qidaye pushed a commit to qidaye/incubator-doris that referenced this pull request Mar 20, 2025
…che#48988)

Issue Number: close apache#48989

Related PR: apache#46648 apache#42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…che#48988)

Issue Number: close apache#48989

Related PR: apache#46648 apache#42882

Problem Summary:

We introduced `Index.columnUniqueIds` in 3.0.3, and make sure
`Index.columnUniqueIds` is not empty in 3.0.4.
But when we upgrade Doris from 3.0.2 and before to 3.0.4, the
`Index.columnUniqueIds` will be `null`.

Versions 302 and earlier do not have this variable, and gson
deserialization will assign it to null.
We need to initialize the column unique ids associated with the index
correctly.

Key Changes

Removed stored `columnUniqueIds` from `Index` class:

Previously, column unique IDs were stored as a field in the `Index`
class
Now they're dynamically computed when needed rather than stored
redundantly
Added dynamic computation method:

New method `getColumnUniqueIds(List<Column> schema)` computes IDs at
runtime
Column IDs are looked up by matching index column names with schema
columns

Updated method signatures:

Changed `toThrift()` to `toThrift(List<Integer> indexColumnUniqueIds)`
Changed `toPb()` to `toPb(Map<Integer, Column> columnMap, List<Integer>
indexColumnUniqueIds)`
Updated all callers to pass column IDs as parameters
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/3.0.4-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants