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

[feature](inverted index) add ordered functionality to match_phrase query #36356

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

zzzxl1993
Copy link
Contributor

@zzzxl1993 zzzxl1993 commented Jun 16, 2024

Proposed changes

  1. select count() from tbl where b match_phrase 'the brown ~2+';

@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.

@zzzxl1993
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.45% (8998/24684)
Line Coverage: 28.00% (73688/263216)
Region Coverage: 27.47% (38285/139352)
Branch Coverage: 24.16% (19508/80730)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ba4c96682311925a154424c095fb2bf86c244fd0_ba4c96682311925a154424c095fb2bf86c244fd0/report/index.html

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17611	4363	4275	4275
q2	2022	188	188	188
q3	10457	1178	1140	1140
q4	10205	837	852	837
q5	7482	2639	2633	2633
q6	220	138	136	136
q7	963	610	598	598
q8	9237	2038	2056	2038
q9	9009	6437	6474	6437
q10	9042	3676	3705	3676
q11	447	235	244	235
q12	444	226	226	226
q13	17924	2980	2973	2973
q14	256	229	230	229
q15	525	472	483	472
q16	528	377	372	372
q17	952	625	706	625
q18	8026	7477	7370	7370
q19	5932	1468	1514	1468
q20	658	316	321	316
q21	4914	3960	3920	3920
q22	389	326	333	326
Total cold run time: 117243 ms
Total hot run time: 40490 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4387	4284	4256	4256
q2	362	260	265	260
q3	2941	2953	2838	2838
q4	2011	1709	1779	1709
q5	5541	5486	5441	5441
q6	222	132	137	132
q7	2170	1878	1860	1860
q8	3272	3426	3447	3426
q9	8695	8719	8849	8719
q10	4067	3965	3717	3717
q11	590	489	497	489
q12	817	634	641	634
q13	16458	3143	3171	3143
q14	308	267	262	262
q15	535	485	499	485
q16	506	450	427	427
q17	1802	1499	1498	1498
q18	8183	7996	7759	7759
q19	1795	1530	1661	1530
q20	2146	1923	1869	1869
q21	7029	4988	4820	4820
q22	595	552	538	538
Total cold run time: 74432 ms
Total hot run time: 55812 ms

@doris-robot
Copy link

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

query1	922	384	370	370
query2	6470	2436	2199	2199
query3	6629	204	204	204
query4	19228	17089	17102	17089
query5	3601	479	458	458
query6	233	158	156	156
query7	4583	301	297	297
query8	332	273	275	273
query9	8516	2364	2341	2341
query10	554	300	272	272
query11	10630	10060	10034	10034
query12	136	85	82	82
query13	1644	366	359	359
query14	10118	7569	7006	7006
query15	238	188	183	183
query16	7733	275	266	266
query17	1831	538	512	512
query18	1954	264	267	264
query19	193	155	152	152
query20	99	84	82	82
query21	211	128	123	123
query22	4298	4007	3976	3976
query23	33749	33440	33576	33440
query24	11105	2950	2913	2913
query25	634	392	361	361
query26	1139	153	161	153
query27	2628	329	342	329
query28	7323	2093	2083	2083
query29	895	604	624	604
query30	259	158	157	157
query31	956	759	764	759
query32	92	51	59	51
query33	759	290	274	274
query34	1080	469	495	469
query35	750	642	629	629
query36	1133	984	958	958
query37	155	76	75	75
query38	2945	2852	2813	2813
query39	925	858	845	845
query40	219	133	128	128
query41	53	51	57	51
query42	130	109	118	109
query43	610	526	564	526
query44	1265	757	714	714
query45	194	164	162	162
query46	1076	709	696	696
query47	1860	1739	1788	1739
query48	361	298	294	294
query49	856	398	406	398
query50	758	379	383	379
query51	6773	6673	6680	6673
query52	106	89	91	89
query53	361	288	290	288
query54	885	441	458	441
query55	75	77	74	74
query56	302	274	314	274
query57	1103	1061	1034	1034
query58	266	257	256	256
query59	3239	3373	3046	3046
query60	307	288	291	288
query61	113	117	107	107
query62	598	464	459	459
query63	311	290	290	290
query64	8884	2323	1734	1734
query65	3169	3075	3097	3075
query66	743	332	342	332
query67	15350	15235	15144	15144
query68	4676	534	531	531
query69	590	348	335	335
query70	1110	1115	1076	1076
query71	444	276	263	263
query72	8413	5418	5494	5418
query73	742	323	320	320
query74	5893	5710	5515	5515
query75	4351	2721	2619	2619
query76	3037	893	948	893
query77	671	293	299	293
query78	10426	9799	9766	9766
query79	2255	500	511	500
query80	1197	475	462	462
query81	545	216	220	216
query82	909	101	99	99
query83	369	165	162	162
query84	271	81	89	81
query85	1938	275	268	268
query86	467	305	315	305
query87	3273	3108	3063	3063
query88	3964	2310	2312	2310
query89	475	380	374	374
query90	1867	188	185	185
query91	124	100	106	100
query92	62	47	51	47
query93	2534	501	500	500
query94	1211	186	247	186
query95	400	324	302	302
query96	581	266	259	259
query97	3229	3064	3019	3019
query98	231	201	193	193
query99	1276	830	855	830
Total cold run time: 274178 ms
Total hot run time: 172901 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.03
query2	0.08	0.03	0.04
query3	0.23	0.06	0.05
query4	1.66	0.08	0.07
query5	0.50	0.47	0.49
query6	1.14	0.73	0.73
query7	0.02	0.02	0.01
query8	0.06	0.04	0.04
query9	0.56	0.48	0.50
query10	0.57	0.56	0.55
query11	0.16	0.12	0.12
query12	0.15	0.12	0.12
query13	0.58	0.59	0.60
query14	0.78	0.79	0.78
query15	0.84	0.80	0.80
query16	0.35	0.37	0.36
query17	1.02	0.94	1.00
query18	0.20	0.27	0.22
query19	1.82	1.66	1.80
query20	0.01	0.00	0.01
query21	15.40	0.66	0.65
query22	4.62	6.84	1.79
query23	18.26	1.43	1.31
query24	2.12	0.24	0.22
query25	0.16	0.09	0.08
query26	0.29	0.18	0.18
query27	0.09	0.08	0.08
query28	13.25	1.02	1.01
query29	12.61	3.30	3.30
query30	0.26	0.06	0.06
query31	2.84	0.39	0.39
query32	3.27	0.47	0.46
query33	2.85	2.97	2.94
query34	17.15	4.42	4.43
query35	4.45	4.51	4.50
query36	0.65	0.48	0.45
query37	0.18	0.16	0.16
query38	0.15	0.14	0.14
query39	0.04	0.03	0.04
query40	0.18	0.15	0.14
query41	0.10	0.04	0.04
query42	0.06	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.81 s
Total hot run time: 30.48 s

@zzzxl1993
Copy link
Contributor Author

run buildall

@@ -323,7 +323,7 @@ Status FullTextIndexReader::query(OlapReaderStatistics* stats, RuntimeState* run
query_info.terms.emplace_back(search_str);
} else {
if (query_type == InvertedIndexQueryType::MATCH_PHRASE_QUERY) {
RETURN_IF_ERROR(PhraseQuery::parser_slop(search_str, query_info));
PhraseQuery::parser_slop(search_str, query_info);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not return status now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Parse errors indicate no slop is needed

CL_NS_USE(index)
CL_NS_USE(search)

namespace doris::segment_v2 {

class PostingsAndPosition {
Copy link
Contributor

Choose a reason for hiding this comment

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

delete old private class PostingsAndPosition

};

using PhraseQueryPtr = std::unique_ptr<CL_NS(search)::PhraseQuery>;
using Matcher = std::variant<ExactPhraseMatcher, OrderedSloppyPhraseMatcher, PhraseQueryPtr>;
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment to explain usage of different matchers

@@ -44,16 +140,19 @@ void PhraseQuery::add(const InvertedIndexQueryInfo& query_info) {
}

_slop = query_info.slop;
if (_slop <= 0) {

if (_slop == 0 || query_info.ordered) {
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment to explain different branch

@@ -73,14 +172,33 @@ void PhraseQuery::add(const std::wstring& field_name, const std::vector<std::str
}
Copy link
Contributor

Choose a reason for hiding this comment

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

no _matcher for terms.size() == 1 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Matcher handles position information, terms.size() == 1 is handled in other processes

@@ -54,12 +105,10 @@ class PhraseQuery : public Query {
void search_by_skiplist(roaring::Roaring& roaring);

int32_t do_next(int32_t doc);
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment for sematics of the interfaces.

auto result =
std::from_chars(slop_str.begin(), slop_str.end(), query_info.slop);
if (result.ec != std::errc()) {
break;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not return Status::Error now?

template <typename Derived>
class PhraseMatcherBase {
public:
bool matches(int32_t doc);
Copy link
Contributor

Choose a reason for hiding this comment

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

add comment for all interface

Copy link
Contributor

github-actions bot commented Jul 8, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17608	4332	4289	4289
q2	2032	196	193	193
q3	10438	1138	1137	1137
q4	10188	733	777	733
q5	7602	2706	2683	2683
q6	231	140	143	140
q7	966	615	615	615
q8	9780	2056	2088	2056
q9	9140	6865	6872	6865
q10	8929	3709	3666	3666
q11	438	234	233	233
q12	420	229	224	224
q13	17761	2983	2951	2951
q14	266	228	224	224
q15	532	474	482	474
q16	524	375	376	375
q17	959	648	663	648
q18	8068	7534	7401	7401
q19	1656	1433	1543	1433
q20	661	333	316	316
q21	4946	3127	3958	3127
q22	399	349	353	349
Total cold run time: 113544 ms
Total hot run time: 40132 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4317	4197	4219	4197
q2	365	261	265	261
q3	2993	2765	2737	2737
q4	1859	1596	1553	1553
q5	5256	5264	5279	5264
q6	223	131	131	131
q7	2124	1712	1711	1711
q8	3179	3319	3336	3319
q9	8763	8774	8752	8752
q10	3845	3640	3680	3640
q11	617	488	495	488
q12	805	628	616	616
q13	16469	2968	2975	2968
q14	283	253	258	253
q15	529	480	482	480
q16	483	413	426	413
q17	1760	1474	1460	1460
q18	7538	7586	7484	7484
q19	1703	1585	1547	1547
q20	1982	1792	1759	1759
q21	4790	4688	4718	4688
q22	616	535	570	535
Total cold run time: 70499 ms
Total hot run time: 54256 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 173071 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 83cff3b87d00e4e6ca7df5a6d31f7a9a2e01205d, data reload: false

query1	917	370	363	363
query2	6455	2477	2546	2477
query3	6653	202	216	202
query4	28382	17595	17194	17194
query5	4231	487	474	474
query6	288	169	160	160
query7	4596	301	291	291
query8	309	286	295	286
query9	8487	2381	2353	2353
query10	618	321	280	280
query11	12311	10112	10056	10056
query12	130	84	83	83
query13	1640	388	387	387
query14	10273	7647	7552	7552
query15	234	191	187	187
query16	7772	325	321	321
query17	1597	559	559	559
query18	1884	286	282	282
query19	197	153	153	153
query20	90	86	82	82
query21	224	149	134	134
query22	4375	4022	3939	3939
query23	33752	33075	32897	32897
query24	12085	2795	2949	2795
query25	675	387	390	387
query26	1832	164	158	158
query27	3034	328	322	322
query28	7446	2075	2064	2064
query29	1149	686	644	644
query30	295	149	147	147
query31	973	731	764	731
query32	100	57	63	57
query33	790	311	313	311
query34	945	475	492	475
query35	753	666	621	621
query36	1105	952	944	944
query37	296	80	76	76
query38	2865	2716	2755	2716
query39	858	814	809	809
query40	279	127	129	127
query41	56	54	56	54
query42	120	100	105	100
query43	682	584	562	562
query44	1225	741	740	740
query45	201	162	157	157
query46	1068	716	704	704
query47	1909	1788	1804	1788
query48	371	301	306	301
query49	1219	413	407	407
query50	774	397	399	397
query51	6859	6822	6688	6688
query52	108	93	92	92
query53	359	284	289	284
query54	978	449	452	449
query55	77	74	75	74
query56	302	265	268	265
query57	1155	1048	1061	1048
query58	254	252	254	252
query59	3546	3288	3304	3288
query60	300	292	280	280
query61	98	116	98	98
query62	666	450	468	450
query63	334	285	294	285
query64	10435	2207	1722	1722
query65	3159	3098	3096	3096
query66	1384	340	329	329
query67	15650	14790	14756	14756
query68	6595	541	540	540
query69	715	444	335	335
query70	1196	1123	1050	1050
query71	520	275	278	275
query72	9176	5801	5794	5794
query73	769	327	327	327
query74	6068	5497	5499	5497
query75	5078	2668	2702	2668
query76	4524	947	906	906
query77	797	314	325	314
query78	9640	9936	8799	8799
query79	8713	531	523	523
query80	966	476	480	476
query81	581	226	217	217
query82	904	110	105	105
query83	351	166	165	165
query84	278	86	87	86
query85	1433	357	309	309
query86	342	324	315	315
query87	3295	3150	3129	3129
query88	5148	2451	2443	2443
query89	550	379	385	379
query90	1763	186	199	186
query91	133	102	100	100
query92	63	51	49	49
query93	6693	515	517	515
query94	744	214	209	209
query95	402	315	315	315
query96	629	267	268	267
query97	3177	2984	3040	2984
query98	222	200	195	195
query99	1176	877	837	837
Total cold run time: 306825 ms
Total hot run time: 173071 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.07	0.04	0.04
query3	0.22	0.04	0.04
query4	1.69	0.07	0.06
query5	0.49	0.49	0.48
query6	1.15	0.72	0.73
query7	0.02	0.02	0.02
query8	0.05	0.04	0.04
query9	0.57	0.51	0.52
query10	0.55	0.55	0.56
query11	0.15	0.12	0.12
query12	0.15	0.13	0.12
query13	0.59	0.59	0.59
query14	0.81	0.76	0.76
query15	0.86	0.82	0.81
query16	0.37	0.36	0.35
query17	1.05	0.98	1.03
query18	0.22	0.24	0.23
query19	1.90	1.77	1.66
query20	0.01	0.01	0.01
query21	15.42	0.77	0.65
query22	3.53	8.26	2.03
query23	18.27	1.35	1.37
query24	2.09	0.22	0.22
query25	0.16	0.09	0.10
query26	0.30	0.21	0.22
query27	0.45	0.23	0.22
query28	13.32	1.02	1.00
query29	12.58	3.20	3.24
query30	0.25	0.06	0.07
query31	2.86	0.38	0.38
query32	3.27	0.48	0.48
query33	2.88	2.82	2.98
query34	16.86	4.32	4.41
query35	4.40	4.41	4.42
query36	0.66	0.47	0.47
query37	0.19	0.15	0.16
query38	0.15	0.15	0.13
query39	0.04	0.03	0.03
query40	0.15	0.12	0.11
query41	0.10	0.05	0.05
query42	0.05	0.04	0.04
query43	0.05	0.03	0.03
Total cold run time: 108.99 s
Total hot run time: 30.57 s

@zzzxl1993
Copy link
Contributor Author

run buildall

Copy link
Contributor

github-actions bot commented Jul 8, 2024

clang-tidy review says "All clean, LGTM! 👍"

return false;
}

bool OrderedSloppyPhraseMatcher::stretchToOrder(PostingsAndPosition* prev_posting) {
Copy link
Member

Choose a reason for hiding this comment

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

use consistent function name style here.
may be stretch_to_order is better

@zzzxl1993
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17964	4437	4350	4350
q2	2569	203	198	198
q3	11006	1247	1188	1188
q4	10343	872	907	872
q5	7708	2761	2732	2732
q6	230	146	146	146
q7	991	621	623	621
q8	9582	2087	2081	2081
q9	8632	6597	6544	6544
q10	8813	3758	3827	3758
q11	465	247	242	242
q12	411	235	238	235
q13	17762	2980	2984	2980
q14	279	237	232	232
q15	529	486	500	486
q16	483	396	393	393
q17	969	551	645	551
q18	8161	7539	7436	7436
q19	5887	1369	1436	1369
q20	669	330	334	330
q21	4944	3191	3175	3175
q22	399	341	333	333
Total cold run time: 118796 ms
Total hot run time: 40252 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4366	4425	4400	4400
q2	377	270	271	270
q3	3006	2819	2779	2779
q4	1883	1593	1635	1593
q5	5328	5369	5351	5351
q6	224	133	136	133
q7	2153	1764	1773	1764
q8	3207	3354	3302	3302
q9	8437	8447	8371	8371
q10	3939	3713	3753	3713
q11	578	480	500	480
q12	805	622	624	622
q13	16395	2999	3000	2999
q14	306	268	282	268
q15	517	490	490	490
q16	478	436	435	435
q17	1784	1506	1483	1483
q18	7661	7484	7374	7374
q19	1681	1693	1480	1480
q20	1993	1802	1781	1781
q21	4806	4740	4820	4740
q22	604	545	559	545
Total cold run time: 70528 ms
Total hot run time: 54373 ms

@doris-robot
Copy link

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

query1	921	372	359	359
query2	6454	2472	2340	2340
query3	6652	211	219	211
query4	28131	17443	17527	17443
query5	4213	510	507	507
query6	294	165	170	165
query7	4587	307	290	290
query8	322	301	287	287
query9	8534	2481	2472	2472
query10	448	288	274	274
query11	11437	10157	10159	10157
query12	131	81	83	81
query13	1634	364	364	364
query14	10711	7501	7856	7501
query15	239	193	192	192
query16	7639	335	317	317
query17	1727	579	530	530
query18	1655	285	283	283
query19	207	148	155	148
query20	95	83	84	83
query21	205	136	126	126
query22	4332	4053	4088	4053
query23	33884	33367	33179	33179
query24	11893	2868	2869	2868
query25	644	367	378	367
query26	1730	156	155	155
query27	2933	273	276	273
query28	7597	2098	2102	2098
query29	1056	641	627	627
query30	289	157	150	150
query31	953	786	761	761
query32	95	52	55	52
query33	774	308	308	308
query34	919	498	500	498
query35	693	568	574	568
query36	1045	951	934	934
query37	166	83	81	81
query38	2839	2732	2756	2732
query39	883	796	823	796
query40	276	127	125	125
query41	55	52	52	52
query42	121	100	101	100
query43	584	530	550	530
query44	1225	744	731	731
query45	200	165	168	165
query46	1104	749	742	742
query47	1837	1758	1767	1758
query48	374	294	307	294
query49	1191	431	429	429
query50	820	402	398	398
query51	6876	6793	6792	6792
query52	113	91	97	91
query53	364	301	314	301
query54	985	454	449	449
query55	75	76	76	76
query56	300	274	275	274
query57	1155	1044	1039	1039
query58	252	246	257	246
query59	3359	3313	3104	3104
query60	303	277	289	277
query61	101	95	94	94
query62	813	698	657	657
query63	324	299	301	299
query64	10546	2206	1675	1675
query65	3197	3120	3117	3117
query66	1353	353	350	350
query67	15280	14993	14875	14875
query68	4560	546	548	546
query69	680	405	350	350
query70	1114	1173	1167	1167
query71	423	297	299	297
query72	7025	5518	5413	5413
query73	780	329	334	329
query74	6138	5548	5552	5548
query75	3460	2730	2657	2657
query76	3021	944	941	941
query77	673	309	341	309
query78	11374	9438	9132	9132
query79	3319	526	527	526
query80	1106	507	486	486
query81	587	221	224	221
query82	704	141	141	141
query83	316	169	170	169
query84	274	92	85	85
query85	791	320	362	320
query86	492	336	326	326
query87	3350	3106	3128	3106
query88	4492	2530	2488	2488
query89	510	394	385	385
query90	1826	199	200	199
query91	218	107	103	103
query92	67	54	52	52
query93	3899	508	503	503
query94	1153	215	223	215
query95	416	322	316	316
query96	613	273	281	273
query97	3203	3043	3100	3043
query98	228	203	192	192
query99	1670	1244	1263	1244
Total cold run time: 290626 ms
Total hot run time: 174752 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.67	0.07	0.08
query5	0.50	0.49	0.47
query6	1.14	0.73	0.73
query7	0.02	0.01	0.02
query8	0.05	0.04	0.05
query9	0.55	0.49	0.50
query10	0.55	0.55	0.54
query11	0.15	0.12	0.12
query12	0.14	0.12	0.14
query13	0.59	0.58	0.58
query14	0.77	0.76	0.78
query15	0.84	0.81	0.82
query16	0.38	0.35	0.37
query17	1.05	1.01	1.02
query18	0.23	0.21	0.22
query19	1.94	1.72	1.79
query20	0.01	0.01	0.01
query21	15.39	0.72	0.64
query22	4.40	7.24	1.38
query23	18.26	1.36	1.27
query24	2.12	0.22	0.23
query25	0.15	0.09	0.08
query26	0.31	0.21	0.22
query27	0.46	0.23	0.22
query28	13.30	1.01	1.00
query29	12.61	3.36	3.36
query30	0.25	0.06	0.06
query31	2.89	0.39	0.40
query32	3.28	0.49	0.47
query33	2.92	2.96	2.90
query34	17.09	4.39	4.35
query35	4.42	4.39	4.44
query36	0.66	0.46	0.47
query37	0.18	0.15	0.17
query38	0.15	0.14	0.14
query39	0.04	0.03	0.04
query40	0.16	0.12	0.12
query41	0.09	0.05	0.05
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 110.15 s
Total hot run time: 30.14 s

Copy link
Member

@airborne12 airborne12 left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 12, 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.

@qidaye qidaye merged commit 0bcf11a into apache:master Jul 12, 2024
24 of 29 checks passed
zzzxl1993 added a commit to zzzxl1993/doris that referenced this pull request Jul 14, 2024
…ery (apache#36356)

1. select count() from tbl where b match_phrase 'the brown ~2+';
@xiaokang xiaokang added the doing label Jul 15, 2024
airborne12 pushed a commit that referenced this pull request Jul 15, 2024
…uery (#37752)

## Proposed changes

1. select count() from tbl where b match_phrase 'the brown ~2+';

pick from #36356
seawinde pushed a commit to seawinde/doris that referenced this pull request Jul 17, 2024
…ery (apache#36356)

1. select count() from tbl where b match_phrase 'the brown ~2+';
dataroaring pushed a commit that referenced this pull request Jul 17, 2024
…ery (#36356)

1. select count() from tbl where b match_phrase 'the brown ~2+';
@zzzxl1993 zzzxl1993 changed the title [feture](inverted index) add ordered functionality to match_phrase query [feature](inverted index) add ordered functionality to match_phrase query Jul 18, 2024
mongo360 pushed a commit to mongo360/doris that referenced this pull request Aug 16, 2024
…uery (apache#37752)

## Proposed changes

1. select count() from tbl where b match_phrase 'the brown ~2+';

pick from apache#36356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants