Commit d2c9c8b 1 parent ea1955d commit d2c9c8b Copy full SHA for d2c9c8b
File tree 1 file changed +4
-2
lines changed
fe/fe-core/src/test/java/org/apache/doris/nereids/rules/rewrite
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,8 @@ void testNullWithPredicate() throws Exception {
107
107
108
108
@ Test
109
109
void testMultiJoin () throws Exception {
110
- addConstraint ("Alter table foreign_null add constraint uk unique (id3)\n " );
110
+ addConstraint ("Alter table foreign_null add constraint uk_id3 unique (id3)\n " );
111
+ addConstraint ("Alter table foreign_not_null add constraint uk_id2 unique (id2)\n " );
111
112
String sql = "select id1 from "
112
113
+ "foreign_null inner join foreign_not_null on id2 = id3\n "
113
114
+ "inner join pri on id1 = id3" ;
@@ -116,6 +117,7 @@ void testMultiJoin() throws Exception {
116
117
.rewrite ()
117
118
.nonMatch (logicalOlapScan ().when (scan -> scan .getTable ().getName ().equals ("pri" )))
118
119
.printlnTree ();
119
- dropConstraint ("Alter table foreign_null drop constraint uk\n " );
120
+ dropConstraint ("Alter table foreign_null drop constraint uk_id3\n " );
121
+ dropConstraint ("Alter table foreign_not_null drop constraint uk_id2" );
120
122
}
121
123
}
You can’t perform that action at this time.
0 commit comments