pepijnve commented on code in PR #25112:
URL: https://github.com/apache/datafusion/pull/25112#discussion_r4070323535


##########
datafusion/sql/src/statement.rs:
##########
@@ -814,6 +818,13 @@ impl<S: ContextProvider> SqlToRel<'_, S> {
                             },
                         )))
                     }
+                    ObjectType::Database => Ok(LogicalPlan::Ddl(
+                        DdlStatement::DropCatalog(datafusion_expr::DropCatalog 
{
+                            name: object_name_to_string(&name),
+                            if_exists,
+                            schema: DFSchemaRef::new(DFSchema::empty()),

Review Comment:
   This code path consumes `DROP DATABASE` which is parsed by the standard SQL 
parser. Is that wanted or should I remove this?



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

Reply via email to