mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Don't panic
This commit is contained in:
parent
a45a5a09bf
commit
552714aabf
1 changed files with 5 additions and 1 deletions
|
@ -11362,7 +11362,11 @@ impl<'a> Parser<'a> {
|
|||
| Keyword::CROSS => {
|
||||
self.prev_token();
|
||||
let mut joins = self.parse_joins()?;
|
||||
// Take first
|
||||
if joins.len() != 1 {
|
||||
return Err(ParserError::ParserError(
|
||||
"Join pipe operator must have a single join".to_string(),
|
||||
));
|
||||
}
|
||||
let join = joins.swap_remove(0);
|
||||
pipe_operators.push(PipeOperator::Join(join))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue