mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-14 18:05:06 +00:00
Fix clippy lints in "Support qualified function names"
This commit is contained in:
parent
de057deff6
commit
9a244e059e
1 changed files with 7 additions and 8 deletions
|
@ -188,22 +188,21 @@ impl Parser {
|
||||||
ends_with_wildcard = true;
|
ends_with_wildcard = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_ => {
|
unexpected => {
|
||||||
return parser_err!(format!(
|
return parser_err!(format!(
|
||||||
"Error parsing compound identifier"
|
"Expected an identifier or a '*' after '.', got: {:?}",
|
||||||
|
unexpected
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ends_with_wildcard {
|
if ends_with_wildcard {
|
||||||
Ok(ASTNode::SQLQualifiedWildcard(id_parts))
|
Ok(ASTNode::SQLQualifiedWildcard(id_parts))
|
||||||
|
} else if self.consume_token(&Token::LParen) {
|
||||||
|
self.prev_token();
|
||||||
|
self.parse_function(SQLObjectName(id_parts))
|
||||||
} else {
|
} else {
|
||||||
if self.consume_token(&Token::LParen) {
|
Ok(ASTNode::SQLCompoundIdentifier(id_parts))
|
||||||
self.prev_token();
|
|
||||||
self.parse_function(SQLObjectName(id_parts))
|
|
||||||
} else {
|
|
||||||
Ok(ASTNode::SQLCompoundIdentifier(id_parts))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_ => Ok(ASTNode::SQLIdentifier(w.as_sql_ident())),
|
_ => Ok(ASTNode::SQLIdentifier(w.as_sql_ident())),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue