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

branch-3.0: [Improve](auditlog) audit log print real sql in prepared statement #43321

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 6, 2024

Cherry-picked from #43038

…43038)

1. Use the "execute *** using *** /*original sql = */" in the audit log instead of "execute *** using ***".
2. Add a CommandType parameter to the audit log.
3. When the prepared statement is ready, it should log OK instead of NOOP
@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.

@doris-robot
Copy link

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17856	7532	7482	7482
q2	2468	161	159	159
q3	11225	1090	1081	1081
q4	10242	744	760	744
q5	7715	2813	2756	2756
q6	232	144	142	142
q7	962	610	616	610
q8	9348	1866	1900	1866
q9	6563	6324	6311	6311
q10	6934	2261	2288	2261
q11	455	254	261	254
q12	410	208	207	207
q13	17768	3004	2965	2965
q14	245	203	212	203
q15	557	515	514	514
q16	657	603	595	595
q17	964	521	564	521
q18	7312	6570	6581	6570
q19	1614	1033	1032	1032
q20	479	201	194	194
q21	3886	3280	3084	3084
q22	1111	970	1018	970
Total cold run time: 109003 ms
Total hot run time: 40521 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7348	7290	7317	7290
q2	322	234	230	230
q3	2820	2721	2751	2721
q4	1885	1686	1651	1651
q5	5381	5407	5399	5399
q6	221	142	138	138
q7	2086	1626	1621	1621
q8	3166	3332	3355	3332
q9	8494	8463	8528	8463
q10	3454	3439	3367	3367
q11	588	491	490	490
q12	783	575	566	566
q13	16886	2976	2964	2964
q14	300	256	247	247
q15	544	490	501	490
q16	695	639	629	629
q17	1818	1559	1544	1544
q18	7586	7408	7244	7244
q19	1642	1539	1592	1539
q20	1992	1799	1789	1789
q21	5205	5093	4955	4955
q22	1068	984	1004	984
Total cold run time: 74284 ms
Total hot run time: 57653 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 189276 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 543d6419a89008f1e78f2fe736c4ff3f64d4370f, data reload: false

query1	981	395	386	386
query2	6515	2075	2004	2004
query3	6706	228	223	223
query4	33820	23438	23342	23342
query5	4345	443	442	442
query6	279	175	178	175
query7	4625	310	303	303
query8	291	236	229	229
query9	9426	2636	2640	2636
query10	483	271	258	258
query11	18263	15195	15161	15161
query12	144	97	94	94
query13	1626	419	394	394
query14	9806	6673	6290	6290
query15	213	174	168	168
query16	7727	475	512	475
query17	1404	560	556	556
query18	1888	296	299	296
query19	203	157	148	148
query20	116	118	105	105
query21	206	101	100	100
query22	4480	4142	4128	4128
query23	34428	33905	33767	33767
query24	12345	2851	2906	2851
query25	723	403	415	403
query26	1860	165	174	165
query27	3075	297	299	297
query28	8769	2471	2451	2451
query29	1159	435	420	420
query30	330	154	153	153
query31	1011	782	816	782
query32	96	56	58	56
query33	781	274	284	274
query34	1027	498	494	494
query35	879	729	732	729
query36	1118	916	941	916
query37	287	77	77	77
query38	4009	3842	3838	3838
query39	1486	1416	1440	1416
query40	291	102	108	102
query41	53	53	49	49
query42	110	101	101	101
query43	528	475	483	475
query44	1274	776	782	776
query45	189	165	164	164
query46	1148	712	710	710
query47	1869	1781	1810	1781
query48	457	361	369	361
query49	1305	398	403	398
query50	813	401	413	401
query51	7106	7094	6963	6963
query52	102	96	96	96
query53	264	190	194	190
query54	1202	460	456	456
query55	82	85	80	80
query56	263	253	246	246
query57	1231	1097	1118	1097
query58	248	214	209	209
query59	3109	2825	2821	2821
query60	318	250	255	250
query61	120	118	123	118
query62	862	654	686	654
query63	210	190	193	190
query64	5301	664	584	584
query65	3220	3186	3169	3169
query66	1412	309	290	290
query67	15876	15448	15454	15448
query68	4785	547	555	547
query69	429	251	259	251
query70	1159	1119	1145	1119
query71	426	265	261	261
query72	6284	3871	3951	3871
query73	759	341	338	338
query74	10287	8978	8973	8973
query75	3379	2634	2600	2600
query76	2873	936	997	936
query77	393	272	270	270
query78	10517	9615	9547	9547
query79	8884	587	616	587
query80	2171	426	410	410
query81	563	237	240	237
query82	1448	122	111	111
query83	254	138	137	137
query84	287	72	80	72
query85	2320	302	279	279
query86	484	299	295	295
query87	4349	4246	4248	4246
query88	5620	2370	2366	2366
query89	484	291	294	291
query90	2160	184	182	182
query91	179	162	141	141
query92	69	47	52	47
query93	5963	561	548	548
query94	1017	290	301	290
query95	344	267	246	246
query96	635	277	273	273
query97	3310	3147	3155	3147
query98	217	196	191	191
query99	1971	1286	1295	1286
Total cold run time: 319913 ms
Total hot run time: 189276 ms

@dataroaring dataroaring closed this Nov 7, 2024
@dataroaring dataroaring reopened this Nov 7, 2024
@dataroaring dataroaring merged commit 6121a1c into branch-3.0 Nov 7, 2024
21 of 23 checks passed
eldenmoon pushed a commit to eldenmoon/incubator-doris that referenced this pull request Nov 12, 2024
@dataroaring dataroaring deleted the auto-pick-43038-branch-3.0 branch December 27, 2024 07:13
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