(&mut self)
| 584 | } |
| 585 | |
| 586 | pub fn parse_expr(&mut self) -> Result<ExprWithAlias, DataFusionError> { |
| 587 | if let Token::Word(w) = self.parser.peek_token().token { |
| 588 | match w.keyword { |
| 589 | Keyword::CREATE | Keyword::COPY | Keyword::EXPLAIN => { |
| 590 | return parser_err!("Unsupported command in expression")?; |
| 591 | } |
| 592 | _ => {} |
| 593 | } |
| 594 | } |
| 595 | |
| 596 | Ok(self.parser.parse_expr_with_alias()?) |
| 597 | } |
| 598 | |
| 599 | /// Parses the entire SQL string into an expression. |
| 600 | /// |
no outgoing calls