Skip to content

Conversation

@wuwenchi
Copy link
Contributor

@wuwenchi wuwenchi commented Mar 28, 2025

What problem does this PR solve?

Problem Summary:

schema from paimon to doris:
before:
varchar(1) -> text
char(1) -> text

after:
varchar(1) -> varchar(1)
char(1) -> char(1)

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

@Thearas
Copy link
Contributor

Thearas commented Mar 28, 2025

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?

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	26019	5110	5040	5040
q2	2061	294	169	169
q3	10400	1240	695	695
q4	10215	1006	517	517
q5	7507	2386	2326	2326
q6	191	164	134	134
q7	910	739	608	608
q8	9326	1249	987	987
q9	6810	5147	5208	5147
q10	6796	2295	1894	1894
q11	485	272	246	246
q12	341	352	218	218
q13	17768	3672	3051	3051
q14	237	230	202	202
q15	553	493	495	493
q16	630	634	594	594
q17	561	850	357	357
q18	7867	7141	7195	7141
q19	1092	930	546	546
q20	320	337	200	200
q21	3785	2598	2341	2341
q22	1074	1028	956	956
Total cold run time: 114948 ms
Total hot run time: 33862 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5140	5137	5167	5137
q2	246	338	227	227
q3	2149	2661	2255	2255
q4	1389	1800	1377	1377
q5	4485	4447	4432	4432
q6	224	165	124	124
q7	1934	1907	1732	1732
q8	2852	2539	2527	2527
q9	7188	7182	7134	7134
q10	2977	3181	2748	2748
q11	573	504	499	499
q12	716	781	613	613
q13	3471	3890	3350	3350
q14	289	283	261	261
q15	550	508	520	508
q16	631	667	623	623
q17	1132	1535	1388	1388
q18	7810	7579	7563	7563
q19	814	817	930	817
q20	1968	2028	1848	1848
q21	5061	4678	4596	4596
q22	1075	1016	978	978
Total cold run time: 52674 ms
Total hot run time: 50737 ms

@doris-robot
Copy link

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

query1	1041	479	476	476
query2	6540	1935	1908	1908
query3	6810	212	215	212
query4	26369	23271	23274	23271
query5	4351	644	469	469
query6	290	203	206	203
query7	4622	473	279	279
query8	299	252	238	238
query9	8613	2571	2533	2533
query10	474	318	254	254
query11	15717	15064	14780	14780
query12	173	122	106	106
query13	1690	542	400	400
query14	8739	6198	6126	6126
query15	200	195	170	170
query16	7665	645	513	513
query17	1218	709	575	575
query18	1983	414	317	317
query19	199	197	161	161
query20	120	122	124	122
query21	215	124	104	104
query22	4306	4423	4201	4201
query23	34016	32930	33002	32930
query24	8402	2366	2378	2366
query25	514	443	400	400
query26	1224	264	145	145
query27	2760	482	323	323
query28	4348	2397	2380	2380
query29	747	561	417	417
query30	285	232	192	192
query31	925	875	766	766
query32	73	69	61	61
query33	557	363	319	319
query34	779	829	500	500
query35	799	820	761	761
query36	964	997	902	902
query37	114	97	77	77
query38	4121	4158	4094	4094
query39	1439	1410	1383	1383
query40	203	112	103	103
query41	56	55	51	51
query42	117	103	106	103
query43	500	486	485	485
query44	1318	799	816	799
query45	179	170	166	166
query46	822	1024	610	610
query47	1773	1805	1741	1741
query48	367	410	308	308
query49	775	528	418	418
query50	681	713	407	407
query51	4145	4226	4129	4129
query52	131	102	101	101
query53	225	252	176	176
query54	482	504	415	415
query55	84	82	79	79
query56	265	272	255	255
query57	1149	1158	1067	1067
query58	253	233	233	233
query59	2585	2772	2578	2578
query60	293	276	267	267
query61	133	136	130	130
query62	782	746	692	692
query63	219	183	189	183
query64	4258	1068	681	681
query65	4323	4235	4272	4235
query66	1155	410	303	303
query67	15974	15664	15341	15341
query68	8166	875	521	521
query69	478	311	267	267
query70	1212	1129	1076	1076
query71	486	293	267	267
query72	5588	4794	4798	4794
query73	718	592	347	347
query74	8866	9088	8626	8626
query75	3953	3190	2725	2725
query76	3752	1179	737	737
query77	777	373	290	290
query78	10023	10055	9357	9357
query79	2286	810	570	570
query80	609	528	444	444
query81	497	259	222	222
query82	500	125	102	102
query83	216	173	158	158
query84	281	100	79	79
query85	786	373	378	373
query86	392	295	296	295
query87	4381	4461	4311	4311
query88	3515	2248	2199	2199
query89	378	310	279	279
query90	1839	218	213	213
query91	163	149	111	111
query92	77	59	57	57
query93	1679	1026	590	590
query94	681	421	315	315
query95	357	272	264	264
query96	482	554	278	278
query97	3116	3257	3175	3175
query98	229	214	205	205
query99	1463	1374	1277	1277
Total cold run time: 274894 ms
Total hot run time: 186014 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.13	0.11	0.11
query3	0.25	0.19	0.19
query4	1.59	0.19	0.20
query5	0.58	0.59	0.58
query6	1.20	0.71	0.71
query7	0.02	0.02	0.02
query8	0.04	0.03	0.04
query9	0.59	0.52	0.52
query10	0.58	0.60	0.56
query11	0.16	0.11	0.11
query12	0.14	0.11	0.11
query13	0.62	0.60	0.59
query14	2.66	2.80	2.81
query15	0.91	0.86	0.86
query16	0.38	0.38	0.39
query17	1.04	1.04	0.99
query18	0.22	0.20	0.20
query19	1.93	1.92	1.86
query20	0.01	0.01	0.01
query21	15.35	0.87	0.54
query22	0.75	1.07	0.62
query23	15.18	1.38	0.63
query24	7.21	0.87	0.82
query25	0.47	0.19	0.22
query26	0.66	0.17	0.13
query27	0.05	0.05	0.04
query28	9.83	0.84	0.42
query29	12.55	3.90	3.30
query30	0.25	0.09	0.06
query31	2.83	0.59	0.38
query32	3.25	0.55	0.47
query33	3.07	3.09	3.00
query34	15.84	5.14	4.50
query35	4.54	4.49	4.51
query36	0.66	0.49	0.48
query37	0.08	0.06	0.06
query38	0.05	0.03	0.03
query39	0.03	0.02	0.02
query40	0.16	0.12	0.12
query41	0.08	0.03	0.02
query42	0.03	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 106.05 s
Total hot run time: 31.22 s

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	25619	5095	4999	4999
q2	2065	349	159	159
q3	10347	1239	704	704
q4	10239	996	543	543
q5	7521	2310	2344	2310
q6	183	160	132	132
q7	891	747	604	604
q8	9303	1277	1028	1028
q9	6730	4983	4998	4983
q10	6856	2303	1903	1903
q11	470	273	257	257
q12	362	361	219	219
q13	17780	3644	3079	3079
q14	225	228	210	210
q15	521	490	489	489
q16	624	609	580	580
q17	584	848	347	347
q18	7475	7135	7156	7135
q19	1765	953	582	582
q20	329	326	194	194
q21	4031	2666	2386	2386
q22	1024	1024	958	958
Total cold run time: 114944 ms
Total hot run time: 33801 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5135	5078	5080	5078
q2	248	328	232	232
q3	2234	2684	2337	2337
q4	1449	1822	1385	1385
q5	4500	4452	4517	4452
q6	218	175	133	133
q7	1983	1938	1787	1787
q8	2564	2621	2488	2488
q9	7242	7179	6942	6942
q10	3016	3152	2717	2717
q11	583	507	514	507
q12	713	811	623	623
q13	3537	3856	3319	3319
q14	277	292	280	280
q15	527	498	470	470
q16	657	694	649	649
q17	1152	1601	1336	1336
q18	7719	7572	7489	7489
q19	813	834	998	834
q20	1970	1961	1844	1844
q21	5281	5236	4742	4742
q22	1090	1040	1015	1015
Total cold run time: 52908 ms
Total hot run time: 50659 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 192454 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 939f583a606e7066bd71a24b1e4b02183b892e99, data reload: false

query1	1397	1064	1056	1056
query2	6163	1960	1918	1918
query3	11067	4467	4553	4467
query4	52591	25230	23303	23303
query5	5109	557	473	473
query6	338	202	196	196
query7	4900	490	280	280
query8	329	254	245	245
query9	5380	2555	2535	2535
query10	412	319	259	259
query11	15035	15118	14790	14790
query12	163	114	102	102
query13	1025	517	408	408
query14	10048	6242	6268	6242
query15	206	204	181	181
query16	7097	667	527	527
query17	1050	726	565	565
query18	1526	408	303	303
query19	191	188	157	157
query20	137	127	133	127
query21	209	121	107	107
query22	4409	4386	4472	4386
query23	33843	33409	33034	33034
query24	6656	2432	2404	2404
query25	454	464	402	402
query26	692	262	146	146
query27	2248	502	329	329
query28	3427	2450	2425	2425
query29	628	573	465	465
query30	280	217	202	202
query31	891	897	802	802
query32	74	71	65	65
query33	490	406	331	331
query34	768	856	516	516
query35	797	846	773	773
query36	924	1013	919	919
query37	132	113	89	89
query38	4288	4154	4472	4154
query39	1523	1464	1459	1459
query40	208	119	117	117
query41	64	63	55	55
query42	137	113	113	113
query43	531	512	487	487
query44	1294	829	814	814
query45	181	196	175	175
query46	833	1043	668	668
query47	1867	1850	1748	1748
query48	388	419	298	298
query49	681	510	440	440
query50	715	742	414	414
query51	4296	4352	4202	4202
query52	115	109	104	104
query53	237	255	189	189
query54	490	529	415	415
query55	83	80	80	80
query56	275	282	269	269
query57	1153	1199	1111	1111
query58	237	238	242	238
query59	2792	2819	2793	2793
query60	285	294	264	264
query61	128	126	127	126
query62	723	789	706	706
query63	230	189	185	185
query64	1555	1042	778	778
query65	4507	4247	4246	4246
query66	768	391	286	286
query67	15970	15509	15396	15396
query68	7065	880	515	515
query69	548	299	262	262
query70	1197	1066	1119	1066
query71	508	295	259	259
query72	6067	4853	4982	4853
query73	1509	693	352	352
query74	8850	9108	8864	8864
query75	3897	3239	2708	2708
query76	4184	1195	777	777
query77	651	382	283	283
query78	10032	10207	9277	9277
query79	2006	809	571	571
query80	630	518	454	454
query81	528	246	218	218
query82	433	121	95	95
query83	176	171	155	155
query84	283	94	80	80
query85	780	361	305	305
query86	361	303	298	298
query87	4621	4550	4353	4353
query88	3525	2230	2237	2230
query89	395	308	275	275
query90	1890	212	216	212
query91	143	141	111	111
query92	75	62	54	54
query93	1250	1097	588	588
query94	669	408	307	307
query95	355	270	259	259
query96	486	566	283	283
query97	3131	3234	3064	3064
query98	231	209	202	202
query99	1436	1452	1265	1265
Total cold run time: 295552 ms
Total hot run time: 192454 ms

@doris-robot
Copy link

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

query1	0.03	0.03	0.03
query2	0.11	0.10	0.11
query3	0.24	0.19	0.19
query4	1.59	0.19	0.19
query5	0.59	0.56	0.58
query6	1.17	0.71	0.72
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.58	0.50	0.51
query10	0.58	0.59	0.57
query11	0.15	0.10	0.10
query12	0.14	0.11	0.11
query13	0.62	0.60	0.60
query14	2.64	2.66	2.80
query15	0.92	0.86	0.85
query16	0.38	0.37	0.38
query17	1.03	1.01	1.01
query18	0.21	0.20	0.20
query19	1.86	1.83	1.95
query20	0.01	0.02	0.01
query21	15.38	0.89	0.55
query22	0.73	1.17	0.71
query23	14.92	1.35	0.66
query24	7.25	1.23	0.84
query25	0.49	0.10	0.22
query26	0.58	0.15	0.12
query27	0.05	0.05	0.04
query28	9.38	0.89	0.43
query29	12.58	3.93	3.25
query30	0.25	0.09	0.06
query31	2.84	0.58	0.38
query32	3.22	0.54	0.47
query33	2.97	3.00	3.09
query34	15.78	5.06	4.44
query35	4.50	4.51	4.48
query36	0.67	0.48	0.47
query37	0.08	0.07	0.06
query38	0.05	0.04	0.03
query39	0.03	0.02	0.02
query40	0.17	0.12	0.13
query41	0.07	0.03	0.02
query42	0.04	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 104.98 s
Total hot run time: 30.92 s

@wuwenchi
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	26282	5004	4963	4963
q2	2067	286	156	156
q3	10421	1200	705	705
q4	10226	1014	526	526
q5	7512	2353	2340	2340
q6	176	162	130	130
q7	925	751	594	594
q8	9301	1281	1006	1006
q9	6879	5202	5125	5125
q10	6859	2299	1868	1868
q11	489	271	261	261
q12	344	364	220	220
q13	17776	3672	3085	3085
q14	230	225	210	210
q15	544	490	483	483
q16	620	620	594	594
q17	560	836	350	350
q18	7379	7180	7162	7162
q19	1488	957	528	528
q20	309	319	188	188
q21	3764	2608	2351	2351
q22	1067	1010	981	981
Total cold run time: 115218 ms
Total hot run time: 33826 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5160	5065	5031	5031
q2	240	322	227	227
q3	2130	2618	2292	2292
q4	1360	1812	1356	1356
q5	4435	4356	4440	4356
q6	214	170	126	126
q7	2014	1899	1765	1765
q8	2594	2516	2528	2516
q9	7372	7174	7062	7062
q10	3069	3212	2744	2744
q11	589	504	493	493
q12	684	772	622	622
q13	3487	3890	3270	3270
q14	279	292	282	282
q15	521	498	493	493
q16	674	691	636	636
q17	1148	1575	1376	1376
q18	7795	7655	7393	7393
q19	807	807	889	807
q20	1995	1967	1835	1835
q21	5105	4789	4734	4734
q22	1108	1055	1048	1048
Total cold run time: 52780 ms
Total hot run time: 50464 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 195128 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 0046be66db593373eeb0bba5d67a2d4f150efd8f, data reload: false

query1	1402	1080	1032	1032
query2	6298	1971	1939	1939
query3	11168	4828	4819	4819
query4	25750	24091	23682	23682
query5	4871	724	518	518
query6	304	203	201	201
query7	3997	536	279	279
query8	310	264	240	240
query9	8490	2545	2527	2527
query10	502	319	262	262
query11	15613	15263	14824	14824
query12	163	123	113	113
query13	1562	527	396	396
query14	9545	6749	6843	6749
query15	255	194	175	175
query16	7594	699	477	477
query17	1104	790	593	593
query18	2068	422	329	329
query19	205	197	164	164
query20	125	130	128	128
query21	209	126	117	117
query22	4559	4573	4308	4308
query23	34690	33458	33348	33348
query24	8715	2537	2494	2494
query25	533	498	414	414
query26	1187	286	147	147
query27	2779	539	344	344
query28	4833	2413	2418	2413
query29	709	626	467	467
query30	281	236	203	203
query31	938	901	805	805
query32	75	67	63	63
query33	552	393	340	340
query34	828	955	526	526
query35	899	926	812	812
query36	1023	1057	955	955
query37	118	103	76	76
query38	4288	4322	4294	4294
query39	1510	1488	1488	1488
query40	220	120	111	111
query41	53	57	58	57
query42	120	109	107	107
query43	513	543	481	481
query44	1403	836	820	820
query45	185	184	183	183
query46	914	1174	683	683
query47	1878	1886	1793	1793
query48	405	438	301	301
query49	785	554	418	418
query50	758	833	428	428
query51	4344	4395	4286	4286
query52	103	111	104	104
query53	233	283	191	191
query54	512	533	434	434
query55	87	83	85	83
query56	325	276	255	255
query57	1232	1248	1150	1150
query58	268	257	255	255
query59	2651	2753	2745	2745
query60	312	288	275	275
query61	128	127	126	126
query62	869	812	740	740
query63	237	193	191	191
query64	4012	1110	739	739
query65	4595	4379	4429	4379
query66	942	441	314	314
query67	16233	15395	15158	15158
query68	7780	907	506	506
query69	445	317	273	273
query70	1214	1091	1129	1091
query71	426	302	261	261
query72	5744	4907	4884	4884
query73	636	643	351	351
query74	9422	8981	9092	8981
query75	3657	3419	2786	2786
query76	3300	1342	843	843
query77	760	396	283	283
query78	10023	10138	9372	9372
query79	2287	912	583	583
query80	622	542	464	464
query81	494	271	228	228
query82	451	134	102	102
query83	182	179	167	167
query84	237	99	78	78
query85	790	366	424	366
query86	367	291	307	291
query87	4543	4548	4329	4329
query88	3986	2276	2232	2232
query89	446	334	297	297
query90	1837	225	226	225
query91	194	143	115	115
query92	80	64	61	61
query93	1901	1066	585	585
query94	636	446	300	300
query95	361	279	267	267
query96	489	621	276	276
query97	3244	3322	3137	3137
query98	230	205	208	205
query99	1472	1484	1321	1321
Total cold run time: 282625 ms
Total hot run time: 195128 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.02
query2	0.13	0.11	0.10
query3	0.25	0.20	0.19
query4	1.59	0.19	0.18
query5	0.59	0.57	0.59
query6	1.18	0.71	0.71
query7	0.03	0.02	0.01
query8	0.04	0.04	0.04
query9	0.60	0.51	0.51
query10	0.57	0.59	0.56
query11	0.15	0.11	0.11
query12	0.14	0.12	0.12
query13	0.62	0.59	0.62
query14	2.70	2.81	2.72
query15	0.93	0.86	0.84
query16	0.38	0.38	0.38
query17	1.05	0.99	1.04
query18	0.21	0.20	0.20
query19	1.88	1.90	1.80
query20	0.02	0.01	0.01
query21	15.40	0.93	0.55
query22	0.77	1.09	0.75
query23	14.90	1.40	0.66
query24	7.32	1.18	1.51
query25	0.47	0.33	0.06
query26	0.53	0.15	0.13
query27	0.05	0.05	0.05
query28	9.84	0.88	0.44
query29	12.57	3.93	3.28
query30	0.25	0.09	0.07
query31	2.82	0.58	0.38
query32	3.23	0.54	0.46
query33	2.98	3.14	3.09
query34	15.77	5.15	4.47
query35	4.59	4.53	4.53
query36	0.67	0.49	0.49
query37	0.09	0.07	0.06
query38	0.05	0.04	0.03
query39	0.03	0.03	0.02
query40	0.17	0.13	0.12
query41	0.08	0.03	0.03
query42	0.04	0.03	0.02
query43	0.04	0.03	0.03
Total cold run time: 105.76 s
Total hot run time: 31.55 s

Copy link
Contributor

@morningman morningman 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 Mar 31, 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.

@morningman morningman merged commit 38fe4a6 into apache:master Mar 31, 2025
28 of 30 checks passed
koarz pushed a commit to koarz/doris that referenced this pull request Jun 4, 2025
…#49623)

### What problem does this PR solve?

Problem Summary:

schema from paimon to doris:
before:
varchar(1) -> text
char(1) -> text

after:
varchar(1) -> varchar(1)
char(1) -> char(1)
morningman pushed a commit to morningman/doris that referenced this pull request Jun 29, 2025
…#49623)

### What problem does this PR solve?

Problem Summary:

schema from paimon to doris:
before:
varchar(1) -> text
char(1) -> text

after:
varchar(1) -> varchar(1)
char(1) -> char(1)
github-actions bot pushed a commit that referenced this pull request Jun 29, 2025
### What problem does this PR solve?

Problem Summary:

schema from paimon to doris:
before:
varchar(1) -> text
char(1) -> text

after:
varchar(1) -> varchar(1)
char(1) -> char(1)
morrySnow pushed a commit that referenced this pull request Jun 30, 2025
…char #49623 (#52465)

Cherry-picked from #49623

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
morrySnow pushed a commit that referenced this pull request Jun 30, 2025
…char #49623 (#52464)

bp #49623

Co-authored-by: wuwenchi <wuwenchi@selectdb.com>
morningman pushed a commit that referenced this pull request Aug 28, 2025
…type mapping (#55051)

### What problem does this PR solve?
In PR #49623, we implemented
conversion from Paimon `VARCHAR/CHAR` types to Doris `VARCHAR/CHAR`
types. However, there are significant differences in the maximum length
constraints between these systems:

**Apache Paimon:**
- `CHAR` : Fixed-length character string declared using CHAR(n) where n
is the number of code points. n must have a value between `1` and
`2,147,483,647` (inclusive). Defaults to n=1 if no length is specified.
- `VARCHAR`: Variable-length character string declared using VARCHAR(n)
where n is the maximum number of code points. n must have a value
between `1` and `2,147,483,647` (inclusive). Defaults to n=1 if no
length is specified.

**Apache Doris:**
- `CHAR `: Maximum length is `255` characters
- `VARCHAR` : Maximum length is `65,533` characters

**Solution:**
This PR addresses the length constraint mismatch by automatically
converting oversized Paimon VARCHAR/CHAR types to Doris STRING type when
they exceed Doris limits:
- Paimon `VARCHAR` with length > 65,533 → Doris `STRING`
- Paimon `CHAR` with length > 255 → Doris `STRING`

This ensures compatibility while preserving data integrity during type
mapping from Paimon to Doris.
github-actions bot pushed a commit that referenced this pull request Aug 28, 2025
…type mapping (#55051)

### What problem does this PR solve?
In PR #49623, we implemented
conversion from Paimon `VARCHAR/CHAR` types to Doris `VARCHAR/CHAR`
types. However, there are significant differences in the maximum length
constraints between these systems:

**Apache Paimon:**
- `CHAR` : Fixed-length character string declared using CHAR(n) where n
is the number of code points. n must have a value between `1` and
`2,147,483,647` (inclusive). Defaults to n=1 if no length is specified.
- `VARCHAR`: Variable-length character string declared using VARCHAR(n)
where n is the maximum number of code points. n must have a value
between `1` and `2,147,483,647` (inclusive). Defaults to n=1 if no
length is specified.

**Apache Doris:**
- `CHAR `: Maximum length is `255` characters
- `VARCHAR` : Maximum length is `65,533` characters

**Solution:**
This PR addresses the length constraint mismatch by automatically
converting oversized Paimon VARCHAR/CHAR types to Doris STRING type when
they exceed Doris limits:
- Paimon `VARCHAR` with length > 65,533 → Doris `STRING`
- Paimon `CHAR` with length > 255 → Doris `STRING`

This ensures compatibility while preserving data integrity during type
mapping from Paimon to Doris.
vinlee19 pushed a commit to vinlee19/doris that referenced this pull request Sep 1, 2025
…type mapping (apache#55051)

### What problem does this PR solve?
In PR apache#49623, we implemented
conversion from Paimon `VARCHAR/CHAR` types to Doris `VARCHAR/CHAR`
types. However, there are significant differences in the maximum length
constraints between these systems:

**Apache Paimon:**
- `CHAR` : Fixed-length character string declared using CHAR(n) where n
is the number of code points. n must have a value between `1` and
`2,147,483,647` (inclusive). Defaults to n=1 if no length is specified.
- `VARCHAR`: Variable-length character string declared using VARCHAR(n)
where n is the maximum number of code points. n must have a value
between `1` and `2,147,483,647` (inclusive). Defaults to n=1 if no
length is specified.

**Apache Doris:**
- `CHAR `: Maximum length is `255` characters
- `VARCHAR` : Maximum length is `65,533` characters

**Solution:**
This PR addresses the length constraint mismatch by automatically
converting oversized Paimon VARCHAR/CHAR types to Doris STRING type when
they exceed Doris limits:
- Paimon `VARCHAR` with length > 65,533 → Doris `STRING`
- Paimon `CHAR` with length > 255 → Doris `STRING`

This ensures compatibility while preserving data integrity during type
mapping from Paimon to Doris.

(cherry picked from commit 6622f50)
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.x-experimental dev/3.1.0-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants