alamb opened a new issue, #3873:
URL: https://github.com/apache/arrow-datafusion/issues/3873

   **Describe the bug**
   When we ran some unsupported DDL in our system
   
   ```sql
   drop table foo
   ```
   
   The output would be an empty table (rather than an unsupported error):
   ```
   ++
   ++
   ```
   
   However, running `CREATE EXTERNAL TABLE` results in an error as expected.
   
   **To Reproduce**
   Try and run `drop table` (not through the datafusion CLI which handles these 
`LogicalPlan` variants specially)
   
   **Expected behavior**
   The physical planner should generate an error for DDL statements that have a 
`LogicalPlan` variant as it does for `CREATE EXTERNAL TABLE` 
   
   
https://github.com/apache/arrow-datafusion/blob/b654fdea697b9aec1cb487e292dd288e5c9d09e3/datafusion/core/src/physical_plan/planner.rs#L1024-L1057
   
   **Additional context**
   We saw this in IOx https://github.com/influxdata/influxdb_iox/issues/5802 
and worked around it in https://github.com/influxdata/influxdb_iox/pull/5876 by 
explicitly generating the errors
   


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

Reply via email to