Skip to content

Commit 552714a

Browse files
committed
Don't panic
1 parent a45a5a0 commit 552714a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/parser/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11362,7 +11362,11 @@ impl<'a> Parser<'a> {
1136211362
| Keyword::CROSS => {
1136311363
self.prev_token();
1136411364
let mut joins = self.parse_joins()?;
11365-
// Take first
11365+
if joins.len() != 1 {
11366+
return Err(ParserError::ParserError(
11367+
"Join pipe operator must have a single join".to_string(),
11368+
));
11369+
}
1136611370
let join = joins.swap_remove(0);
1136711371
pipe_operators.push(PipeOperator::Join(join))
1136811372
}

0 commit comments

Comments
 (0)