Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Feat](json) Support json_search function #40948

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

liutang123
Copy link
Contributor

Proposed changes

Like mysql, json_search returns the path witch point to a json string witch match the pattern.
SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one', 'A_') as res;

+----------+
| res      |
+----------+
| "$[2].C" |
+----------+

Issue Number: close #xxx

@doris-robot
Copy link

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

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

@liutang123
Copy link
Contributor Author

will add doc after pipeline is passed.

@liutang123 liutang123 force-pushed the json_search-master branch 2 times, most recently from a5eba2f to 39bbebe Compare September 18, 2024 18:16
@liutang123
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17955	7449	7271	7271
q2	2043	163	155	155
q3	10682	1080	1143	1080
q4	10332	660	681	660
q5	7765	3091	3132	3091
q6	236	151	149	149
q7	1034	626	609	609
q8	9469	2095	2091	2091
q9	6882	6422	6387	6387
q10	6998	2287	2295	2287
q11	440	249	240	240
q12	417	218	215	215
q13	17790	2974	2979	2974
q14	238	209	211	209
q15	571	514	520	514
q16	665	603	613	603
q17	984	847	805	805
q18	7365	6727	6685	6685
q19	1402	1085	1002	1002
q20	581	282	284	282
q21	4469	3223	3261	3223
q22	1121	1047	1005	1005
Total cold run time: 109439 ms
Total hot run time: 41537 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7266	7220	7264	7220
q2	334	232	225	225
q3	3082	2973	2923	2923
q4	2043	1860	1812	1812
q5	5623	5598	5651	5598
q6	240	142	140	140
q7	2172	1780	1818	1780
q8	3320	3428	3435	3428
q9	8806	8926	8756	8756
q10	3492	3387	3482	3387
q11	584	473	471	471
q12	830	606	612	606
q13	9710	3181	3146	3146
q14	299	288	280	280
q15	588	537	535	535
q16	727	682	661	661
q17	1797	1596	1577	1577
q18	8212	7819	7872	7819
q19	1746	1633	1537	1537
q20	2150	1883	1914	1883
q21	5498	5305	5344	5305
q22	1175	1040	1049	1040
Total cold run time: 69694 ms
Total hot run time: 60129 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.29% (9584/25702)
Line Coverage: 28.68% (79219/276240)
Region Coverage: 28.16% (41033/145720)
Branch Coverage: 24.77% (20904/84382)
Coverage Report: http://coverage.selectdb-in.cc/coverage/39bbebe3e9ed64babf0f79bdcb08eacdc1f30439_39bbebe3e9ed64babf0f79bdcb08eacdc1f30439/report/index.html

@doris-robot
Copy link

TPC-DS: Total hot run time: 198384 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 39bbebe3e9ed64babf0f79bdcb08eacdc1f30439, data reload: false

query1	1274	887	885	885
query2	6407	2099	2010	2010
query3	10792	3964	3819	3819
query4	63577	28739	23395	23395
query5	4953	474	474	474
query6	412	170	169	169
query7	5437	294	287	287
query8	322	228	219	219
query9	8583	2655	2618	2618
query10	437	292	279	279
query11	17092	15126	15528	15126
query12	153	101	105	101
query13	1535	438	418	418
query14	10935	7070	7379	7070
query15	202	182	175	175
query16	6737	476	480	476
query17	1204	623	573	573
query18	1491	307	309	307
query19	203	165	154	154
query20	128	108	117	108
query21	221	104	129	104
query22	4647	4530	4783	4530
query23	34656	33951	33718	33718
query24	6018	2917	2876	2876
query25	507	414	408	408
query26	613	158	161	158
query27	1582	281	287	281
query28	4272	2444	2449	2444
query29	673	430	425	425
query30	232	156	153	153
query31	957	771	783	771
query32	72	54	57	54
query33	416	288	289	288
query34	900	483	470	470
query35	853	719	738	719
query36	1041	921	931	921
query37	150	87	85	85
query38	3932	3998	3981	3981
query39	1463	1385	1396	1385
query40	207	103	94	94
query41	50	47	47	47
query42	121	92	94	92
query43	513	487	486	486
query44	1135	774	790	774
query45	185	162	160	160
query46	1126	762	759	759
query47	1933	1811	1831	1811
query48	477	362	361	361
query49	696	387	390	387
query50	831	400	406	400
query51	6999	6804	6741	6741
query52	100	84	86	84
query53	248	174	181	174
query54	557	447	438	438
query55	74	79	73	73
query56	271	236	259	236
query57	1220	1114	1089	1089
query58	211	259	241	241
query59	3137	3021	2960	2960
query60	302	263	260	260
query61	107	100	102	100
query62	783	648	655	648
query63	223	181	179	179
query64	1296	648	622	622
query65	3232	3120	3193	3120
query66	624	294	295	294
query67	15929	15702	15472	15472
query68	1363	858	850	850
query69	432	345	335	335
query70	1170	1171	1167	1167
query71	338	332	328	328
query72	6037	3360	3396	3360
query73	589	580	569	569
query74	9143	9039	8993	8993
query75	2974	2889	2860	2860
query76	993	858	863	858
query77	448	360	366	360
query78	10116	9591	9331	9331
query79	909	889	867	867
query80	590	582	567	567
query81	463	250	254	250
query82	231	236	236	236
query83	161	159	159	159
query84	268	102	94	94
query85	686	381	352	352
query86	317	310	300	300
query87	4368	4275	4313	4275
query88	4454	4047	4036	4036
query89	365	360	355	355
query90	1447	310	305	305
query91	169	165	166	165
query92	75	73	74	73
query93	908	894	902	894
query94	477	385	354	354
query95	416	401	400	400
query96	487	481	486	481
query97	3129	3152	3174	3152
query98	236	223	223	223
query99	1418	1299	1307	1299
Total cold run time: 302843 ms
Total hot run time: 198384 ms

@doris-robot
Copy link

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

query1	0.06	0.04	0.04
query2	0.07	0.03	0.03
query3	0.23	0.06	0.06
query4	1.64	0.10	0.10
query5	0.51	0.49	0.49
query6	1.12	0.73	0.72
query7	0.02	0.01	0.02
query8	0.04	0.03	0.03
query9	0.56	0.51	0.49
query10	0.56	0.58	0.56
query11	0.14	0.11	0.10
query12	0.13	0.11	0.11
query13	0.61	0.59	0.58
query14	2.98	2.90	3.08
query15	0.89	0.81	0.80
query16	0.39	0.38	0.37
query17	1.04	1.00	1.04
query18	0.19	0.19	0.19
query19	1.87	1.87	2.03
query20	0.01	0.01	0.02
query21	15.36	0.59	0.59
query22	2.40	2.52	1.66
query23	17.41	0.82	0.92
query24	2.84	1.27	0.95
query25	0.26	0.22	0.10
query26	0.41	0.14	0.13
query27	0.03	0.04	0.04
query28	10.66	1.10	1.06
query29	12.58	3.31	3.32
query30	0.24	0.05	0.05
query31	2.88	0.38	0.38
query32	3.28	0.45	0.46
query33	2.95	2.99	2.98
query34	16.84	4.38	4.37
query35	4.44	4.35	4.38
query36	0.68	0.48	0.50
query37	0.08	0.05	0.05
query38	0.04	0.03	0.03
query39	0.03	0.03	0.03
query40	0.16	0.12	0.12
query41	0.07	0.02	0.02
query42	0.02	0.02	0.02
query43	0.04	0.03	0.02
Total cold run time: 106.76 s
Total hot run time: 32.47 s

@liutang123
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	18869	7455	7395	7395
q2	2058	160	162	160
q3	10573	1179	1184	1179
q4	10221	784	717	717
q5	7735	3128	3095	3095
q6	232	153	150	150
q7	1016	613	605	605
q8	9434	2082	2038	2038
q9	6865	6420	6383	6383
q10	7011	2251	2298	2251
q11	433	245	251	245
q12	405	218	213	213
q13	17785	3022	3011	3011
q14	244	220	232	220
q15	586	533	534	533
q16	687	638	632	632
q17	989	816	795	795
q18	7413	6675	6800	6675
q19	1408	1014	1029	1014
q20	597	320	294	294
q21	4031	3232	3312	3232
q22	1121	1015	975	975
Total cold run time: 109713 ms
Total hot run time: 41812 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7244	7283	7199	7199
q2	324	229	232	229
q3	2942	2851	2777	2777
q4	1954	1736	1655	1655
q5	5386	5444	5430	5430
q6	235	141	139	139
q7	2129	1714	1709	1709
q8	3197	3340	3366	3340
q9	8414	8405	8418	8405
q10	3378	3350	3350	3350
q11	564	469	465	465
q12	740	606	567	567
q13	6280	2978	2976	2976
q14	289	270	259	259
q15	557	520	512	512
q16	698	656	661	656
q17	1765	1530	1529	1529
q18	7865	7518	7372	7372
q19	1694	1515	1412	1412
q20	2052	1830	1845	1830
q21	5528	5162	5195	5162
q22	1102	1025	1034	1025
Total cold run time: 64337 ms
Total hot run time: 57998 ms

@doris-robot
Copy link

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

query1	984	373	372	372
query2	6511	2133	2093	2093
query3	6707	208	225	208
query4	34394	23445	23477	23445
query5	4324	504	463	463
query6	280	167	173	167
query7	4618	301	306	301
query8	280	229	232	229
query9	9629	2724	2708	2708
query10	479	306	294	294
query11	18166	15241	15361	15241
query12	169	99	100	99
query13	1632	436	410	410
query14	10505	7264	7238	7238
query15	259	174	175	174
query16	7850	427	443	427
query17	1652	580	557	557
query18	1842	316	320	316
query19	366	151	147	147
query20	117	106	105	105
query21	216	105	104	104
query22	4578	4173	4120	4120
query23	34823	34051	33907	33907
query24	11118	2900	2865	2865
query25	658	384	388	384
query26	1131	165	158	158
query27	2770	293	288	288
query28	8398	2481	2458	2458
query29	810	413	408	408
query30	321	157	160	157
query31	1015	794	821	794
query32	101	54	58	54
query33	760	299	292	292
query34	979	491	495	491
query35	861	725	728	725
query36	1113	970	939	939
query37	167	94	82	82
query38	4043	3972	3874	3874
query39	1494	1413	1420	1413
query40	199	97	95	95
query41	47	44	46	44
query42	117	97	95	95
query43	512	488	496	488
query44	1229	826	801	801
query45	187	163	167	163
query46	1135	761	733	733
query47	1884	1807	1800	1800
query48	451	366	358	358
query49	1134	403	391	391
query50	823	410	412	410
query51	7087	6958	7017	6958
query52	99	88	86	86
query53	267	185	183	183
query54	1310	470	480	470
query55	83	77	76	76
query56	278	252	244	244
query57	1233	1101	1084	1084
query58	237	233	227	227
query59	3267	3034	2974	2974
query60	292	267	277	267
query61	105	120	105	105
query62	853	652	665	652
query63	223	186	187	186
query64	5285	669	619	619
query65	3248	3202	3180	3180
query66	1357	320	292	292
query67	16089	15414	15587	15414
query68	3091	895	866	866
query69	445	340	340	340
query70	1158	1177	1098	1098
query71	340	335	338	335
query72	6046	3624	3592	3592
query73	607	592	583	583
query74	9504	8953	9049	8953
query75	3054	2910	2945	2910
query76	1942	890	889	889
query77	406	386	389	386
query78	9599	9335	9223	9223
query79	952	923	900	900
query80	662	610	608	608
query81	456	254	257	254
query82	241	241	238	238
query83	171	165	170	165
query84	278	109	103	103
query85	682	367	347	347
query86	317	315	324	315
query87	4413	4267	4409	4267
query88	4465	4061	4039	4039
query89	386	360	363	360
query90	1450	319	324	319
query91	166	164	167	164
query92	80	73	73	73
query93	909	911	892	892
query94	557	385	343	343
query95	430	425	414	414
query96	482	480	485	480
query97	3104	3155	3060	3060
query98	227	238	214	214
query99	1401	1300	1297	1297
Total cold run time: 293172 ms
Total hot run time: 194929 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.06	0.03	0.03
query3	0.23	0.06	0.06
query4	1.64	0.10	0.10
query5	0.52	0.50	0.50
query6	1.15	0.74	0.73
query7	0.02	0.01	0.01
query8	0.03	0.03	0.03
query9	0.57	0.50	0.49
query10	0.55	0.54	0.54
query11	0.15	0.10	0.10
query12	0.14	0.11	0.11
query13	0.60	0.59	0.59
query14	3.02	2.99	2.96
query15	0.89	0.82	0.82
query16	0.42	0.41	0.41
query17	1.07	1.08	1.07
query18	0.22	0.21	0.21
query19	1.99	1.98	1.79
query20	0.02	0.01	0.01
query21	15.35	0.58	0.59
query22	2.75	2.76	1.96
query23	17.49	0.86	0.74
query24	2.55	1.16	1.00
query25	0.27	0.14	0.04
query26	0.48	0.15	0.13
query27	0.04	0.04	0.05
query28	11.07	1.09	1.08
query29	12.58	3.21	3.23
query30	0.24	0.06	0.06
query31	2.88	0.38	0.38
query32	3.26	0.46	0.46
query33	2.97	3.02	3.04
query34	17.11	4.43	4.40
query35	4.40	4.44	4.39
query36	0.68	0.48	0.48
query37	0.08	0.05	0.05
query38	0.04	0.03	0.04
query39	0.03	0.02	0.03
query40	0.16	0.12	0.13
query41	0.08	0.02	0.02
query42	0.03	0.02	0.02
query43	0.03	0.02	0.03
Total cold run time: 107.91 s
Total hot run time: 32.85 s

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.29% (9584/25702)
Line Coverage: 28.67% (79198/276209)
Region Coverage: 28.15% (41011/145686)
Branch Coverage: 24.78% (20895/84318)
Coverage Report: http://coverage.selectdb-in.cc/coverage/dc180986964363eedb83cbd21b1f0b01050db2f7_dc180986964363eedb83cbd21b1f0b01050db2f7/report/index.html

@liutang123
Copy link
Contributor Author

run buildall

cambyzju
cambyzju previously approved these changes Sep 19, 2024
Copy link
Contributor

@cambyzju cambyzju 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 Sep 19, 2024
Copy link
Contributor

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

Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17953	7376	7249	7249
q2	2070	169	168	168
q3	10820	1108	1247	1108
q4	10384	736	754	736
q5	7763	3051	3090	3051
q6	236	158	157	157
q7	1014	623	601	601
q8	9439	2037	2057	2037
q9	6790	6400	6427	6400
q10	7024	2275	2267	2267
q11	446	252	251	251
q12	412	217	225	217
q13	17780	3004	2969	2969
q14	251	209	228	209
q15	580	531	515	515
q16	678	622	611	611
q17	994	823	866	823
q18	7412	6752	6592	6592
q19	1427	1122	1098	1098
q20	595	300	290	290
q21	4108	3264	3265	3264
q22	1089	992	1010	992
Total cold run time: 109265 ms
Total hot run time: 41605 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7306	7227	7204	7204
q2	322	228	231	228
q3	3093	3031	2982	2982
q4	2032	1830	1861	1830
q5	5650	5640	5731	5640
q6	229	146	144	144
q7	2220	1850	1828	1828
q8	3337	3433	3436	3433
q9	8785	8989	8898	8898
q10	3419	3499	3471	3471
q11	598	486	489	486
q12	799	618	647	618
q13	10833	3196	3164	3164
q14	304	285	274	274
q15	579	528	523	523
q16	730	689	673	673
q17	1855	1620	1582	1582
q18	8372	7779	7842	7779
q19	1733	1671	1653	1653
q20	2146	1882	1916	1882
q21	5491	5427	5461	5427
q22	1115	1038	1031	1031
Total cold run time: 70948 ms
Total hot run time: 60750 ms

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.29% (9586/25706)
Line Coverage: 28.69% (79236/276199)
Region Coverage: 28.16% (41030/145698)
Branch Coverage: 24.80% (20910/84324)
Coverage Report: http://coverage.selectdb-in.cc/coverage/c668be623d00255edfac664aaab9be716d1b583e_c668be623d00255edfac664aaab9be716d1b583e/report/index.html

@doris-robot
Copy link

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

query1	1288	904	890	890
query2	6322	2078	1986	1986
query3	10833	4025	3832	3832
query4	62947	27075	23481	23481
query5	5117	446	462	446
query6	418	170	169	169
query7	5457	302	292	292
query8	325	227	225	225
query9	8813	2633	2642	2633
query10	474	300	275	275
query11	17738	15160	15907	15160
query12	175	109	103	103
query13	1469	420	429	420
query14	10582	7553	7653	7553
query15	206	194	181	181
query16	6826	485	495	485
query17	1202	604	598	598
query18	1514	314	320	314
query19	217	163	159	159
query20	136	116	112	112
query21	209	104	106	104
query22	4874	4713	4682	4682
query23	34567	33644	33805	33644
query24	6036	2881	2971	2881
query25	510	406	403	403
query26	615	158	163	158
query27	1585	280	290	280
query28	4356	2434	2442	2434
query29	673	431	433	431
query30	232	158	154	154
query31	951	784	807	784
query32	77	55	61	55
query33	389	300	292	292
query34	882	491	489	489
query35	836	734	724	724
query36	1046	934	965	934
query37	151	90	93	90
query38	4053	3893	3996	3893
query39	1478	1436	1430	1430
query40	209	95	98	95
query41	51	48	49	48
query42	118	95	97	95
query43	528	487	484	484
query44	1136	820	798	798
query45	193	158	171	158
query46	1134	781	745	745
query47	1924	1802	1850	1802
query48	456	354	359	354
query49	696	406	410	406
query50	830	420	439	420
query51	6935	6986	6898	6898
query52	93	88	88	88
query53	248	174	179	174
query54	562	463	449	449
query55	75	75	73	73
query56	278	248	237	237
query57	1252	1108	1113	1108
query58	222	255	240	240
query59	3142	2985	2943	2943
query60	293	262	261	261
query61	104	111	107	107
query62	746	657	639	639
query63	217	191	178	178
query64	1302	663	655	655
query65	3265	3164	3181	3164
query66	646	297	303	297
query67	15986	15659	15522	15522
query68	3761	586	574	574
query69	628	413	330	330
query70	1187	1156	1117	1117
query71	429	275	271	271
query72	6607	3754	4105	3754
query73	794	324	325	324
query74	9645	9000	8980	8980
query75	3370	2643	2649	2643
query76	2766	966	900	900
query77	572	293	293	293
query78	10002	9793	9115	9115
query79	1084	550	537	537
query80	1020	435	435	435
query81	553	242	236	236
query82	293	145	141	141
query83	158	136	145	136
query84	285	77	78	77
query85	911	292	271	271
query86	363	302	291	291
query87	4393	4239	4406	4239
query88	3038	2353	2366	2353
query89	386	286	289	286
query90	2020	184	191	184
query91	194	143	137	137
query92	56	47	50	47
query93	1312	527	534	527
query94	758	297	266	266
query95	346	251	249	249
query96	602	286	281	281
query97	3246	3141	3129	3129
query98	225	193	200	193
query99	1770	1316	1264	1264
Total cold run time: 310994 ms
Total hot run time: 195194 ms

@doris-robot
Copy link

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

query1	0.04	0.05	0.04
query2	0.06	0.02	0.02
query3	0.23	0.07	0.05
query4	1.65	0.10	0.10
query5	0.49	0.51	0.51
query6	1.13	0.73	0.72
query7	0.01	0.01	0.01
query8	0.04	0.03	0.02
query9	0.57	0.50	0.48
query10	0.54	0.56	0.53
query11	0.15	0.11	0.11
query12	0.14	0.10	0.10
query13	0.60	0.59	0.58
query14	3.11	2.93	2.92
query15	0.90	0.82	0.83
query16	0.38	0.37	0.39
query17	1.07	1.03	1.07
query18	0.19	0.18	0.19
query19	1.92	1.77	1.99
query20	0.01	0.01	0.01
query21	15.35	0.59	0.59
query22	2.61	2.30	1.34
query23	17.40	0.83	0.85
query24	2.49	1.33	1.01
query25	0.16	0.18	0.06
query26	0.46	0.14	0.14
query27	0.04	0.04	0.04
query28	10.90	1.09	1.07
query29	12.54	3.21	3.14
query30	0.24	0.06	0.06
query31	2.89	0.37	0.38
query32	3.63	0.47	0.46
query33	3.01	3.04	3.02
query34	16.90	4.40	4.40
query35	4.51	4.43	4.45
query36	0.66	0.48	0.48
query37	0.08	0.06	0.06
query38	0.05	0.03	0.04
query39	0.03	0.02	0.02
query40	0.16	0.12	0.13
query41	0.07	0.02	0.02
query42	0.03	0.02	0.02
query43	0.03	0.03	0.02
Total cold run time: 107.47 s
Total hot run time: 32.1 s

@github-actions github-actions bot removed the approved Indicates a PR has been approved by one committer. label Sep 19, 2024
@liutang123 liutang123 force-pushed the json_search-master branch 2 times, most recently from 79abcd0 to 6ddbd5b Compare September 19, 2024 11:30
@liutang123
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 37.28% (9589/25723)
Line Coverage: 28.66% (79210/276400)
Region Coverage: 28.13% (41019/145824)
Branch Coverage: 24.76% (20901/84412)
Coverage Report: http://coverage.selectdb-in.cc/coverage/7eae51460ee428518d7295741c8a9bbfbbdf3955_7eae51460ee428518d7295741c8a9bbfbbdf3955/report/index.html

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Sep 20, 2024
Copy link
Contributor

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

Copy link
Contributor

@lide-reed lide-reed left a comment

Choose a reason for hiding this comment

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

LGTM

@lide-reed lide-reed merged commit 7a00dd4 into apache:master Sep 20, 2024
23 of 28 checks passed
liutang123 added a commit to liutang123/doris that referenced this pull request Oct 9, 2024
Like mysql, json_search returns the path which point to a json string
witch match the pattern.
`SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
'A_') as res;`
```
+----------+
| res      |
+----------+
| "$[2].C" |
+----------+
```
liutang123 added a commit to liutang123/doris that referenced this pull request Oct 9, 2024
Like mysql, json_search returns the path which point to a json string
witch match the pattern.
`SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
'A_') as res;`
```
+----------+
| res      |
+----------+
| "$[2].C" |
+----------+
```
liutang123 added a commit to liutang123/doris that referenced this pull request Oct 10, 2024
Like mysql, json_search returns the path which point to a json string
witch match the pattern.
`SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
'A_') as res;`
```
+----------+
| res      |
+----------+
| "$[2].C" |
+----------+
```
liutang123 added a commit to liutang123/doris that referenced this pull request Oct 11, 2024
Like mysql, json_search returns the path which point to a json string
witch match the pattern.
`SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
'A_') as res;`
```
+----------+
| res      |
+----------+
| "$[2].C" |
+----------+
```
liutang123 added a commit that referenced this pull request Oct 11, 2024
cherry-pick #40948 

Like mysql, json_search returns the path which point to a json string
witch match the pattern.
`SELECT JSON_SEARCH('["A",[{"B":"1"}],{"C":"AB"},{"D":"BC"}]', 'one',
'A_') as res;`
```
+----------+
| res      |
+----------+
| "$[2].C" |
+----------+
```

Co-authored-by: liutang123 <[email protected]>
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.0.15-merged dev/2.1.7-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants