MCPcopy Create free account
hub / github.com/apache/datafusion / parse_expr

Method parse_expr

datafusion/sql/src/parser.rs:586–597  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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 ///

Callers 5

parse_into_exprMethod · 0.80
parse_order_by_exprMethod · 0.80
roundtrip_exprFunction · 0.80
test_pretty_roundtripFunction · 0.80

Calls

no outgoing calls

Tested by 3

roundtrip_exprFunction · 0.64
test_pretty_roundtripFunction · 0.64