[Feature](Nereids): support cte for update and delete statements of Nereids (#23384)

This commit is contained in:
mch_ucchi
2023-08-31 23:36:27 +08:00
committed by GitHub
parent c74ca15753
commit 52e645abd2
9 changed files with 275 additions and 13 deletions

View File

@ -70,7 +70,7 @@ public class DeleteCommandTest extends TestWithFeService implements PlanPatternM
}
@Test
public void testFromClauseUpdate() throws AnalysisException {
public void testFromClauseDelete() throws AnalysisException {
String sql = "delete from t1 a using src join t2 on src.k1 = t2.k1 where t2.k1 = a.k1";
LogicalPlan parsed = new NereidsParser().parseSingle(sql);
Assertions.assertTrue(parsed instanceof DeleteCommand);