comphead commented on code in PR #18238:
URL: https://github.com/apache/datafusion/pull/18238#discussion_r2463202813
##########
datafusion/sql/src/statement.rs:
##########
@@ -242,6 +242,16 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
table_name,
..
} => self.describe_table_to_plan(table_name),
+ Statement::Explain {
+ describe_alias: DescribeAlias::Describe | DescribeAlias::Desc,
// only parse 'DESCRIBE statement' or 'DESC statement' and not 'EXPLAIN
statement'
+ statement,
+ ..
+ } => match *statement {
+ Statement::Query(query) => self.describe_query_to_plan(*query),
+ _ => Err(DataFusionError::NotImplemented(format!(
Review Comment:
please use `not_impl_err!` macro
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]