Support ANTI and SEMI joins without LEFT/RIGHT (#1528)

This commit is contained in:
delamarch3 2024-11-18 12:30:20 +00:00 committed by GitHub
parent 4a5f20e911
commit a67a4f3cbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 46 additions and 0 deletions

View file

@ -10025,6 +10025,16 @@ impl<'a> Parser<'a> {
}
}
}
Keyword::ANTI => {
let _ = self.next_token(); // consume ANTI
self.expect_keyword(Keyword::JOIN)?;
JoinOperator::Anti
}
Keyword::SEMI => {
let _ = self.next_token(); // consume SEMI
self.expect_keyword(Keyword::JOIN)?;
JoinOperator::Semi
}
Keyword::FULL => {
let _ = self.next_token(); // consume FULL
let _ = self.parse_keyword(Keyword::OUTER); // [ OUTER ]