Skip to content

Commit 74b08cf

Browse files
author
DataFusion Migration
committed
parser: peek instead of consuming in external table parsing
Cherry-picked from original commit 1cf070b
1 parent 513ba7a commit 74b08cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

datafusion/sql/src/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ impl<'a> DFParser<'a> {
971971
}
972972
}
973973
} else {
974-
let token = self.parser.next_token();
974+
let token = self.parser.peek_token();
975975
if token == Token::EOF || token == Token::SemiColon {
976976
break;
977977
} else {

0 commit comments

Comments
 (0)