xitep commented on code in PR #2214:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2214#discussion_r2828525264
##########
src/parser/mod.rs:
##########
@@ -17133,12 +17139,26 @@ impl<'a> Parser<'a> {
let table = self.parse_keyword(Keyword::TABLE);
let table_object = self.parse_table_object()?;
- let table_alias =
- if dialect_of!(self is PostgreSqlDialect) &&
self.parse_keyword(Keyword::AS) {
- Some(self.parse_identifier()?)
+ let table_alias = if dialect_of!(self is OracleDialect) {
+ if !self.peek_sub_query()
+ && !self.peek_keyword_one_of(&[Keyword::DEFAULT,
Keyword::VALUES])
Review Comment:
since this branch is oracle specific, i'll need to add specific tests for
this dialect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]