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

[chore](nereids) Added compatibility with mysql alias conflict #38104

Merged
merged 34 commits into from
Jul 26, 2024

Conversation

Toms1999
Copy link
Contributor

@Toms1999 Toms1999 commented Jul 18, 2024

Proposed changes

throw table name/alias conflict exception to keep same behavior with mysql

for example:

select * from test.a b, test.b

error:

Not unique table/alias: 'b'

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

@Toms1999
Copy link
Contributor Author

buildall

sql """ DROP TABLE IF EXISTS `test3` """

sql """
CREATE TABLE `test1` (
Copy link
Contributor

Choose a reason for hiding this comment

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

test1 table conflict to nereids_syntax_p0/test_limit.groovy, please rename to other table name, e.g. test_alias_tbl1, test_alias_tbl2

// get table name
} else if (child instanceof LogicalFilter) {
Plan grandChild = child.children().get(0);
if (grandChild instanceof LogicalOlapScan) {
Copy link
Contributor

@924060929 924060929 Jul 19, 2024

Choose a reason for hiding this comment

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

you should support other table type, for example, LogicalFileScan for hive table, so LogicalCatalogRelation is more suitable

@@ -507,6 +508,31 @@ private LogicalJoin<Plan, Plan> bindJoin(MatchingContext<LogicalJoin<Plan, Plan>
LogicalJoin<Plan, Plan> join = ctx.root;
CascadesContext cascadesContext = ctx.cascadesContext;

Set<String> tableNames = new HashSet<>();
List<Plan> children = join.children();
for (Plan child : children) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems only check one level alias, can you support check conflict names between multiple level?

sql "select * from (select * from test1) a, (select * from test1) a;"
exception "Not unique table/alias: 'a'"
}

Copy link
Contributor

@924060929 924060929 Jul 19, 2024

Choose a reason for hiding this comment

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

Add more cases

multi_sql """
    DROP TABLE IF EXISTS test_alias_tbl1;
    CREATE TABLE IF NOT EXISTS `test_alias_tbl1 ` (
      `id` varchar(64) NULL
    )
    DISTRIBUTED BY HASH(`id`)
    PROPERTIES (
      "replication_num"="1"
    );
    """

test {
    sql "select * from test_alias_tbl1, test_alias_tbl1 b, test_alias_tbl1 c, test_alias_tbl1"
    exception "Not unique table/alias: 'test_alias_tbl1'"
}

test {
    sql """select * from test_alias_tbl1
            join test_alias_tbl1 b on test_alias_tbl1.id = b.id
            join test_alias_tbl1 c on b.id = c.id
            join test_alias_tbl1 on true"""
    exception "Not unique table/alias: 'test_alias_tbl1'"
}

@924060929
Copy link
Contributor

run buildall

@924060929
Copy link
Contributor

run buildall

Comment on lines 539 to 565
// Recursive method to check for duplicate table names or aliases
private void checkPlan(Plan plan, Set<String> tableNames) throws AnalysisException {
if (plan instanceof LogicalSubQueryAlias) {
LogicalSubQueryAlias subQueryAlias = (LogicalSubQueryAlias) plan;
String alias = subQueryAlias.getAlias();

if (!tableNames.add(alias)) {
throw new AnalysisException("Not unique table/alias: '" + alias + "'");
}

} else if (plan instanceof LogicalCatalogRelation) {
LogicalCatalogRelation relation = (LogicalCatalogRelation) plan;
String tableName = relation.getTable().getName();


if (!tableNames.add(tableName)) {
throw new AnalysisException("Not unique table/alias: '" + tableName + "'");
}
} else {
// Recursively check the children of the current plan
for (Plan child : plan.children()) {
checkPlan(child, tableNames);
}
}
}


Copy link
Contributor

@924060929 924060929 Jul 22, 2024

Choose a reason for hiding this comment

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

how about refactor to

private void checkConflictAlias(Plan plan) {
    Set<String> existsTableNames = Sets.newLinkedHashSet();
    Consumer<String> checkAlias = tableAliasName -> {
        if (!existsTableNames.add(tableAliasName)) {
            throw new AnalysisException("Not unique table/alias: '" + tableAliasName + "'");
        }
    };

    boolean stopCheckChildren = true;
    plan.foreach(p -> {
        if (p instanceof LogicalSubQueryAlias) {
            checkAlias.accept(((LogicalSubQueryAlias<?>) p).getAlias());
            return stopCheckChildren;
        } else if (p instanceof LogicalCatalogRelation) {
            TableIf table = ((LogicalCatalogRelation) p).getTable();
            checkAlias.accept(table.getName());
            return stopCheckChildren;
        } else {
            return !stopCheckChildren;
        }
    });
}

@924060929
Copy link
Contributor

run buildall

@Toms1999
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17933	4417	4401	4401
q2	2695	194	192	192
q3	11294	1203	1090	1090
q4	10458	787	794	787
q5	7777	2835	2731	2731
q6	226	142	141	141
q7	966	609	602	602
q8	9500	2087	2076	2076
q9	8583	6524	6522	6522
q10	8800	3756	3784	3756
q11	460	235	230	230
q12	395	214	222	214
q13	18502	2962	2979	2962
q14	276	243	223	223
q15	525	471	497	471
q16	489	383	373	373
q17	974	589	643	589
q18	8116	7602	7351	7351
q19	7677	1374	1366	1366
q20	670	315	345	315
q21	4936	3183	3295	3183
q22	355	297	288	288
Total cold run time: 121607 ms
Total hot run time: 39863 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4400	4215	4244	4215
q2	376	261	270	261
q3	2993	2788	2719	2719
q4	1900	1609	1586	1586
q5	5272	5328	5325	5325
q6	219	130	134	130
q7	2129	1776	1695	1695
q8	3177	3366	3294	3294
q9	8475	8452	8446	8446
q10	3890	3674	3732	3674
q11	587	482	491	482
q12	757	618	578	578
q13	16323	2963	2973	2963
q14	311	269	270	269
q15	521	482	481	481
q16	464	430	438	430
q17	1758	1488	1463	1463
q18	7763	7575	7357	7357
q19	1670	1503	1503	1503
q20	2035	1824	1762	1762
q21	4876	4671	4667	4667
q22	560	497	511	497
Total cold run time: 70456 ms
Total hot run time: 53797 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172241 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 5b4909014f9773172f1d471adbe5861637750979, data reload: false

query1	905	377	370	370
query2	6481	1921	1879	1879
query3	6647	216	228	216
query4	24767	17484	17141	17141
query5	4263	474	483	474
query6	275	175	169	169
query7	4591	296	288	288
query8	255	188	194	188
query9	8568	2428	2425	2425
query10	449	284	271	271
query11	11584	9947	9977	9947
query12	143	83	82	82
query13	1649	371	360	360
query14	10288	8001	7671	7671
query15	225	169	169	169
query16	7520	528	498	498
query17	1607	563	561	561
query18	1490	285	283	283
query19	197	152	150	150
query20	94	83	86	83
query21	210	129	122	122
query22	4298	4161	3944	3944
query23	33822	33084	33599	33084
query24	11071	2915	2908	2908
query25	627	411	394	394
query26	1479	211	155	155
query27	2627	270	269	269
query28	6989	1981	1972	1972
query29	884	615	591	591
query30	282	152	148	148
query31	983	743	729	729
query32	95	69	51	51
query33	761	318	318	318
query34	897	473	483	473
query35	855	734	714	714
query36	1101	968	912	912
query37	134	80	75	75
query38	2829	2757	2718	2718
query39	891	789	817	789
query40	272	118	115	115
query41	49	46	43	43
query42	122	94	98	94
query43	502	468	478	468
query44	1210	723	716	716
query45	192	160	160	160
query46	1086	705	736	705
query47	1895	1775	1794	1775
query48	358	292	295	292
query49	1139	406	403	403
query50	778	389	391	389
query51	6749	6694	6566	6566
query52	99	96	90	90
query53	353	283	278	278
query54	900	437	446	437
query55	75	73	75	73
query56	297	263	264	263
query57	1150	1047	1024	1024
query58	257	266	244	244
query59	2923	2832	2605	2605
query60	308	283	274	274
query61	94	93	92	92
query62	799	624	653	624
query63	322	286	292	286
query64	11247	2233	1675	1675
query65	3146	3082	3087	3082
query66	906	328	338	328
query67	15662	15107	14813	14813
query68	6235	540	533	533
query69	643	421	360	360
query70	1136	1067	1106	1067
query71	435	273	275	273
query72	7733	5474	5863	5474
query73	781	325	325	325
query74	6296	5642	5580	5580
query75	3459	2689	2700	2689
query76	3786	920	930	920
query77	656	306	323	306
query78	9794	9400	8952	8952
query79	6319	524	504	504
query80	1257	479	475	475
query81	583	218	225	218
query82	851	139	136	136
query83	202	174	172	172
query84	278	84	93	84
query85	1476	305	301	301
query86	410	317	310	310
query87	3254	3086	3081	3081
query88	4616	2460	2450	2450
query89	501	371	391	371
query90	2038	203	197	197
query91	131	102	101	101
query92	67	52	53	52
query93	4756	495	499	495
query94	1475	300	277	277
query95	404	315	326	315
query96	615	276	272	272
query97	3181	3017	3015	3015
query98	212	201	199	199
query99	1814	1273	1232	1232
Total cold run time: 291117 ms
Total hot run time: 172241 ms

@doris-robot
Copy link

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

query1	0.04	0.03	0.03
query2	0.09	0.03	0.04
query3	0.22	0.05	0.05
query4	1.67	0.08	0.08
query5	0.51	0.47	0.49
query6	1.12	0.72	0.72
query7	0.02	0.02	0.01
query8	0.06	0.05	0.05
query9	0.55	0.50	0.49
query10	0.54	0.55	0.53
query11	0.15	0.11	0.12
query12	0.14	0.12	0.12
query13	0.60	0.58	0.58
query14	0.75	0.79	0.77
query15	0.86	0.81	0.82
query16	0.37	0.36	0.36
query17	0.94	0.95	0.98
query18	0.23	0.22	0.22
query19	1.76	1.74	1.68
query20	0.01	0.01	0.01
query21	15.40	0.77	0.64
query22	4.42	7.51	1.87
query23	18.31	1.38	1.24
query24	2.12	0.23	0.21
query25	0.16	0.09	0.09
query26	0.28	0.21	0.22
query27	0.45	0.22	0.23
query28	13.29	1.01	0.99
query29	12.66	3.38	3.38
query30	0.25	0.06	0.05
query31	2.86	0.40	0.39
query32	3.28	0.48	0.46
query33	2.91	2.89	2.94
query34	17.11	4.35	4.39
query35	4.40	4.44	4.42
query36	0.65	0.46	0.49
query37	0.19	0.17	0.16
query38	0.15	0.15	0.14
query39	0.05	0.03	0.04
query40	0.14	0.12	0.12
query41	0.09	0.05	0.04
query42	0.05	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 109.9 s
Total hot run time: 30.51 s

@924060929 924060929 changed the title [enhance]Added compatibility with mysql alias conflict [chore](nereids) Added compatibility with mysql alias conflict Jul 22, 2024
@Toms1999
Copy link
Contributor Author

run buildall

@Toms1999
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17628	4320	4278	4278
q2	2011	201	208	201
q3	10429	1217	1074	1074
q4	10143	747	694	694
q5	7529	2706	2677	2677
q6	219	139	137	137
q7	960	591	603	591
q8	9229	1890	1890	1890
q9	8874	6546	6507	6507
q10	8816	3758	3776	3758
q11	470	241	249	241
q12	511	227	232	227
q13	19089	2957	2977	2957
q14	285	234	232	232
q15	517	479	499	479
q16	499	382	377	377
q17	969	691	752	691
q18	8054	7470	7462	7462
q19	6707	993	1076	993
q20	683	345	351	345
q21	4913	3253	3233	3233
q22	347	288	296	288
Total cold run time: 118882 ms
Total hot run time: 39332 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4400	4282	4264	4264
q2	380	283	256	256
q3	3005	2995	2885	2885
q4	2016	1675	1709	1675
q5	5626	5552	5469	5469
q6	225	134	143	134
q7	2187	1893	1833	1833
q8	3276	3395	3438	3395
q9	8772	8829	8916	8829
q10	4088	4007	3710	3710
q11	610	497	499	497
q12	830	642	623	623
q13	17037	3177	3182	3177
q14	309	278	284	278
q15	526	486	480	480
q16	494	449	434	434
q17	1782	1560	1535	1535
q18	8069	8127	7844	7844
q19	1972	1664	1613	1613
q20	2136	1875	1878	1875
q21	5143	4787	4602	4602
q22	586	516	506	506
Total cold run time: 73469 ms
Total hot run time: 55914 ms

@doris-robot
Copy link

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

query1	910	373	359	359
query2	6448	1827	1845	1827
query3	6630	205	217	205
query4	28235	17560	17526	17526
query5	3686	480	474	474
query6	265	183	165	165
query7	4571	287	283	283
query8	241	190	198	190
query9	8488	2469	2424	2424
query10	457	308	273	273
query11	10894	10038	9972	9972
query12	120	90	86	86
query13	1628	377	375	375
query14	10112	7629	7595	7595
query15	217	166	168	166
query16	7795	491	423	423
query17	1615	551	530	530
query18	1990	279	275	275
query19	195	141	142	141
query20	91	81	82	81
query21	200	100	102	100
query22	4354	4096	3995	3995
query23	34269	33851	33644	33644
query24	10908	2846	2935	2846
query25	598	391	387	387
query26	703	155	160	155
query27	2293	279	275	275
query28	6409	2101	2094	2094
query29	779	427	424	424
query30	264	152	151	151
query31	970	763	759	759
query32	99	56	54	54
query33	711	341	322	322
query34	889	481	489	481
query35	855	776	762	762
query36	1158	964	961	961
query37	144	80	87	80
query38	2931	2850	2937	2850
query39	862	792	807	792
query40	201	119	118	118
query41	48	43	42	42
query42	118	95	100	95
query43	512	460	455	455
query44	1121	731	720	720
query45	205	182	180	180
query46	1082	723	722	722
query47	1874	1808	1787	1787
query48	383	294	302	294
query49	842	405	413	405
query50	792	394	399	394
query51	6742	6767	6624	6624
query52	107	87	90	87
query53	250	180	189	180
query54	855	466	439	439
query55	72	73	75	73
query56	297	282	272	272
query57	1114	1032	1070	1032
query58	254	258	267	258
query59	2703	2648	2500	2500
query60	302	281	310	281
query61	95	92	94	92
query62	785	650	654	650
query63	205	180	173	173
query64	9162	2278	1815	1815
query65	3162	3087	3118	3087
query66	746	333	327	327
query67	15262	14814	14769	14769
query68	4517	554	544	544
query69	484	301	317	301
query70	1134	1061	1059	1059
query71	414	271	277	271
query72	6935	5729	6050	5729
query73	737	329	331	329
query74	6201	5640	5685	5640
query75	3345	2696	2686	2686
query76	2706	962	885	885
query77	442	303	290	290
query78	9773	10686	9407	9407
query79	2718	525	519	519
query80	1775	479	491	479
query81	594	223	224	223
query82	632	143	136	136
query83	312	172	173	172
query84	276	80	77	77
query85	727	384	298	298
query86	484	297	333	297
query87	3262	3095	3046	3046
query88	4275	2400	2391	2391
query89	416	294	279	279
query90	1748	189	187	187
query91	122	98	99	98
query92	58	50	47	47
query93	2656	555	540	540
query94	765	272	280	272
query95	345	259	259	259
query96	598	279	272	272
query97	3301	2979	3049	2979
query98	226	200	196	196
query99	1702	1258	1280	1258
Total cold run time: 276955 ms
Total hot run time: 173539 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.04
query2	0.09	0.04	0.04
query3	0.22	0.06	0.06
query4	1.67	0.09	0.08
query5	0.53	0.48	0.48
query6	1.12	0.72	0.73
query7	0.02	0.01	0.01
query8	0.05	0.05	0.04
query9	0.55	0.49	0.50
query10	0.55	0.54	0.54
query11	0.14	0.11	0.12
query12	0.14	0.12	0.12
query13	0.59	0.59	0.58
query14	0.77	0.77	0.76
query15	0.85	0.83	0.82
query16	0.35	0.36	0.36
query17	0.99	0.95	1.02
query18	0.23	0.22	0.22
query19	1.83	1.71	1.73
query20	0.01	0.01	0.01
query21	15.40	0.78	0.67
query22	3.86	7.54	1.67
query23	18.30	1.32	1.24
query24	2.08	0.24	0.23
query25	0.15	0.08	0.09
query26	0.29	0.21	0.22
query27	0.46	0.23	0.24
query28	13.24	1.02	1.00
query29	12.65	3.33	3.34
query30	0.24	0.05	0.06
query31	2.87	0.40	0.39
query32	3.25	0.48	0.47
query33	2.89	2.94	2.89
query34	17.15	4.38	4.33
query35	4.41	4.43	4.47
query36	0.64	0.46	0.46
query37	0.18	0.17	0.16
query38	0.16	0.17	0.14
query39	0.04	0.04	0.04
query40	0.16	0.12	0.12
query41	0.10	0.05	0.06
query42	0.06	0.05	0.05
query43	0.04	0.04	0.04
Total cold run time: 109.36 s
Total hot run time: 30.42 s

@Toms1999
Copy link
Contributor Author

run buildall

@Toms1999
Copy link
Contributor Author

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17608	4325	4278	4278
q2	2024	194	196	194
q3	10465	1179	1062	1062
q4	10128	710	685	685
q5	7603	2715	2719	2715
q6	217	139	137	137
q7	959	594	584	584
q8	9226	1882	1909	1882
q9	8845	6546	6574	6546
q10	8831	3735	3790	3735
q11	450	241	245	241
q12	534	230	221	221
q13	18579	2968	2977	2968
q14	277	233	248	233
q15	517	470	469	469
q16	501	379	388	379
q17	961	679	689	679
q18	7995	7561	7355	7355
q19	6772	1123	1061	1061
q20	657	332	332	332
q21	5132	3232	3309	3232
q22	353	288	291	288
Total cold run time: 118634 ms
Total hot run time: 39276 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4510	4264	4211	4211
q2	369	274	253	253
q3	3017	2858	2944	2858
q4	2022	1710	1722	1710
q5	5621	5524	5487	5487
q6	228	137	141	137
q7	2204	1884	1807	1807
q8	3263	3424	3443	3424
q9	8739	8801	8808	8801
q10	4056	3761	3779	3761
q11	627	515	499	499
q12	818	632	636	632
q13	17119	3187	3163	3163
q14	334	297	314	297
q15	522	498	493	493
q16	487	436	430	430
q17	1823	1536	1496	1496
q18	8049	7947	7810	7810
q19	1739	1550	1525	1525
q20	2149	1866	1896	1866
q21	7657	4905	4671	4671
q22	641	545	521	521
Total cold run time: 75994 ms
Total hot run time: 55852 ms

@924060929
Copy link
Contributor

run buildall

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17631	4371	4307	4307
q2	2013	196	190	190
q3	10465	1139	1100	1100
q4	10138	731	707	707
q5	7583	2708	2670	2670
q6	222	146	141	141
q7	966	613	601	601
q8	9224	1886	1911	1886
q9	8828	6549	6516	6516
q10	8858	3789	3767	3767
q11	449	248	242	242
q12	503	239	222	222
q13	18740	2997	2991	2991
q14	284	232	244	232
q15	508	483	498	483
q16	516	392	377	377
q17	964	652	662	652
q18	7942	7493	7444	7444
q19	7267	1005	1051	1005
q20	687	343	341	341
q21	4973	3270	3343	3270
q22	347	289	288	288
Total cold run time: 119108 ms
Total hot run time: 39432 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4516	4243	4238	4238
q2	377	262	254	254
q3	3004	2903	2868	2868
q4	1977	1648	1766	1648
q5	5636	5533	5483	5483
q6	220	130	138	130
q7	2208	1855	1827	1827
q8	3226	3417	3421	3417
q9	8749	8726	8823	8726
q10	4081	3877	3775	3775
q11	584	505	511	505
q12	819	657	647	647
q13	15957	3197	3204	3197
q14	335	282	281	281
q15	540	487	498	487
q16	476	434	434	434
q17	1835	1544	1520	1520
q18	8206	8003	7765	7765
q19	1720	1560	1601	1560
q20	2223	1897	1886	1886
q21	5162	5045	4606	4606
q22	613	525	523	523
Total cold run time: 72464 ms
Total hot run time: 55777 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 172368 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 91cdd76ece52bb13a59e11845e9e9483df81d12b, data reload: false

query1	896	371	359	359
query2	6428	1952	1843	1843
query3	6637	203	216	203
query4	28184	17101	17637	17101
query5	3657	480	477	477
query6	269	180	154	154
query7	4582	283	276	276
query8	240	194	193	193
query9	8574	2460	2440	2440
query10	448	280	288	280
query11	10504	10033	9962	9962
query12	121	91	86	86
query13	1624	372	364	364
query14	10135	7344	7613	7344
query15	222	168	164	164
query16	7645	460	459	459
query17	1383	580	542	542
query18	1907	304	293	293
query19	200	144	141	141
query20	91	87	84	84
query21	216	106	113	106
query22	4271	3966	3908	3908
query23	33985	33814	33660	33660
query24	10821	2970	2937	2937
query25	588	412	408	408
query26	718	162	147	147
query27	2232	278	285	278
query28	6184	2063	2066	2063
query29	804	429	420	420
query30	253	159	163	159
query31	963	783	753	753
query32	100	51	53	51
query33	692	351	319	319
query34	868	507	484	484
query35	858	753	768	753
query36	1128	953	983	953
query37	143	85	81	81
query38	2913	2876	2837	2837
query39	887	824	869	824
query40	209	120	118	118
query41	48	44	46	44
query42	115	104	105	104
query43	514	466	451	451
query44	1061	708	722	708
query45	208	180	190	180
query46	1081	711	728	711
query47	1816	1734	1750	1734
query48	354	287	291	287
query49	831	405	409	405
query50	790	397	394	394
query51	6836	6699	6681	6681
query52	92	90	85	85
query53	246	177	182	177
query54	877	439	442	439
query55	78	74	72	72
query56	287	272	288	272
query57	1109	1075	1059	1059
query58	257	272	259	259
query59	2906	2661	2664	2661
query60	298	285	278	278
query61	103	95	123	95
query62	776	660	650	650
query63	207	177	176	176
query64	9202	2222	1667	1667
query65	3165	3090	3087	3087
query66	755	327	330	327
query67	15277	14773	14738	14738
query68	4601	538	529	529
query69	543	300	342	300
query70	1199	1148	1062	1062
query71	404	273	262	262
query72	9189	5482	5912	5482
query73	773	327	320	320
query74	6109	5670	5679	5670
query75	3587	2677	2696	2677
query76	2811	901	885	885
query77	682	313	299	299
query78	12656	9537	8958	8958
query79	3213	508	509	508
query80	1524	486	492	486
query81	584	220	216	216
query82	631	132	134	132
query83	346	176	171	171
query84	274	75	83	75
query85	749	324	299	299
query86	463	312	315	312
query87	3309	3086	3014	3014
query88	4139	2518	2554	2518
query89	416	285	275	275
query90	1904	193	195	193
query91	127	100	105	100
query92	61	48	48	48
query93	4111	526	538	526
query94	934	282	279	279
query95	352	260	262	260
query96	605	275	275	275
query97	3170	3001	3030	3001
query98	221	197	194	194
query99	1546	1277	1294	1277
Total cold run time: 283102 ms
Total hot run time: 172368 ms

@doris-robot
Copy link

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

query1	0.04	0.04	0.03
query2	0.08	0.04	0.04
query3	0.22	0.05	0.05
query4	1.66	0.08	0.08
query5	0.51	0.49	0.48
query6	1.13	0.73	0.73
query7	0.02	0.01	0.01
query8	0.05	0.04	0.05
query9	0.55	0.48	0.49
query10	0.55	0.55	0.54
query11	0.14	0.12	0.11
query12	0.15	0.13	0.13
query13	0.61	0.59	0.59
query14	0.76	0.78	0.78
query15	0.84	0.81	0.82
query16	0.36	0.37	0.37
query17	0.97	0.98	0.95
query18	0.25	0.22	0.22
query19	1.75	1.75	1.69
query20	0.02	0.01	0.01
query21	15.51	0.75	0.66
query22	4.16	6.42	2.55
query23	18.29	1.37	1.30
query24	2.07	0.24	0.21
query25	0.15	0.08	0.08
query26	0.29	0.21	0.21
query27	0.46	0.23	0.23
query28	13.29	1.01	1.00
query29	12.62	3.26	3.25
query30	0.25	0.06	0.05
query31	2.88	0.38	0.38
query32	3.28	0.48	0.48
query33	2.88	2.90	2.93
query34	17.00	4.33	4.35
query35	4.46	4.47	4.35
query36	0.65	0.46	0.47
query37	0.19	0.16	0.16
query38	0.16	0.15	0.16
query39	0.05	0.04	0.04
query40	0.15	0.13	0.13
query41	0.09	0.06	0.04
query42	0.06	0.05	0.05
query43	0.05	0.04	0.04
Total cold run time: 109.65 s
Total hot run time: 31.19 s

Copy link
Contributor

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

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jul 26, 2024
@924060929 924060929 merged commit 2757b4b into apache:master Jul 26, 2024
29 of 30 checks passed
dataroaring pushed a commit that referenced this pull request Aug 11, 2024
throw table name/alias conflict exception to keep same behavior with mysql

for example:
```sql
select * from test.a b, test.b
```

error:
```
Not unique table/alias: 'b'
```
dataroaring pushed a commit that referenced this pull request Aug 16, 2024
throw table name/alias conflict exception to keep same behavior with mysql

for example:
```sql
select * from test.a b, test.b
```

error:
```
Not unique table/alias: 'b'
```
924060929 pushed a commit that referenced this pull request Aug 22, 2024
… (#38440)

throw table name/alias conflict exception to keep same behavior with mysql

for example:
```sql
select * from test.a b, test.b
```

error:
```
Not unique table/alias: 'b'
```
Toms1999 added a commit to Toms1999/doris that referenced this pull request Aug 22, 2024
…e#38104)

throw table name/alias conflict exception to keep same behavior with mysql

for example:
```sql
select * from test.a b, test.b
```

error:
```
Not unique table/alias: 'b'
```
@yiguolei yiguolei mentioned this pull request Sep 5, 2024
3 tasks
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