Skip to content

Conversation

@zxealous
Copy link
Contributor

cherry-pick #41951

load failed where not set database in session, should use label's database if not set database in session

LOAD LABEL test_db.label_111111 ( DATA INFILE("hdfs://hdfs01:9000/user/") INTO TABLE test_load_tb) WITH BROKER "broker" ( "username" = "user", "password" = "");

ERROR 1105 (HY000): errCode = 2, detailMessage = Current database is not set.

Proposed changes

Issue Number: close #xxx

…che#41951)

load failed where not set database in session, should use label's database if not set database in session

LOAD LABEL test_db.label_111111 ( DATA INFILE("hdfs://hdfs01:9000/user/") INTO TABLE `test_load_tb`) WITH BROKER "broker" ( "username" = "user",  "password" = "");

ERROR 1105 (HY000): errCode = 2, detailMessage = Current database is not set.
@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.

@zxealous
Copy link
Contributor Author

run buildall

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Oct 18, 2024
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17630	7448	7315	7315
q2	2035	149	155	149
q3	10580	1117	1159	1117
q4	10225	776	762	762
q5	7757	2879	2846	2846
q6	225	146	146	146
q7	974	633	623	623
q8	9588	1906	1933	1906
q9	8145	6410	6467	6410
q10	7051	2305	2319	2305
q11	437	248	251	248
q12	467	219	218	218
q13	17779	2964	2960	2960
q14	251	214	224	214
q15	559	518	515	515
q16	513	413	417	413
q17	983	592	478	478
q18	7313	6539	6596	6539
q19	1327	1002	955	955
q20	574	273	276	273
q21	4049	3158	3058	3058
q22	1097	986	972	972
Total cold run time: 109559 ms
Total hot run time: 40422 ms

----- Round 2, with runtime_filter_mode=off -----
q1	7215	7226	7197	7197
q2	326	230	226	226
q3	2880	2667	2759	2667
q4	1935	1676	1667	1667
q5	5385	5448	5447	5447
q6	226	140	141	140
q7	2133	1632	1689	1632
q8	3237	3409	3391	3391
q9	8541	8447	8423	8423
q10	3463	3405	3378	3378
q11	559	460	479	460
q12	798	564	588	564
q13	15416	2927	2957	2927
q14	280	260	256	256
q15	549	512	506	506
q16	496	436	452	436
q17	1773	1564	1543	1543
q18	7723	7369	7224	7224
q19	1639	1468	1538	1468
q20	1966	1798	1788	1788
q21	5112	4905	5098	4905
q22	1094	1000	1007	1000
Total cold run time: 72746 ms
Total hot run time: 57245 ms

@doris-robot
Copy link

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

query1	948	390	359	359
query2	6526	1957	1944	1944
query3	6640	212	228	212
query4	33925	23374	23351	23351
query5	4332	458	520	458
query6	257	162	158	158
query7	4614	309	313	309
query8	250	205	200	200
query9	9649	2678	2656	2656
query10	460	265	275	265
query11	18110	15265	14996	14996
query12	149	95	96	95
query13	1664	431	439	431
query14	9396	7221	6911	6911
query15	225	173	168	168
query16	7763	481	457	457
query17	1579	573	549	549
query18	1996	311	309	309
query19	222	150	149	149
query20	116	109	110	109
query21	209	102	101	101
query22	4533	4390	4275	4275
query23	34742	33764	33736	33736
query24	11468	2906	2777	2777
query25	648	412	413	412
query26	1159	165	161	161
query27	2790	299	298	298
query28	7736	2183	2163	2163
query29	851	442	431	431
query30	318	153	149	149
query31	1034	790	789	789
query32	95	54	55	54
query33	767	281	282	281
query34	952	494	520	494
query35	889	742	746	742
query36	1088	941	935	935
query37	136	83	75	75
query38	3931	3843	3802	3802
query39	1467	1466	1422	1422
query40	205	98	97	97
query41	50	44	46	44
query42	121	100	94	94
query43	531	476	480	476
query44	1255	784	789	784
query45	194	161	159	159
query46	1139	717	730	717
query47	1938	1789	1816	1789
query48	440	353	326	326
query49	1150	390	393	390
query50	828	414	404	404
query51	6950	6951	6796	6796
query52	98	98	92	92
query53	264	185	188	185
query54	1085	462	477	462
query55	80	79	77	77
query56	267	270	266	266
query57	1243	1171	1145	1145
query58	248	232	238	232
query59	3092	2848	2914	2848
query60	301	274	269	269
query61	126	123	121	121
query62	854	661	676	661
query63	226	190	222	190
query64	4251	621	609	609
query65	3210	3165	3197	3165
query66	1260	305	303	303
query67	15821	15394	15387	15387
query68	4782	556	560	556
query69	680	280	296	280
query70	1153	1064	1100	1064
query71	434	271	273	271
query72	7747	3879	3905	3879
query73	760	341	335	335
query74	10296	8852	8921	8852
query75	4497	2630	2599	2599
query76	3664	865	894	865
query77	714	286	275	275
query78	9878	10126	9385	9385
query79	8510	602	585	585
query80	1979	449	434	434
query81	576	221	224	221
query82	1289	125	125	125
query83	317	135	133	133
query84	302	79	79	79
query85	1560	295	279	279
query86	482	314	291	291
query87	4370	4216	4307	4216
query88	5208	2392	2416	2392
query89	414	283	294	283
query90	2132	185	188	185
query91	148	104	105	104
query92	61	48	47	47
query93	5258	551	537	537
query94	1103	277	268	268
query95	351	243	249	243
query96	638	281	277	277
query97	3284	3138	3116	3116
query98	218	195	187	187
query99	1583	1268	1279	1268
Total cold run time: 315249 ms
Total hot run time: 188902 ms

@morrySnow morrySnow merged commit 7ea1c33 into apache:branch-3.0 Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants