You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "xy720 (via GitHub)" <gi...@apache.org> on 2024/02/27 07:32:38 UTC

[PR] [fix](branch20) fix unexpected be core in string search function [doris]

xy720 opened a new pull request, #31460:
URL: https://github.com/apache/doris/pull/31460

   ## Proposed changes
   
   cherry-pick: #31312
   
   <!--Describe your changes.-->
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at [dev@doris.apache.org](mailto:dev@doris.apache.org) by explaining why you chose the solution you did and what alternatives you considered, etc...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #31460:
URL: https://github.com/apache/doris/pull/31460#discussion_r1503767259


##########
be/src/vec/functions/functions_multi_string_position.cpp:
##########
@@ -110,6 +106,11 @@ class FunctionMultiStringPosition : public IFunction {
         const ColumnConst* col_needles_const =
                 check_and_get_column_const<ColumnArray>(needles_ptr.get());
 
+        if (!col_needles_const && !col_needles_vector)

Review Comment:
   warning: statement should be inside braces [readability-braces-around-statements]
   
   ```suggestion
           if (!col_needles_const && !col_needles_vector) {
   ```
   
   be/src/vec/functions/functions_multi_string_position.cpp:111:
   ```diff
   -                     needles_column->get_name());
   +                     needles_column->get_name());
   + }
   ```
   



##########
be/src/vec/functions/functions_multi_string_search.cpp:
##########
@@ -108,6 +101,11 @@ class FunctionsMultiStringSearch : public IFunction {
         const ColumnConst* col_needles_const =
                 check_and_get_column_const<ColumnArray>(needles_ptr.get());
 
+        if (!col_needles_const && !col_needles_vector)

Review Comment:
   warning: statement should be inside braces [readability-braces-around-statements]
   
   ```suggestion
           if (!col_needles_const && !col_needles_vector) {
   ```
   
   be/src/vec/functions/functions_multi_string_search.cpp:106:
   ```diff
   -                     needles_column->get_name());
   +                     needles_column->get_name());
   + }
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966041928

   
   Load test result on machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   ```
   Load test result on commit 5004377c5bd3d211cad6d75d37d7176ecb72333a with default session variables
   Stream load json:         20 seconds loaded 2358488459 Bytes, about 112 MB/s
   Stream load orc:          58 seconds loaded 1101869774 Bytes, about 18 MB/s
   Stream load parquet:      31 seconds loaded 861443392 Bytes, about 26 MB/s
   Insert into select:       21.9 seconds inserted 10000000 Rows, about 456K ops/s
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966126731

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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on code in PR #31460:
URL: https://github.com/apache/doris/pull/31460#discussion_r1503787437


##########
be/src/vec/functions/functions_multi_string_search.cpp:
##########
@@ -108,6 +104,11 @@ class FunctionsMultiStringSearch : public IFunction {
         const ColumnConst* col_needles_const =
                 check_and_get_column_const<ColumnArray>(needles_ptr.get());
 
+        if (!col_needles_const && !col_needles_vector)

Review Comment:
   warning: statement should be inside braces [readability-braces-around-statements]
   
   ```suggestion
           if (!col_needles_const && !col_needles_vector) {
   ```
   
   be/src/vec/functions/functions_multi_string_search.cpp:109:
   ```diff
   -                     needles_column->get_name());
   +                     needles_column->get_name());
   + }
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "xy720 (via GitHub)" <gi...@apache.org>.
xy720 merged PR #31460:
URL: https://github.com/apache/doris/pull/31460


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "xy720 (via GitHub)" <gi...@apache.org>.
xy720 commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1965969659

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966028120

   
   <details>
   <summary>TPC-DS: <b>Total hot run time: 203197 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
   TPC-DS sf100 test result on commit 5004377c5bd3d211cad6d75d37d7176ecb72333a, data reload: false
   
   query1	925	387	384	384
   query2	6521	2226	2005	2005
   query3	6917	206	211	206
   query4	20387	18020	17986	17986
   query5	19718	6542	6494	6494
   query6	278	218	234	218
   query7	4154	298	300	298
   query8	254	258	260	258
   query9	3173	2741	2670	2670
   query10	402	293	300	293
   query11	11262	10699	10769	10699
   query12	122	74	84	74
   query13	5572	645	633	633
   query14	17618	13551	13190	13190
   query15	380	230	233	230
   query16	6479	265	261	261
   query17	1736	1450	881	881
   query18	2319	415	405	405
   query19	212	152	142	142
   query20	77	77	72	72
   query21	187	92	91	91
   query22	5282	5115	5090	5090
   query23	32368	32119	31857	31857
   query24	7754	6552	6540	6540
   query25	499	439	428	428
   query26	716	159	160	159
   query27	2173	292	295	292
   query28	6120	2226	2192	2192
   query29	2836	2792	2849	2792
   query30	241	161	159	159
   query31	920	730	774	730
   query32	64	59	57	57
   query33	384	245	248	245
   query34	873	465	502	465
   query35	1088	936	922	922
   query36	1591	1460	1563	1460
   query37	91	61	57	57
   query38	3082	2884	2908	2884
   query39	1359	1310	1328	1310
   query40	297	93	95	93
   query41	35	32	31	31
   query42	80	81	81	81
   query43	648	683	647	647
   query44	1153	714	716	714
   query45	238	229	227	227
   query46	1237	1000	974	974
   query47	1926	1725	1627	1627
   query48	977	700	685	685
   query49	650	361	376	361
   query50	866	609	602	602
   query51	4728	4585	4688	4585
   query52	96	73	75	73
   query53	444	327	318	318
   query54	2645	2462	2479	2462
   query55	94	78	85	78
   query56	216	183	204	183
   query57	1240	1095	1168	1095
   query58	210	197	226	197
   query59	3531	3477	3217	3217
   query60	203	189	189	189
   query61	85	78	80	78
   query62	851	502	494	494
   query63	491	335	335	335
   query64	2749	1570	1445	1445
   query65	3624	3620	3573	3573
   query66	770	372	352	352
   query67	15677	15930	15915	15915
   query68	9207	658	656	656
   query69	561	342	351	342
   query70	1893	1911	1911	1911
   query71	407	306	306	306
   query72	6236	3366	3394	3366
   query73	721	316	330	316
   query74	6296	5825	5777	5777
   query75	5337	3714	3763	3714
   query76	5741	1187	1214	1187
   query77	988	252	250	250
   query78	12488	11891	13932	11891
   query79	8407	635	636	635
   query80	1076	390	389	389
   query81	492	235	234	234
   query82	309	98	95	95
   query83	160	126	126	126
   query84	259	66	68	66
   query85	837	273	276	273
   query86	393	391	381	381
   query87	3253	3089	3005	3005
   query88	3805	2344	2326	2326
   query89	335	277	296	277
   query90	1977	197	201	197
   query91	152	113	113	113
   query92	55	51	52	51
   query93	1490	598	580	580
   query94	735	208	211	208
   query95	1122	1070	1148	1070
   query96	642	328	328	328
   query97	6541	6354	6344	6344
   query98	189	175	169	169
   query99	3097	854	881	854
   Total cold run time: 307096 ms
   Total hot run time: 203197 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966095951

   TeamCity be ut coverage result:
    Function Coverage: 37.80% (8035/21256) 
    Line Coverage: 29.49% (65539/222278)
    Region Coverage: 28.94% (33715/116482)
    Branch Coverage: 24.80% (17303/69776)
    Coverage Report: http://coverage.selectdb-in.cc/coverage/5004377c5bd3d211cad6d75d37d7176ecb72333a_5004377c5bd3d211cad6d75d37d7176ecb72333a/report/index.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966126817

   PR approved by anyone and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1965944631

   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "xy720 (via GitHub)" <gi...@apache.org>.
xy720 commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1965944913

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966036657

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 31.14 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit 5004377c5bd3d211cad6d75d37d7176ecb72333a, data reload: false
   
   query1	0.03	0.03	0.02
   query2	0.05	0.02	0.02
   query3	0.25	0.05	0.04
   query4	1.82	0.07	0.07
   query5	0.53	0.53	0.52
   query6	1.25	0.63	0.62
   query7	0.02	0.01	0.01
   query8	0.03	0.03	0.03
   query9	0.52	0.49	0.50
   query10	0.55	0.53	0.54
   query11	0.12	0.08	0.08
   query12	0.11	0.09	0.10
   query13	0.62	0.60	0.61
   query14	0.77	0.79	0.78
   query15	0.77	0.76	0.76
   query16	0.36	0.37	0.37
   query17	1.00	1.04	1.01
   query18	0.21	0.26	0.25
   query19	1.90	1.85	1.88
   query20	0.02	0.01	0.02
   query21	15.45	0.57	0.57
   query22	1.75	2.29	1.28
   query23	17.20	1.08	1.04
   query24	5.04	3.13	1.54
   query25	1.48	0.12	0.10
   query26	0.35	0.14	0.13
   query27	0.11	0.11	0.11
   query28	6.40	0.73	0.71
   query29	12.67	2.17	2.35
   query30	0.61	0.54	0.51
   query31	2.81	0.38	0.39
   query32	3.42	0.50	0.49
   query33	3.08	3.09	3.07
   query34	15.26	4.79	4.80
   query35	4.89	4.86	4.84
   query36	1.05	1.01	1.01
   query37	0.05	0.05	0.04
   query38	0.04	0.02	0.02
   query39	0.01	0.02	0.02
   query40	0.16	0.14	0.14
   query41	0.06	0.02	0.01
   query42	0.02	0.01	0.01
   query43	0.03	0.02	0.01
   Total cold run time: 102.87 s
   Total hot run time: 31.14 s
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [fix](branch20) fix unexpected be core in string search function [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #31460:
URL: https://github.com/apache/doris/pull/31460#issuecomment-1966008332

   
   <details>
   <summary>TPC-H: <b>Total hot run time: 50302 ms</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
   Tpch sf100 test result on commit 5004377c5bd3d211cad6d75d37d7176ecb72333a, data reload: false
   
   ------ Round 1 ----------------------------------
   q1	17542	4370	4350	4350
   q2	2026	151	145	145
   q3	10261	1869	1967	1869
   q4	10095	1285	1332	1285
   q5	8499	3952	3994	3952
   q6	235	125	126	125
   q7	2092	1647	1613	1613
   q8	9312	2731	2741	2731
   q9	10837	11278	10770	10770
   q10	8617	3546	3515	3515
   q11	427	244	247	244
   q12	468	302	305	302
   q13	18319	3961	4012	3961
   q14	362	318	328	318
   q15	513	455	458	455
   q16	702	593	586	586
   q17	1130	1002	978	978
   q18	7344	6740	7006	6740
   q19	1681	1526	1565	1526
   q20	536	304	307	304
   q21	4523	4123	4131	4123
   q22	504	410	418	410
   Total cold run time: 116025 ms
   Total hot run time: 50302 ms
   
   ----- Round 2, with runtime_filter_mode=off -----
   q1	4332	4360	4345	4345
   q2	318	218	226	218
   q3	4160	4146	4188	4146
   q4	2777	2743	2757	2743
   q5	7298	7165	7243	7165
   q6	233	122	119	119
   q7	3238	2913	2801	2801
   q8	4378	4441	4482	4441
   q9	17123	17142	17009	17009
   q10	4264	4252	4303	4252
   q11	743	705	679	679
   q12	1029	850	866	850
   q13	6556	3721	3739	3721
   q14	448	427	422	422
   q15	495	451	461	451
   q16	763	703	695	695
   q17	3859	3890	3864	3864
   q18	8796	8883	8765	8765
   q19	1719	1717	1681	1681
   q20	2375	2203	2157	2157
   q21	8552	8472	8574	8472
   q22	1026	993	951	951
   Total cold run time: 84482 ms
   Total hot run time: 79947 ms
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org