Parses the entire SQL string into an expression. In contrast to [`DFParser::parse_expr`], this function will report an error if the input contains any trailing, unparsed tokens.
(&mut self)
| 601 | /// In contrast to [`DFParser::parse_expr`], this function will report an error if the input |
| 602 | /// contains any trailing, unparsed tokens. |
| 603 | pub fn parse_into_expr(&mut self) -> Result<ExprWithAlias, DataFusionError> { |
| 604 | let expr = self.parse_expr()?; |
| 605 | self.expect_token("end of expression", &Token::EOF)?; |
| 606 | Ok(expr) |
| 607 | } |
| 608 | |
| 609 | /// Helper method to parse a statement and handle errors consistently, especially for recursion limits |
| 610 | fn parse_and_handle_statement(&mut self) -> Result<Statement, DataFusionError> { |
no test coverage detected