Skip to content

[feature](be,fe) Add 3D dimension support for GEO functions (ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB - #68693

Open
kaori-seasons wants to merge 5 commits into
apache:masterfrom
kaori-seasons:issue-62498
Open

kaori-seasons wants to merge 5 commits into
apache:masterfrom
kaori-seasons:issue-62498

Conversation

@kaori-seasons

Copy link
Copy Markdown

What problem does this PR solve?

Issue Number: close #62498

Problem Summary: Doris GEO engine lacked 3D dimension support. WKT parser could not parse POINT Z / POINT M coordinates; WKB parser did not recognize EWKB Z/M flags or ISO WKB type codes (+1000/+2000/+3000), causing silent data corruption when reading PostGIS-produced 3D EWKB. This commit adds:

  • WKT parser support for Z/M/ZM dimension keywords and 3D coordinates
  • WKB parser support for EWKB Z/M flags and ISO WKB dimension type codes
  • New scalar functions: ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB
  • Proper dimension-aware WKB output (EWKB with Z/M flags)

Release note

Added ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB scalar functions and 3D WKT/WKB parsing support for GEO functions.

Check List (For Author)

  • Test: Unit tests added for wkb_parse, wkt_parse, geo_types, functions_geo; FunctionRegistryTest updated
  • Behavior changed: Yes - WKT/WKB parser now accepts 3D coordinates (Z/M/ZM)
  • Does this need documentation: Yes

@hello-stephen

Copy link
Copy Markdown
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?

@kaori-seasons kaori-seasons changed the title [feature](be,fe) Add 3D dimension support for GEO functions (ST_Z, ST… [feature](be,fe) Add 3D dimension support for GEO functions (ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB Oct 1, 2026
@kaori-seasons

Copy link
Copy Markdown
Author

@zclllyybb Could you please start CI?

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17605	3933	3905	3905
q2	2189	362	316	316
q3	10127	1389	804	804
q4	4685	482	357	357
q5	7579	816	547	547
q6	178	173	143	143
q7	748	790	594	594
q8	9319	1494	1526	1494
q9	5385	4206	4202	4202
q10	6816	1310	1015	1015
q11	441	267	239	239
q12	631	411	314	314
q13	18033	2642	2018	2018
q14	264	251	234	234
q15	q16	735	715	674	674
q17	1781	1080	979	979
q18	6410	5596	5512	5512
q19	1158	1268	992	992
q20	474	383	252	252
q21	5325	3022	2905	2905
q22	453	375	321	321
Total cold run time: 100336 ms
Total hot run time: 27817 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4590	4499	4513	4499
q2	735	558	546	546
q3	4702	5371	4621	4621
q4	2243	2333	1503	1503
q5	4449	4605	4408	4408
q6	236	174	129	129
q7	1913	1728	1476	1476
q8	2371	2052	1992	1992
q9	7491	7296	6832	6832
q10	3628	3556	3078	3078
q11	520	385	385	385
q12	730	716	509	509
q13	2270	2610	1995	1995
q14	260	273	245	245
q15	q16	670	685	603	603
q17	7288	6736	6635	6635
q18	11939	11084	11688	11084
q19	1121	990	1025	990
q20	2219	2189	1921	1921
q21	4981	4156	4301	4156
q22	521	451	413	413
Total cold run time: 64877 ms
Total hot run time: 58020 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 153021 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 d9a9fb7e417588e2eb1f7e62b9103052b71a7aa7, data reload: false

query5	4350	608	473	473
query6	417	220	204	204
query7	4817	566	307	307
query8	325	186	178	178
query9	8821	3984	4005	3984
query10	457	318	257	257
query11	5834	3535	3212	3212
query12	149	103	88	88
query13	1256	634	416	416
query14	6552	4623	4345	4345
query14_1	4103	4095	4114	4095
query15	203	200	183	183
query16	979	461	446	446
query17	929	687	540	540
query18	2438	469	332	332
query19	202	187	145	145
query20	83	81	81	81
query21	228	140	119	119
query22	13020	13004	12861	12861
query23	13877	12849	12604	12604
query23_1	12496	12559	12499	12499
query24	7264	1106	637	637
query24_1	635	691	680	680
query25	544	401	352	352
query26	1304	313	156	156
query27	2680	565	321	321
query28	4544	1996	1974	1974
query29	1562	698	514	514
query30	316	218	183	183
query31	876	757	621	621
query32	147	92	95	92
query33	501	315	250	250
query34	1220	1117	642	642
query35	740	758	648	648
query36	791	774	724	724
query37	140	108	93	93
query38	1834	1769	1725	1725
query39	709	699	642	642
query39_1	630	642	657	642
query40	217	118	101	101
query41	65	66	65	65
query42	94	93	90	90
query43	340	344	301	301
query44	1372	713	719	713
query45	182	182	159	159
query46	1074	1206	706	706
query47	1500	1482	1412	1412
query48	368	401	314	314
query49	587	418	294	294
query50	953	335	254	254
query51	10476	10368	10373	10368
query52	88	88	73	73
query53	246	253	186	186
query54	266	204	207	204
query55	81	76	68	68
query56	242	206	216	206
query57	1529	1433	1313	1313
query58	294	256	254	254
query59	1987	2044	1865	1865
query60	303	247	226	226
query61	146	150	150	150
query62	396	322	270	270
query63	216	179	178	178
query64	2829	975	793	793
query65	3504	3443	3443	3443
query66	1813	426	311	311
query67	19853	20080	19673	19673
query68	3190	1493	960	960
query69	416	321	273	273
query70	928	859	826	826
query71	304	243	221	221
query72	2806	2572	2369	2369
query73	804	759	398	398
query74	4624	4484	4279	4279
query75	2302	2307	1973	1973
query76	2314	1107	745	745
query77	357	411	310	310
query78	8998	9143	8474	8474
query79	1383	1223	774	774
query80	573	467	369	369
query81	536	323	291	291
query82	654	162	131	131
query83	321	233	203	203
query84	368	145	116	116
query85	891	471	384	384
query86	349	246	225	225
query87	1997	1971	1855	1855
query88	3616	2730	2732	2730
query89	375	290	248	248
query90	1900	179	185	179
query91	170	155	131	131
query92	102	83	91	83
query93	1534	1531	853	853
query94	536	333	295	295
query95	643	462	334	334
query96	987	753	325	325
query97	2420	2427	2332	2332
query98	159	151	155	151
query99	715	739	632	632
Total cold run time: 235902 ms
Total hot run time: 153021 ms

@hello-stephen

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

query1	0.00	0.01	0.00
query2	0.09	0.05	0.05
query3	0.26	0.14	0.13
query4	1.61	0.14	0.14
query5	0.24	0.23	0.22
query6	1.17	0.96	0.90
query7	0.04	0.03	0.00
query8	0.06	0.04	0.03
query9	0.39	0.35	0.33
query10	0.53	0.58	0.53
query11	0.21	0.14	0.13
query12	0.18	0.15	0.15
query13	0.47	0.48	0.46
query14	0.96	0.96	0.95
query15	0.59	0.59	0.58
query16	0.30	0.31	0.33
query17	1.12	1.13	1.09
query18	0.21	0.20	0.20
query19	1.96	1.96	1.91
query20	0.02	0.01	0.01
query21	15.49	0.18	0.13
query22	4.95	0.05	0.06
query23	16.19	0.30	0.12
query24	2.93	0.41	0.33
query25	0.14	0.06	0.04
query26	0.77	0.21	0.16
query27	0.03	0.04	0.03
query28	3.49	0.74	0.35
query29	12.48	4.10	3.28
query30	0.28	0.15	0.15
query31	2.77	0.57	0.31
query32	3.22	0.60	0.49
query33	3.20	3.21	3.19
query34	15.56	3.91	3.29
query35	3.22	3.24	3.24
query36	0.55	0.43	0.43
query37	0.09	0.07	0.06
query38	0.05	0.03	0.04
query39	0.03	0.03	0.04
query40	0.17	0.15	0.14
query41	0.09	0.03	0.03
query42	0.03	0.03	0.03
query43	0.04	0.03	0.03
Total cold run time: 96.18 s
Total hot run time: 24.06 s

@kaori-seasons

kaori-seasons commented Oct 1, 2026 •

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17847	4002	3915	3915
q2	2190	365	312	312
q3	10066	1376	775	775
q4	4688	472	343	343
q5	7491	832	538	538
q6	175	169	136	136
q7	728	778	597	597
q8	9355	1486	1501	1486
q9	5374	4192	4155	4155
q10	6834	1320	1019	1019
q11	431	276	236	236
q12	634	429	303	303
q13	18051	2609	1975	1975
q14	263	248	237	237
q15	q16	731	721	655	655
q17	1813	1062	976	976
q18	6427	5565	5492	5492
q19	1179	1215	1065	1065
q20	484	386	255	255
q21	5443	3051	2925	2925
q22	450	353	319	319
Total cold run time: 100654 ms
Total hot run time: 27714 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4641	4528	4484	4484
q2	744	561	532	532
q3	4754	5329	4575	4575
q4	2214	2329	1485	1485
q5	4664	4347	4471	4347
q6	238	181	129	129
q7	1802	1685	1475	1475
q8	2265	2046	1988	1988
q9	7356	6861	6801	6801
q10	3629	3532	3054	3054
q11	515	372	347	347
q12	710	701	497	497
q13	2295	2590	1984	1984
q14	279	270	245	245
q15	q16	665	675	604	604
q17	7303	6726	6669	6669
q18	11909	11098	11760	11098
q19	1104	1003	1007	1003
q20	2216	2182	1890	1890
q21	5003	4098	4269	4098
q22	505	437	406	406
Total cold run time: 64811 ms
Total hot run time: 57711 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 152531 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 9b23847ddd395b6a47bda5b61f7385795e4d1ac7, data reload: false

query5	4319	613	480	480
query6	433	218	209	209
query7	4956	560	284	284
query8	333	183	164	164
query9	8804	3996	3984	3984
query10	449	306	259	259
query11	5843	3541	3197	3197
query12	144	101	85	85
query13	1291	564	401	401
query14	6533	4514	4237	4237
query14_1	3994	3987	3995	3987
query15	207	197	184	184
query16	998	475	427	427
query17	910	664	548	548
query18	2437	489	314	314
query19	192	174	137	137
query20	84	79	80	79
query21	231	133	114	114
query22	12989	13032	12903	12903
query23	13926	12897	12348	12348
query23_1	12489	12509	12480	12480
query24	7261	1123	721	721
query24_1	684	715	717	715
query25	531	412	355	355
query26	1266	289	162	162
query27	2700	581	340	340
query28	4538	1966	1947	1947
query29	1641	705	523	523
query30	303	223	193	193
query31	886	754	625	625
query32	138	94	95	94
query33	521	307	244	244
query34	1188	1123	635	635
query35	711	737	629	629
query36	792	810	715	715
query37	145	101	90	90
query38	1820	1752	1693	1693
query39	708	670	650	650
query39_1	638	651	658	651
query40	222	127	101	101
query41	65	64	65	64
query42	95	91	89	89
query43	328	344	298	298
query44	1361	701	709	701
query45	187	182	160	160
query46	1083	1166	726	726
query47	1489	1498	1412	1412
query48	405	420	296	296
query49	598	421	302	302
query50	958	342	255	255
query51	10323	10523	10390	10390
query52	95	93	79	79
query53	243	251	187	187
query54	266	234	203	203
query55	82	82	71	71
query56	240	246	205	205
query57	1345	1539	1410	1410
query58	281	265	246	246
query59	1967	2045	1876	1876
query60	295	231	230	230
query61	147	143	138	138
query62	397	324	262	262
query63	219	181	176	176
query64	2819	1027	802	802
query65	3468	3407	3433	3407
query66	1807	429	302	302
query67	20117	19920	19870	19870
query68	3111	1459	907	907
query69	403	318	249	249
query70	902	839	790	790
query71	287	221	205	205
query72	2631	2552	2169	2169
query73	845	774	417	417
query74	4694	4531	4326	4326
query75	2333	2341	1961	1961
query76	2303	1165	762	762
query77	355	411	306	306
query78	8942	8933	8481	8481
query79	1257	1162	748	748
query80	535	460	351	351
query81	525	323	271	271
query82	271	164	130	130
query83	222	219	194	194
query84	296	142	113	113
query85	802	480	392	392
query86	287	244	231	231
query87	1974	1958	1845	1845
query88	3584	2716	2714	2714
query89	333	288	240	240
query90	2127	176	175	175
query91	167	159	128	128
query92	103	89	92	89
query93	1348	1385	908	908
query94	527	352	323	323
query95	670	474	343	343
query96	1095	827	357	357
query97	2438	2414	2310	2310
query98	162	149	148	148
query99	729	703	611	611
Total cold run time: 234822 ms
Total hot run time: 152531 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 23.99 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 9b23847ddd395b6a47bda5b61f7385795e4d1ac7, data reload: false

query1	0.01	0.00	0.00
query2	0.10	0.06	0.05
query3	0.26	0.14	0.14
query4	1.60	0.14	0.14
query5	0.25	0.21	0.22
query6	1.15	0.98	0.89
query7	0.04	0.01	0.01
query8	0.06	0.04	0.03
query9	0.39	0.34	0.35
query10	0.60	0.54	0.53
query11	0.22	0.14	0.15
query12	0.18	0.15	0.14
query13	0.46	0.46	0.47
query14	0.96	0.94	0.95
query15	0.59	0.60	0.58
query16	0.31	0.34	0.32
query17	1.08	1.08	1.08
query18	0.22	0.20	0.19
query19	2.02	1.93	1.93
query20	0.02	0.01	0.02
query21	15.48	0.22	0.13
query22	4.87	0.06	0.06
query23	16.15	0.31	0.13
query24	2.97	0.42	0.31
query25	0.09	0.06	0.05
query26	0.73	0.20	0.15
query27	0.04	0.04	0.04
query28	3.58	0.78	0.34
query29	12.48	4.13	3.31
query30	0.29	0.15	0.15
query31	2.77	0.56	0.30
query32	3.22	0.60	0.49
query33	3.20	3.25	3.16
query34	15.55	3.93	3.27
query35	3.23	3.21	3.24
query36	0.55	0.44	0.42
query37	0.09	0.07	0.06
query38	0.04	0.04	0.03
query39	0.03	0.02	0.03
query40	0.17	0.15	0.16
query41	0.08	0.02	0.02
query42	0.04	0.03	0.03
query43	0.04	0.03	0.04
Total cold run time: 96.21 s
Total hot run time: 23.99 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 88.04% (81/92) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 65.07% (30811/47347)
Line Coverage 49.87% (323656/649030)
Region Coverage 45.33% (261502/576823)
Branch Coverage 47.01% (122727/261064)

@kaori-seasons

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17846	3917	3916	3916
q2	2208	394	315	315
q3	10057	1341	792	792
q4	4691	474	359	359
q5	7502	839	548	548
q6	177	174	137	137
q7	722	773	608	608
q8	9295	1503	1506	1503
q9	5435	4163	4153	4153
q10	6817	1318	1015	1015
q11	443	257	237	237
q12	639	411	290	290
q13	18059	2627	1993	1993
q14	257	247	228	228
q15	q16	735	717	655	655
q17	1734	1088	973	973
q18	6447	5575	5557	5557
q19	1162	1288	1076	1076
q20	496	392	263	263
q21	5423	3015	2886	2886
q22	438	357	307	307
Total cold run time: 100583 ms
Total hot run time: 27811 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4591	4545	4503	4503
q2	744	567	525	525
q3	4701	5282	4611	4611
q4	2179	2304	1468	1468
q5	4642	4453	4434	4434
q6	229	172	129	129
q7	1841	1781	1562	1562
q8	2322	2001	2016	2001
q9	7377	7079	6787	6787
q10	3613	3592	3065	3065
q11	518	374	344	344
q12	705	710	513	513
q13	2259	2587	1971	1971
q14	269	276	246	246
q15	q16	666	683	609	609
q17	7292	6729	6645	6645
q18	11853	11024	11781	11024
q19	1102	1025	1006	1006
q20	2219	2185	1908	1908
q21	5012	4070	4328	4070
q22	518	453	408	408
Total cold run time: 64652 ms
Total hot run time: 57829 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 153108 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 72c0bfbaed98085ce7543def4a9188f5e32d7baa, data reload: false

query5	4348	630	470	470
query6	439	225	204	204
query7	4811	523	303	303
query8	346	182	168	168
query9	8831	4007	4022	4007
query10	466	313	262	262
query11	5809	3547	3237	3237
query12	151	92	88	88
query13	1267	599	429	429
query14	6548	4603	4330	4330
query14_1	4036	4035	4018	4018
query15	215	200	184	184
query16	990	472	444	444
query17	913	680	549	549
query18	2429	472	339	339
query19	207	184	143	143
query20	91	82	82	82
query21	218	133	118	118
query22	13063	13029	12843	12843
query23	13926	12951	12532	12532
query23_1	12485	12668	12458	12458
query24	7251	1131	640	640
query24_1	670	702	738	702
query25	571	433	365	365
query26	1257	328	168	168
query27	2661	571	334	334
query28	4539	1976	1982	1976
query29	1644	707	576	576
query30	305	222	188	188
query31	893	748	640	640
query32	139	96	95	95
query33	525	302	237	237
query34	1192	1138	636	636
query35	716	748	633	633
query36	796	825	700	700
query37	143	104	90	90
query38	1829	1753	1684	1684
query39	683	658	671	658
query39_1	635	641	640	640
query40	220	122	96	96
query41	64	63	62	62
query42	98	96	90	90
query43	349	348	331	331
query44	1405	699	697	697
query45	185	182	159	159
query46	1034	1213	726	726
query47	1502	1482	1420	1420
query48	388	432	306	306
query49	586	427	294	294
query50	1039	358	275	275
query51	10610	10792	10686	10686
query52	89	88	74	74
query53	247	254	184	184
query54	250	207	192	192
query55	76	74	68	68
query56	226	218	213	213
query57	1382	1406	1269	1269
query58	280	262	254	254
query59	1973	2065	1834	1834
query60	281	245	221	221
query61	148	143	147	143
query62	395	319	267	267
query63	212	170	175	170
query64	2804	1001	815	815
query65	3495	3435	3420	3420
query66	1806	412	295	295
query67	20035	19873	20246	19873
query68	3416	1490	931	931
query69	429	305	263	263
query70	945	866	851	851
query71	295	242	224	224
query72	2701	2501	2209	2209
query73	804	741	428	428
query74	4625	4469	4293	4293
query75	2285	2271	1940	1940
query76	2320	1109	749	749
query77	364	407	298	298
query78	9026	9102	8433	8433
query79	1183	1240	754	754
query80	531	451	373	373
query81	532	320	283	283
query82	321	165	150	150
query83	316	215	191	191
query84	319	143	113	113
query85	836	449	376	376
query86	339	252	228	228
query87	1984	1971	1832	1832
query88	3656	2711	2707	2707
query89	367	291	245	245
query90	1872	181	182	181
query91	171	154	129	129
query92	97	87	90	87
query93	1431	1475	892	892
query94	519	375	292	292
query95	654	449	329	329
query96	1012	763	335	335
query97	2417	2439	2332	2332
query98	164	149	146	146
query99	719	727	631	631
Total cold run time: 235451 ms
Total hot run time: 153108 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 72c0bfbaed98085ce7543def4a9188f5e32d7baa, data reload: false

query1	0.01	0.00	0.01
query2	0.09	0.05	0.05
query3	0.25	0.13	0.13
query4	1.61	0.14	0.14
query5	0.23	0.21	0.21
query6	1.15	0.92	0.94
query7	0.04	0.00	0.00
query8	0.06	0.04	0.04
query9	0.39	0.34	0.34
query10	0.53	0.53	0.57
query11	0.21	0.16	0.15
query12	0.19	0.14	0.14
query13	0.47	0.45	0.46
query14	0.96	0.95	0.95
query15	0.62	0.58	0.59
query16	0.30	0.31	0.31
query17	1.11	1.10	1.11
query18	0.21	0.19	0.21
query19	2.00	1.91	1.95
query20	0.02	0.02	0.01
query21	15.49	0.18	0.13
query22	5.00	0.06	0.05
query23	16.14	0.30	0.12
query24	2.90	0.43	0.33
query25	0.12	0.05	0.04
query26	0.77	0.21	0.15
query27	0.03	0.04	0.04
query28	3.47	0.77	0.35
query29	12.52	4.15	3.30
query30	0.28	0.14	0.14
query31	2.77	0.56	0.30
query32	3.23	0.59	0.48
query33	3.12	3.17	3.26
query34	15.70	3.91	3.30
query35	3.23	3.19	3.25
query36	0.55	0.44	0.40
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.17	0.14	0.14
query41	0.09	0.03	0.03
query42	0.03	0.03	0.03
query43	0.04	0.03	0.03
Total cold run time: 96.28 s
Total hot run time: 24 s

@kaori-seasons
kaori-seasons force-pushed the issue-62498 branch 2 times, most recently from c07654d to f610235 Compare October 1, 2026 11:18
@kaori-seasons

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17795	3979	3953	3953
q2	2134	367	313	313
q3	10129	1383	774	774
q4	4691	473	345	345
q5	7463	837	543	543
q6	183	170	137	137
q7	735	795	597	597
q8	9321	1409	1567	1409
q9	5453	4214	4233	4214
q10	6823	1334	1004	1004
q11	424	275	236	236
q12	635	418	294	294
q13	18066	2603	1998	1998
q14	264	262	234	234
q15	q16	730	708	663	663
q17	1700	1062	848	848
q18	6396	5584	5534	5534
q19	1178	1254	1087	1087
q20	472	392	262	262
q21	5460	3030	2946	2946
q22	432	358	306	306
Total cold run time: 100484 ms
Total hot run time: 27697 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	4606	4511	4523	4511
q2	722	555	520	520
q3	4786	5280	4601	4601
q4	2221	2330	1442	1442
q5	4643	4367	4438	4367
q6	236	196	146	146
q7	1845	1661	1487	1487
q8	2312	2076	2032	2032
q9	7338	6865	6850	6850
q10	3610	3563	3065	3065
q11	518	376	348	348
q12	705	707	502	502
q13	2290	2587	1996	1996
q14	261	274	252	252
q15	q16	671	686	607	607
q17	7293	6746	6585	6585
q18	11820	11031	11699	11031
q19	1134	1025	1024	1024
q20	2221	2185	1895	1895
q21	4964	4104	4299	4104
q22	542	439	392	392
Total cold run time: 64738 ms
Total hot run time: 57757 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 152566 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 f610235397a43758e8b6120a860462b5d0d15967, data reload: false

query5	4309	624	459	459
query6	425	203	221	203
query7	4922	545	286	286
query8	324	181	159	159
query9	8785	3934	3906	3906
query10	459	305	253	253
query11	5817	3542	3222	3222
query12	144	94	88	88
query13	1255	568	437	437
query14	6481	4528	4302	4302
query14_1	3990	3992	4284	3992
query15	204	198	193	193
query16	994	453	414	414
query17	922	679	546	546
query18	2417	486	332	332
query19	200	209	138	138
query20	81	78	84	78
query21	214	133	109	109
query22	13206	13315	13195	13195
query23	13906	12975	12394	12394
query23_1	12441	12469	12398	12398
query24	7241	1158	620	620
query24_1	700	683	732	683
query25	537	408	340	340
query26	1261	317	168	168
query27	2694	581	331	331
query28	4565	1942	1933	1933
query29	1605	713	527	527
query30	297	225	188	188
query31	892	765	621	621
query32	145	95	103	95
query33	526	311	240	240
query34	1212	1167	642	642
query35	737	761	643	643
query36	801	806	742	742
query37	138	107	88	88
query38	1843	1770	1681	1681
query39	671	701	675	675
query39_1	657	647	678	647
query40	215	119	111	111
query41	67	65	63	63
query42	94	89	92	89
query43	340	356	294	294
query44	1454	707	700	700
query45	180	175	165	165
query46	1043	1175	722	722
query47	1527	1507	1418	1418
query48	404	407	296	296
query49	601	416	288	288
query50	948	342	258	258
query51	10481	10650	10226	10226
query52	87	89	77	77
query53	242	265	187	187
query54	264	213	210	210
query55	81	77	76	76
query56	241	229	223	223
query57	1462	1405	1255	1255
query58	321	274	262	262
query59	2040	2094	1859	1859
query60	335	252	218	218
query61	135	143	141	141
query62	403	326	262	262
query63	227	182	180	180
query64	2751	969	815	815
query65	3509	3430	3438	3430
query66	1793	441	297	297
query67	20345	20372	19928	19928
query68	3228	1510	892	892
query69	400	302	256	256
query70	938	849	861	849
query71	310	243	208	208
query72	2624	2652	2276	2276
query73	847	821	430	430
query74	4677	4568	4361	4361
query75	2443	2376	1969	1969
query76	2339	1212	770	770
query77	371	424	307	307
query78	9085	9098	8464	8464
query79	1271	1145	754	754
query80	516	455	394	394
query81	521	339	280	280
query82	268	166	124	124
query83	218	223	190	190
query84	305	148	111	111
query85	830	461	379	379
query86	297	243	232	232
query87	1996	1963	1836	1836
query88	3677	2714	2685	2685
query89	337	292	246	246
query90	2108	181	186	181
query91	169	151	125	125
query92	102	99	90	90
query93	1550	1463	814	814
query94	524	358	284	284
query95	656	387	326	326
query96	1122	804	332	332
query97	2434	2396	2327	2327
query98	162	162	145	145
query99	731	709	604	604
Total cold run time: 236441 ms
Total hot run time: 152566 ms

@hello-stephen

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

query1	0.01	0.01	0.00
query2	0.09	0.04	0.04
query3	0.25	0.13	0.13
query4	1.61	0.14	0.14
query5	0.25	0.21	0.22
query6	1.15	0.93	0.94
query7	0.04	0.00	0.00
query8	0.05	0.04	0.03
query9	0.39	0.33	0.34
query10	0.56	0.53	0.56
query11	0.20	0.14	0.14
query12	0.18	0.14	0.15
query13	0.46	0.47	0.47
query14	0.95	0.93	0.96
query15	0.62	0.59	0.58
query16	0.30	0.32	0.31
query17	1.05	1.12	1.08
query18	0.21	0.20	0.20
query19	2.06	1.89	1.93
query20	0.02	0.01	0.02
query21	15.48	0.21	0.13
query22	4.90	0.06	0.05
query23	16.15	0.32	0.12
query24	2.93	0.42	0.30
query25	0.10	0.06	0.04
query26	0.72	0.21	0.14
query27	0.04	0.04	0.05
query28	3.58	0.74	0.36
query29	12.47	4.05	3.26
query30	0.28	0.16	0.14
query31	2.77	0.56	0.31
query32	3.22	0.59	0.48
query33	3.16	3.16	3.25
query34	15.75	3.97	3.28
query35	3.18	3.20	3.23
query36	0.55	0.45	0.42
query37	0.09	0.07	0.06
query38	0.05	0.04	0.04
query39	0.04	0.03	0.02
query40	0.17	0.15	0.13
query41	0.08	0.03	0.03
query42	0.04	0.03	0.04
query43	0.04	0.03	0.04
Total cold run time: 96.24 s
Total hot run time: 23.86 s

…_M, ST_NDims, ST_ZmFlag, ST_AsEWKB)

Issue Number: close apache#62498

Problem Summary: Doris GEO engine lacked 3D dimension support. WKT parser could not parse POINT Z / POINT M coordinates; WKB parser did not recognize EWKB Z/M flags or ISO WKB type codes (+1000/+2000/+3000), causing silent data corruption when reading PostGIS-produced 3D EWKB. This commit adds:
- WKT parser support for Z/M/ZM dimension keywords and 3D coordinates
- WKB parser support for EWKB Z/M flags and ISO WKB dimension type codes
- New scalar functions: ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB
- Proper dimension-aware WKB output (EWKB with Z/M flags)

Added ST_Z, ST_M, ST_NDims, ST_ZmFlag, ST_AsEWKB scalar functions and 3D WKT/WKB parsing support for GEO functions.

- Test: Unit tests added for wkb_parse, wkt_parse, geo_types, functions_geo; FunctionRegistryTest updated
- Behavior changed: Yes - WKT/WKB parser now accepts 3D coordinates (Z/M/ZM)
- Does this need documentation: Yes
@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 88.04% (81/92) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 65.07% (30807/47347)
Line Coverage 49.84% (323446/649030)
Region Coverage 45.31% (261333/576823)
Branch Coverage 47.00% (122692/261064)

@zclllyybb

Copy link
Copy Markdown
Contributor

@zclllyybb Could you please start CI?

maybe @linrrzqqq could have a look

hageshiame added 2 commits October 14, 2026 16:40
…plete type before fmt template instantiation

The 'extern template struct fmt::formatter<Int128>' declarations triggered
fmt's is_base_of/is_string type traits against the forward-declared
wide::integer, causing 'implicit instantiation of undefined template' with
libc++ >= 19. Including the full definition makes the type complete at the
point of instantiation.
@kaori-seasons

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17597	5591	5527	5527
q2	2123	319	289	289
q3	10197	1391	843	843
q4	4681	470	348	348
q5	7446	800	552	552
q6	194	194	155	155
q7	799	791	603	603
q8	9244	1358	1097	1097
q9	5564	4271	4236	4236
q10	6821	1284	1028	1028
q11	447	254	236	236
q12	634	400	287	287
q13	18101	3582	3046	3046
q14	280	274	254	254
q15	q16	744	728	650	650
q17	1212	758	591	591
q18	7074	6251	6172	6172
q19	1230	970	581	581
q20	379	341	229	229
q21	5667	2551	2668	2551
q22	398	364	304	304
Total cold run time: 100832 ms
Total hot run time: 29579 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	6665	6632	6803	6632
q2	785	611	570	570
q3	5891	5717	5233	5233
q4	2075	2148	1728	1728
q5	5712	5516	5792	5516
q6	240	193	144	144
q7	2181	2019	1805	1805
q8	3145	2694	2767	2694
q9	8083	7939	7986	7939
q10	3634	3577	3240	3240
q11	588	402	374	374
q12	652	677	496	496
q13	3241	3520	3045	3045
q14	293	302	263	263
q15	q16	669	681	609	609
q17	7837	7006	6898	6898
q18	13050	12231	13042	12231
q19	922	795	787	787
q20	2206	2146	1917	1917
q21	5807	4836	4946	4836
q22	489	454	404	404
Total cold run time: 74165 ms
Total hot run time: 67361 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 152816 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 f145aea64f7d0ea5e9fac5d7951116792a1c9f82, data reload: false

query5	4313	595	450	450
query6	429	217	189	189
query7	4810	449	239	239
query8	325	180	159	159
query9	8764	4080	4052	4052
query10	478	311	274	274
query11	5966	3820	3538	3538
query12	153	93	87	87
query13	1259	430	320	320
query14	6123	4071	3764	3764
query14_1	3648	3668	3543	3543
query15	223	203	186	186
query16	943	438	428	428
query17	871	666	543	543
query18	2423	422	320	320
query19	193	165	144	144
query20	84	83	82	82
query21	210	138	113	113
query22	12949	12933	12826	12826
query23	13525	12776	12614	12614
query23_1	12506	12498	12653	12498
query24	7105	848	471	471
query24_1	472	466	475	466
query25	535	427	359	359
query26	1325	256	141	141
query27	2759	440	276	276
query28	4601	1968	1986	1968
query29	1586	603	461	461
query30	302	228	191	191
query31	1014	926	802	802
query32	143	92	97	92
query33	516	309	252	252
query34	890	908	505	505
query35	780	795	658	658
query36	811	866	752	752
query37	138	102	94	94
query38	1796	1791	1724	1724
query39	815	813	754	754
query39_1	739	741	747	741
query40	222	117	98	98
query41	72	68	74	68
query42	92	81	84	81
query43	363	385	338	338
query44	1304	708	709	708
query45	182	179	164	164
query46	838	980	597	597
query47	2981	2991	2917	2917
query48	303	372	215	215
query49	566	392	295	295
query50	662	276	217	217
query51	10572	10510	10366	10366
query52	79	80	69	69
query53	187	203	151	151
query54	248	204	175	175
query55	70	72	64	64
query56	222	226	219	219
query57	1632	1593	1562	1562
query58	283	272	265	265
query59	2110	2100	1940	1940
query60	300	245	228	228
query61	151	150	148	148
query62	397	336	294	294
query63	199	167	166	166
query64	2728	975	799	799
query65	3325	3251	3259	3251
query66	1805	430	308	308
query67	20407	20060	20047	20047
query68	3311	992	603	603
query69	401	290	260	260
query70	848	793	796	793
query71	319	230	211	211
query72	2794	2604	2277	2277
query73	541	525	300	300
query74	4603	4456	4275	4275
query75	2357	2301	1965	1965
query76	2385	1019	622	622
query77	338	356	275	275
query78	9733	9653	9121	9121
query79	994	849	526	526
query80	753	449	356	356
query81	566	312	266	266
query82	571	137	110	110
query83	288	195	206	195
query84	314	130	103	103
query85	869	442	388	388
query86	347	241	235	235
query87	2007	2005	1845	1845
query88	3594	2717	2686	2686
query89	342	295	260	260
query90	1805	178	182	178
query91	159	155	124	124
query92	102	90	88	88
query93	1000	1003	586	586
query94	510	325	299	299
query95	575	400	325	325
query96	674	524	240	240
query97	2494	2441	2332	2332
query98	163	152	146	146
query99	782	770	650	650
Total cold run time: 235159 ms
Total hot run time: 152816 ms

@hello-stephen

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

query1	0.01	0.01	0.00
query2	0.10	0.05	0.05
query3	0.26	0.12	0.12
query4	1.61	0.12	0.12
query5	0.24	0.24	0.21
query6	1.17	0.69	0.68
query7	0.03	0.01	0.01
query8	0.05	0.04	0.04
query9	0.40	0.35	0.35
query10	0.56	0.56	0.56
query11	0.20	0.14	0.14
query12	0.18	0.15	0.14
query13	0.49	0.49	0.51
query14	1.02	1.01	1.01
query15	0.64	0.61	0.60
query16	0.31	0.36	0.34
query17	1.15	1.10	1.16
query18	0.23	0.21	0.21
query19	2.12	2.02	1.92
query20	0.02	0.01	0.02
query21	15.42	0.24	0.15
query22	4.53	0.06	0.05
query23	16.25	0.32	0.12
query24	3.34	0.56	0.34
query25	0.11	0.07	0.05
query26	1.00	0.23	0.15
query27	0.05	0.04	0.03
query28	1.91	0.59	0.39
query29	12.53	4.31	3.41
query30	0.29	0.14	0.14
query31	2.77	0.56	0.33
query32	3.22	0.60	0.50
query33	3.16	3.27	3.15
query34	15.34	4.01	3.36
query35	3.32	3.35	3.37
query36	0.54	0.45	0.41
query37	0.10	0.06	0.06
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.16	0.14	0.14
query41	0.09	0.03	0.02
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 95.09 s
Total hot run time: 24.38 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 88.04% (81/92) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.04% (35641/46264)
Line Coverage 62.31% (403488/647506)
Region Coverage 58.85% (341415/580186)
Branch Coverage 59.66% (157084/263313)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 54.55% (60/110) 🎉
Increment coverage report
Complete coverage report

…n test_st_3d_dimension_functions.out

The expected hex contained 8 trailing garbage bytes (one extra zero double)
left over from an early development build of the EWKB serializer. The
current byte-exact streaming implementation emits a structurally complete
133-byte EWKB (verified: header+gtype+nrings+npts+5 pts x 3 doubles
consumes the whole buffer). Updated the expectation to the actual output
which matches the EWKB spec.
@kaori-seasons

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17606	5652	5534	5534
q2	2147	314	279	279
q3	10188	1395	837	837
q4	4674	473	351	351
q5	7428	780	542	542
q6	188	185	157	157
q7	753	793	598	598
q8	9235	1370	1091	1091
q9	5467	4274	4247	4247
q10	6816	1302	1029	1029
q11	439	255	239	239
q12	639	394	276	276
q13	18095	3519	2961	2961
q14	282	269	254	254
q15	q16	732	741	688	688
q17	1180	746	564	564
q18	7001	6228	6185	6185
q19	1100	943	606	606
q20	390	336	229	229
q21	5059	2283	2423	2283
q22	366	320	276	276
Total cold run time: 99785 ms
Total hot run time: 29226 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	6300	6285	6282	6282
q2	721	593	563	563
q3	5347	5396	4963	4963
q4	2021	2115	1532	1532
q5	5252	5220	6097	5220
q6	251	199	159	159
q7	2284	2043	1850	1850
q8	3191	2815	2796	2796
q9	8244	8070	8043	8043
q10	3993	3689	3360	3360
q11	643	433	414	414
q12	753	779	551	551
q13	3504	3862	3234	3234
q14	329	330	311	311
q15	q16	737	735	667	667
q17	8536	7650	7011	7011
q18	13215	12313	13166	12313
q19	940	823	838	823
q20	2204	2159	1933	1933
q21	5824	4706	4812	4706
q22	485	447	399	399
Total cold run time: 74774 ms
Total hot run time: 67130 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 152594 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 caf8a6cbe165462f2ce075439e26e4c5ef675fac, data reload: false

query5	4296	600	426	426
query6	422	214	191	191
query7	4802	441	229	229
query8	319	174	154	154
query9	8715	3951	3976	3951
query10	475	311	268	268
query11	5955	3794	3524	3524
query12	149	89	84	84
query13	1244	437	341	341
query14	6138	4042	3768	3768
query14_1	3489	3504	3501	3501
query15	209	199	179	179
query16	955	455	439	439
query17	866	648	547	547
query18	2420	418	315	315
query19	196	180	134	134
query20	86	87	82	82
query21	213	138	113	113
query22	13062	13009	12874	12874
query23	13444	12745	12520	12520
query23_1	12581	12601	12585	12585
query24	7084	833	477	477
query24_1	480	474	469	469
query25	541	424	363	363
query26	1275	261	143	143
query27	2756	436	268	268
query28	4639	1954	1968	1954
query29	1582	594	460	460
query30	297	220	189	189
query31	1023	931	819	819
query32	142	94	93	93
query33	515	304	244	244
query34	893	867	512	512
query35	764	771	659	659
query36	833	838	725	725
query37	134	106	91	91
query38	1804	1747	1696	1696
query39	797	795	751	751
query39_1	741	728	750	728
query40	220	116	98	98
query41	71	66	66	66
query42	90	86	86	86
query43	363	385	330	330
query44	1332	714	693	693
query45	179	178	169	169
query46	853	960	564	564
query47	2962	3045	2872	2872
query48	306	341	213	213
query49	567	397	294	294
query50	680	272	211	211
query51	10647	10407	10707	10407
query52	78	77	70	70
query53	188	210	154	154
query54	240	195	191	191
query55	77	70	63	63
query56	227	217	230	217
query57	1614	1582	1568	1568
query58	282	264	251	251
query59	2136	2161	1998	1998
query60	280	240	221	221
query61	136	135	145	135
query62	391	340	293	293
query63	200	167	165	165
query64	2714	946	789	789
query65	3338	3230	3267	3230
query66	1786	409	304	304
query67	20276	20318	20059	20059
query68	2929	1015	625	625
query69	383	290	248	248
query70	828	784	783	783
query71	292	228	214	214
query72	2757	2554	2259	2259
query73	516	535	298	298
query74	4608	4476	4324	4324
query75	2343	2284	1943	1943
query76	2296	1023	623	623
query77	349	372	279	279
query78	9703	9812	9222	9222
query79	971	906	528	528
query80	651	417	342	342
query81	546	323	274	274
query82	573	137	114	114
query83	272	193	172	172
query84	307	126	98	98
query85	856	420	363	363
query86	330	264	235	235
query87	1977	1959	1835	1835
query88	3650	2724	2698	2698
query89	339	294	254	254
query90	1838	183	184	183
query91	171	150	126	126
query92	98	89	91	89
query93	1021	996	580	580
query94	463	317	275	275
query95	582	354	351	351
query96	673	518	232	232
query97	2475	2409	2331	2331
query98	160	153	149	149
query99	780	767	650	650
Total cold run time: 234056 ms
Total hot run time: 152594 ms

@hello-stephen

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

query1	0.01	0.01	0.01
query2	0.10	0.04	0.05
query3	0.26	0.12	0.12
query4	1.61	0.12	0.12
query5	0.27	0.27	0.25
query6	1.18	0.69	0.67
query7	0.04	0.01	0.01
query8	0.05	0.04	0.04
query9	0.41	0.34	0.36
query10	0.58	0.61	0.61
query11	0.21	0.14	0.14
query12	0.18	0.15	0.14
query13	0.49	0.49	0.48
query14	1.02	1.03	1.00
query15	0.65	0.60	0.60
query16	0.35	0.35	0.34
query17	1.13	1.12	1.12
query18	0.23	0.21	0.18
query19	2.11	2.04	2.02
query20	0.02	0.01	0.01
query21	15.48	0.26	0.14
query22	4.44	0.05	0.06
query23	16.26	0.33	0.12
query24	3.16	0.85	0.41
query25	0.13	0.08	0.05
query26	1.52	0.26	0.15
query27	0.05	0.04	0.04
query28	2.17	0.59	0.42
query29	12.53	4.19	3.35
query30	0.28	0.14	0.13
query31	2.77	0.59	0.34
query32	3.22	0.61	0.51
query33	3.16	3.14	3.21
query34	15.65	4.03	3.40
query35	3.35	3.39	3.36
query36	0.56	0.46	0.44
query37	0.10	0.07	0.06
query38	0.04	0.04	0.03
query39	0.03	0.02	0.02
query40	0.17	0.15	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.05	0.04	0.03
Total cold run time: 96.15 s
Total hot run time: 24.63 s

@hello-stephen

Copy link
Copy Markdown
Contributor

BE UT Coverage Report

Increment line coverage 88.04% (81/92) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 66.22% (31650/47793)
Line Coverage 51.04% (334265/654910)
Region Coverage 46.30% (269753/582669)
Branch Coverage 47.94% (126644/264150)

@hello-stephen

Copy link
Copy Markdown
Contributor

BE Regression && UT Coverage Report

Increment line coverage 88.04% (81/92) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 77.01% (35628/46265)
Line Coverage 62.32% (403549/647539)
Region Coverage 58.68% (340469/580220)
Branch Coverage 59.63% (157012/263321)

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 75.95% (60/79) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 46.15% (30/65) 🎉
Increment coverage report
Complete coverage report

…ns onto scoped enum refactor

Conflict resolution follows upstream/master as the primary skeleton:
- geo_tobinary_type.h/geo_tobinary.h/geo_tobinary.cpp: adopt upstream
  enum class byteOrder/wkbType and ByteOrderValues::EndianType, keep
  EWKB Z/M/SRID flag emission in writeGeometryType via GeoShape hints.
- geo_types.cpp: keep our dimensional encoding protocol (version byte +
  has_z/has_m) translated to upstream GeoShapeType/GeoParseStatus idioms.
- wkb_parse.cpp: rebuilt on upstream reader; EWKB/ISO +1000/+2000/+3000
  parsing, MULTI_POLYGON support and boundary checks ported with scoped
  enums; upstream byte-order pre-handling in read() retained.
- wkt_yacc.y: dimension_modifier grammar kept, GeoParseStatus:: scoped.
- Audited all PR-touched files for stale unscoped enum usage (46 sites).

Verified: full BE+FE build clean (clang-20, bison 3.8.2), clang-format 16
zero violations, regression suite test_st_3d_dimension_functions 132/132
blocks match on local cluster incl. EWKB POLYGON Z 133-byte expectation.
@kaori-seasons

Copy link
Copy Markdown
Author

run buildall

@hello-stephen

Copy link
Copy Markdown
Contributor

FE UT Coverage Report

Increment line coverage 46.15% (30/65) 🎉
Increment coverage report
Complete coverage report

@hello-stephen

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

------ Round 1 ----------------------------------
============================================
q1	17593	5153	5082	5082
q2	2132	321	267	267
q3	10204	1362	831	831
q4	4682	465	341	341
q5	7453	824	545	545
q6	182	178	153	153
q7	752	793	595	595
q8	9253	1351	1132	1132
q9	5417	4226	4189	4189
q10	6836	1289	1018	1018
q11	442	244	232	232
q12	631	402	276	276
q13	18122	3691	3048	3048
q14	277	271	252	252
q15	q16	736	719	671	671
q17	1206	754	578	578
q18	7045	6216	6125	6125
q19	1118	967	621	621
q20	391	348	229	229
q21	5443	2493	2451	2451
q22	372	326	261	261
Total cold run time: 100287 ms
Total hot run time: 28897 ms

----- Round 2, with runtime_filter_mode=off -----
============================================
q1	5981	5920	6144	5920
q2	735	605	600	600
q3	5583	5793	5333	5333
q4	2011	2183	1575	1575
q5	5562	5776	5622	5622
q6	232	190	139	139
q7	2184	2017	1795	1795
q8	2994	2642	2643	2642
q9	7991	7856	7619	7619
q10	3656	3589	3137	3137
q11	576	405	414	405
q12	663	677	500	500
q13	3345	3649	3020	3020
q14	282	294	263	263
q15	q16	665	696	632	632
q17	7884	7089	6941	6941
q18	12936	12198	12857	12198
q19	939	844	819	819
q20	2123	2135	1920	1920
q21	5628	4721	4714	4714
q22	516	445	423	423
Total cold run time: 72486 ms
Total hot run time: 66217 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
TPC-DS: Total hot run time: 150602 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 3194e248f440bd11a24c0a005e58257da01e1c29, data reload: false

query5	4309	581	431	431
query6	433	204	189	189
query7	4842	454	238	238
query8	318	172	149	149
query9	8789	3126	3139	3126
query10	503	305	266	266
query11	6028	3840	3572	3572
query12	152	90	86	86
query13	1247	448	329	329
query14	6120	3969	3618	3618
query14_1	3426	3387	3413	3387
query15	211	201	187	187
query16	1002	477	380	380
query17	851	634	523	523
query18	2414	409	305	305
query19	193	159	134	134
query20	85	84	83	83
query21	211	128	105	105
query22	12934	12915	12710	12710
query23	13622	12907	12337	12337
query23_1	12578	12540	12589	12540
query24	7368	838	461	461
query24_1	460	459	487	459
query25	511	389	353	353
query26	1256	253	139	139
query27	2776	434	267	267
query28	4630	1942	1936	1936
query29	1549	602	459	459
query30	300	223	181	181
query31	1003	923	831	831
query32	163	98	96	96
query33	544	295	248	248
query34	912	850	515	515
query35	749	759	642	642
query36	804	811	707	707
query37	128	100	84	84
query38	1783	1726	1684	1684
query39	793	796	743	743
query39_1	734	727	743	727
query40	225	137	97	97
query41	73	68	68	68
query42	95	85	93	85
query43	344	376	319	319
query44	1381	689	698	689
query45	178	179	160	160
query46	854	975	577	577
query47	2932	2949	2743	2743
query48	300	317	226	226
query49	590	420	303	303
query50	691	287	218	218
query51	10329	10524	10415	10415
query52	83	83	76	76
query53	191	216	173	173
query54	257	228	192	192
query55	75	72	64	64
query56	266	235	235	235
query57	1648	1639	1564	1564
query58	318	272	264	264
query59	2155	2141	1994	1994
query60	311	254	242	242
query61	173	170	168	168
query62	397	332	315	315
query63	201	165	166	165
query64	2838	1010	707	707
query65	3410	3271	3247	3247
query66	1779	420	301	301
query67	20161	20192	19868	19868
query68	3362	1008	610	610
query69	405	302	247	247
query70	844	792	764	764
query71	288	245	211	211
query72	2898	2638	2299	2299
query73	547	531	302	302
query74	4649	4542	4338	4338
query75	2360	2280	1903	1903
query76	2383	1031	610	610
query77	347	390	269	269
query78	10045	9744	9204	9204
query79	979	877	516	516
query80	1234	423	338	338
query81	606	318	276	276
query82	1020	136	107	107
query83	305	195	185	185
query84	312	120	100	100
query85	958	420	367	367
query86	408	242	232	232
query87	2008	1951	1830	1830
query88	3672	2684	2659	2659
query89	344	285	242	242
query90	1921	176	176	176
query91	170	150	127	127
query92	100	80	92	80
query93	1005	988	576	576
query94	695	313	272	272
query95	581	326	307	307
query96	683	493	242	242
query97	2477	2445	2319	2319
query98	164	153	148	148
query99	774	770	649	649
Total cold run time: 237293 ms
Total hot run time: 150602 ms

@hello-stephen

Copy link
Copy Markdown
Contributor
ClickBench: Total hot run time: 24.6 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 3194e248f440bd11a24c0a005e58257da01e1c29, data reload: false

query1	0.01	0.01	0.00
query2	0.10	0.04	0.04
query3	0.27	0.08	0.09
query4	1.61	0.11	0.10
query5	0.24	0.25	0.24
query6	1.17	0.68	0.68
query7	0.04	0.01	0.01
query8	0.06	0.04	0.03
query9	0.42	0.35	0.34
query10	0.58	0.58	0.56
query11	0.20	0.15	0.14
query12	0.17	0.15	0.15
query13	0.49	0.50	0.50
query14	1.03	1.02	1.03
query15	0.63	0.60	0.60
query16	0.31	0.35	0.34
query17	1.11	1.12	1.14
query18	0.20	0.19	0.18
query19	2.17	2.00	2.05
query20	0.02	0.01	0.01
query21	15.49	0.19	0.14
query22	4.95	0.05	0.05
query23	16.29	0.32	0.13
query24	2.71	0.57	0.56
query25	0.09	0.06	0.06
query26	1.30	0.22	0.17
query27	0.07	0.04	0.03
query28	4.12	0.82	0.34
query29	12.51	4.19	3.31
query30	0.28	0.13	0.10
query31	2.78	0.55	0.32
query32	3.22	0.60	0.50
query33	3.25	3.23	3.25
query34	15.34	4.00	3.40
query35	3.37	3.34	3.36
query36	0.56	0.44	0.42
query37	0.10	0.07	0.06
query38	0.05	0.04	0.04
query39	0.04	0.03	0.03
query40	0.17	0.14	0.14
query41	0.09	0.03	0.03
query42	0.04	0.03	0.03
query43	0.04	0.04	0.03
Total cold run time: 97.69 s
Total hot run time: 24.6 s

@hello-stephen

Copy link
Copy Markdown
Contributor

FE Regression Coverage Report

Increment line coverage 30.93% (60/194) 🎉
Increment coverage report
Complete coverage report

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.

[Enhancement] Fix GEO Functions Logic

3 participants