Skip to content

Commit

Permalink
[nereids] fix join fd computing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongjian.xzj authored and zhongjian.xzj committed Dec 22, 2023
1 parent ea1955d commit d2c9c8b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ void testNullWithPredicate() throws Exception {

@Test
void testMultiJoin() throws Exception {
addConstraint("Alter table foreign_null add constraint uk unique (id3)\n");
addConstraint("Alter table foreign_null add constraint uk_id3 unique (id3)\n");
addConstraint("Alter table foreign_not_null add constraint uk_id2 unique (id2)\n");
String sql = "select id1 from "
+ "foreign_null inner join foreign_not_null on id2 = id3\n"
+ "inner join pri on id1 = id3";
Expand All @@ -116,6 +117,7 @@ void testMultiJoin() throws Exception {
.rewrite()
.nonMatch(logicalOlapScan().when(scan -> scan.getTable().getName().equals("pri")))
.printlnTree();
dropConstraint("Alter table foreign_null drop constraint uk\n");
dropConstraint("Alter table foreign_null drop constraint uk_id3\n");
dropConstraint("Alter table foreign_not_null drop constraint uk_id2");
}
}

0 comments on commit d2c9c8b

Please sign in to comment.