Skip to content

Conversation

zzzxl1993
Copy link
Contributor

@zzzxl1993 zzzxl1993 commented Sep 5, 2025

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

  1. The current index query implementation has limitations when handling multiple search conditions simultaneously. Users need the ability to combine multiple term queries using boolean operators (AND, OR, NOT) for more complex and flexible search scenarios.
  2. Currently this is only the initial version, supporting term combination queries.

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 Sep 5, 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?

@zzzxl1993
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17642	5260	5055	5055
q2	2008	338	214	214
q3	10234	1323	726	726
q4	10252	1043	540	540
q5	7508	2507	2308	2308
q6	188	177	145	145
q7	963	757	645	645
q8	9364	1367	1134	1134
q9	6985	5249	5210	5210
q10	6976	2370	1983	1983
q11	505	301	284	284
q12	380	374	234	234
q13	17810	3709	2995	2995
q14	257	248	222	222
q15	572	496	475	475
q16	430	443	379	379
q17	596	877	369	369
q18	7996	7106	7047	7047
q19	1091	975	556	556
q20	356	340	237	237
q21	3711	2560	2348	2348
q22	1092	1061	978	978
Total cold run time: 106916 ms
Total hot run time: 34084 ms

----- Round 2, with runtime_filter_mode=off -----
q1	5219	5151	5148	5148
q2	258	332	240	240
q3	2149	2674	2305	2305
q4	1325	1809	1319	1319
q5	4224	4350	4574	4350
q6	221	185	138	138
q7	2117	2016	1808	1808
q8	2723	2682	2691	2682
q9	7364	7240	7299	7240
q10	3110	3273	2939	2939
q11	570	570	514	514
q12	691	826	684	684
q13	3659	3907	3323	3323
q14	295	314	260	260
q15	566	475	503	475
q16	480	514	458	458
q17	1210	1643	1376	1376
q18	7914	7712	7560	7560
q19	879	833	840	833
q20	1987	2039	1919	1919
q21	5054	4553	4204	4204
q22	1073	1038	992	992
Total cold run time: 53088 ms
Total hot run time: 50767 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 186456 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 2c20fb0c79fd0b3480ca6c7ee1b7da0357a0374e, data reload: false

query1	1050	458	405	405
query2	6562	1715	1701	1701
query3	6752	225	222	222
query4	25953	23181	22975	22975
query5	4472	677	530	530
query6	339	244	229	229
query7	4665	514	302	302
query8	309	254	261	254
query9	8690	2931	2917	2917
query10	486	339	327	327
query11	15945	15059	14769	14769
query12	189	125	127	125
query13	1686	569	436	436
query14	9359	5884	5791	5791
query15	210	192	179	179
query16	7392	642	489	489
query17	1277	773	648	648
query18	2029	442	355	355
query19	260	201	176	176
query20	134	119	122	119
query21	211	136	118	118
query22	4403	4277	4243	4243
query23	34066	33000	33010	33000
query24	8251	2382	2418	2382
query25	581	527	445	445
query26	1239	286	168	168
query27	2726	516	358	358
query28	4459	2294	2265	2265
query29	819	602	488	488
query30	292	215	195	195
query31	925	812	750	750
query32	88	80	82	80
query33	575	382	370	370
query34	794	865	517	517
query35	808	827	768	768
query36	986	1043	895	895
query37	135	115	92	92
query38	4004	4013	4019	4013
query39	1508	1424	1603	1424
query40	219	138	133	133
query41	67	61	61	61
query42	129	116	120	116
query43	523	549	478	478
query44	1391	859	882	859
query45	187	179	178	178
query46	869	1019	666	666
query47	1752	1840	1735	1735
query48	396	454	332	332
query49	752	513	412	412
query50	651	694	396	396
query51	4181	4152	4080	4080
query52	122	118	108	108
query53	245	262	197	197
query54	623	618	542	542
query55	99	97	95	95
query56	342	344	316	316
query57	1206	1189	1132	1132
query58	284	293	276	276
query59	2597	2704	2553	2553
query60	361	379	353	353
query61	167	176	159	159
query62	802	732	667	667
query63	237	194	199	194
query64	4513	1132	827	827
query65	4342	4201	4223	4201
query66	1156	451	354	354
query67	15644	15162	14968	14968
query68	9241	943	589	589
query69	493	340	291	291
query70	1230	1113	1134	1113
query71	629	351	319	319
query72	5808	5043	5146	5043
query73	783	690	369	369
query74	8869	9018	8892	8892
query75	4238	3141	2604	2604
query76	3694	1203	773	773
query77	849	418	328	328
query78	9581	9853	8846	8846
query79	1728	807	587	587
query80	675	586	522	522
query81	526	261	231	231
query82	193	142	118	118
query83	296	262	250	250
query84	303	121	95	95
query85	839	470	448	448
query86	362	337	313	313
query87	4384	4272	4197	4197
query88	2771	2208	2195	2195
query89	395	337	291	291
query90	2060	234	238	234
query91	161	169	133	133
query92	91	78	74	74
query93	1111	980	657	657
query94	693	432	326	326
query95	412	337	332	332
query96	479	595	281	281
query97	2679	2691	2597	2597
query98	241	226	217	217
query99	1459	1400	1283	1283
Total cold run time: 275759 ms
Total hot run time: 186456 ms

@doris-robot
Copy link

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

query1	0.06	0.05	0.05
query2	0.09	0.05	0.05
query3	0.26	0.08	0.08
query4	1.61	0.12	0.12
query5	0.44	0.43	0.41
query6	1.16	0.63	0.66
query7	0.04	0.03	0.02
query8	0.06	0.05	0.05
query9	0.60	0.52	0.51
query10	0.58	0.58	0.59
query11	0.16	0.12	0.11
query12	0.16	0.12	0.12
query13	0.64	0.63	0.61
query14	0.81	0.83	0.83
query15	0.91	0.84	0.84
query16	0.40	0.42	0.42
query17	1.08	1.06	1.04
query18	0.22	0.19	0.19
query19	1.97	1.84	1.82
query20	0.02	0.01	0.02
query21	15.40	0.94	0.60
query22	0.80	1.13	0.69
query23	14.96	1.35	0.62
query24	7.02	0.75	1.62
query25	0.53	0.18	0.12
query26	0.60	0.16	0.13
query27	0.08	0.05	0.05
query28	10.40	0.91	0.43
query29	12.55	3.85	3.24
query30	0.29	0.14	0.11
query31	2.83	0.58	0.39
query32	3.23	0.57	0.48
query33	2.98	3.17	3.12
query34	16.09	5.47	4.84
query35	4.95	4.93	4.90
query36	0.70	0.51	0.51
query37	0.11	0.08	0.07
query38	0.06	0.04	0.04
query39	0.03	0.03	0.03
query40	0.18	0.15	0.15
query41	0.08	0.02	0.02
query42	0.04	0.04	0.02
query43	0.04	0.03	0.04
Total cold run time: 105.22 s
Total hot run time: 29.83 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 77.82% (400/514) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 51.94% (17311/33328)
Line Coverage 37.33% (157657/422324)
Region Coverage 31.95% (120232/376340)
Branch Coverage 33.33% (52783/158370)

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.

3 participants