Checkpoint before follow-up message

Co-authored-by: 936797922 <936797922@qq.com>
This commit is contained in:
Cursor Agent 2025-09-18 12:00:09 +00:00
parent e226d543d4
commit e9be84c804
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,9 @@ public class AnalyzeJoinTest {
analyzeFail("select * from (t0 join tnotnull using(v1)) t , t1",
"Getting syntax error at line 1, column 43. Detail message: Unexpected input 't', " +
"the most similar input is {<EOF>, ';'}.");
analyzeFail("select v1 from (t0 join tnotnull using(v1)), t1", "Column 'v1' is ambiguous");
// After aligning USING semantics with SQL standard/MySQL, USING columns are coalesced
// and unqualified reference is not ambiguous in this case
analyzeSuccess("select v1 from (t0 join tnotnull using(v1)), t1");
analyzeSuccess("select a.v1 from (t0 a join tnotnull b using(v1)), t1");
}