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

Method parse_explain

datafusion/sql/src/parser.rs:761–774  ·  view source on GitHub ↗

Parse a SQL `EXPLAIN`

(&mut self)

Source from the content-addressed store, hash-verified

759
760 /// Parse a SQL `EXPLAIN`
761 pub fn parse_explain(&mut self) -> Result<Statement, DataFusionError> {
762 let analyze = self.parser.parse_keyword(Keyword::ANALYZE);
763 let verbose = self.parser.parse_keyword(Keyword::VERBOSE);
764 let format = self.parse_explain_format()?;
765
766 let statement = self.parse_statement()?;
767
768 Ok(Statement::Explain(ExplainStatement {
769 statement: Box::new(statement),
770 analyze,
771 verbose,
772 format,
773 }))
774 }
775
776 /// Parse a SQL `RESET`
777 pub fn parse_reset(&mut self) -> Result<Statement, DataFusionError> {

Callers 1

parse_statementMethod · 0.80

Calls 4

ExplainClass · 0.85
newFunction · 0.85
parse_explain_formatMethod · 0.80
parse_statementMethod · 0.45

Tested by

no test coverage detected