Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #45640

…erException (#45640)

fix prepare statement with sql cache throw NullPointerException:
```shell
java.lang.NullPointerException: Cannot read field "originStmt" because the return value of "org.apache.doris.analysis.StatementBase.getOrigStmt()" is null
```
@Thearas
Copy link
Contributor

Thearas commented Dec 19, 2024

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?

@dataroaring dataroaring reopened this Dec 19, 2024
@Thearas
Copy link
Contributor

Thearas commented Dec 19, 2024

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17601	7279	7291	7279
q2	2317	165	159	159
q3	11140	1092	1171	1092
q4	10564	719	770	719
q5	7746	2806	2682	2682
q6	236	147	144	144
q7	957	635	614	614
q8	9577	1909	1995	1909
q9	6690	6361	6299	6299
q10	6970	2246	2305	2246
q11	449	267	258	258
q12	392	211	210	210
q13	17789	2969	2960	2960
q14	254	210	199	199
q15	558	504	518	504
q16	682	621	604	604
q17	965	553	591	553
q18	7179	6492	6590	6492
q19	2186	1006	1045	1006
q20	469	204	204	204
q21	3900	3088	3139	3088
q22	1052	982	929	929
Total cold run time: 109673 ms
Total hot run time: 40150 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7297	7165	7181	7165
q2	322	231	232	231
q3	2851	2798	2902	2798
q4	2016	1746	1811	1746
q5	5637	5667	5678	5667
q6	222	138	140	138
q7	2156	1744	1778	1744
q8	3313	3476	3499	3476
q9	8724	8871	8836	8836
q10	3520	3496	3491	3491
q11	615	507	509	507
q12	777	620	584	584
q13	16437	3121	3164	3121
q14	303	281	291	281
q15	551	517	507	507
q16	722	680	656	656
q17	1841	1617	1609	1609
q18	8073	7872	7485	7485
q19	4562	1531	1464	1464
q20	2085	1831	1840	1831
q21	8738	5159	5258	5159
q22	1111	1017	995	995
Total cold run time: 81873 ms
Total hot run time: 59491 ms

@doris-robot
Copy link

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

query1	1288	918	912	912
query2	6250	2120	1992	1992
query3	10830	4176	4185	4176
query4	66912	28662	23320	23320
query5	5640	444	443	443
query6	480	186	203	186
query7	5710	314	311	311
query8	319	233	225	225
query9	9363	2662	2646	2646
query10	531	272	250	250
query11	17794	15209	15809	15209
query12	159	102	102	102
query13	1562	443	421	421
query14	11045	7256	7145	7145
query15	231	181	190	181
query16	7363	499	518	499
query17	1410	580	589	580
query18	1890	332	335	332
query19	225	178	157	157
query20	115	117	112	112
query21	71	53	53	53
query22	4673	4402	4293	4293
query23	34607	34058	34065	34058
query24	6113	2898	2959	2898
query25	553	424	429	424
query26	705	177	175	175
query27	1842	298	298	298
query28	4390	2522	2497	2497
query29	679	469	462	462
query30	254	179	168	168
query31	1016	824	862	824
query32	70	58	60	58
query33	464	288	301	288
query34	890	504	514	504
query35	869	772	760	760
query36	1099	964	932	932
query37	118	75	81	75
query38	4066	4038	3945	3945
query39	1519	1485	1468	1468
query40	146	84	81	81
query41	48	49	45	45
query42	117	104	97	97
query43	529	484	481	481
query44	1163	801	811	801
query45	198	166	173	166
query46	1147	733	744	733
query47	1979	1861	1878	1861
query48	471	382	404	382
query49	735	378	381	378
query50	853	411	427	411
query51	7288	7344	7109	7109
query52	105	89	98	89
query53	265	184	188	184
query54	580	450	444	444
query55	77	75	75	75
query56	261	248	234	234
query57	1167	1106	1118	1106
query58	209	202	209	202
query59	3204	2893	2865	2865
query60	270	249	254	249
query61	121	107	110	107
query62	751	652	656	652
query63	215	200	188	188
query64	1909	669	645	645
query65	3214	3215	3169	3169
query66	733	312	307	307
query67	15642	15566	15312	15312
query68	4653	603	586	586
query69	440	259	259	259
query70	1145	1125	1130	1125
query71	404	257	263	257
query72	6593	3923	3917	3917
query73	763	370	366	366
query74	10209	8922	8945	8922
query75	3384	2619	2671	2619
query76	2594	1158	1151	1151
query77	526	264	277	264
query78	10714	9763	9524	9524
query79	8391	603	589	589
query80	1890	433	438	433
query81	552	247	238	238
query82	1307	115	142	115
query83	260	138	143	138
query84	287	79	79	79
query85	1723	328	295	295
query86	458	278	294	278
query87	4440	4150	4221	4150
query88	5535	2365	2388	2365
query89	556	304	292	292
query90	2111	184	182	182
query91	177	144	146	144
query92	64	50	50	50
query93	6612	579	568	568
query94	891	298	284	284
query95	353	249	247	247
query96	642	287	279	279
query97	3355	3134	3172	3134
query98	222	202	210	202
query99	1649	1296	1293	1293
Total cold run time: 339412 ms
Total hot run time: 196097 ms

@924060929 924060929 merged commit f07bc41 into branch-3.0 Dec 19, 2024
22 of 24 checks passed
@github-actions github-actions bot deleted the auto-pick-45640-branch-3.0 branch December 19, 2024 13:08
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.

5 participants