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

   ### Describe the bug
   
   I use sql() to explain an query, it raised an error.
   `sql("explain analyze select 1")` also has the issue
   
   ### To Reproduce
   
   ```python
   import datafusion
   ctx=datafusion.SessionContext()
   ctx.sql("explain select 1")
   ```
   outputs
   ```
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
   Exception: Internal error: Unsupported logical plan: Explain must be root of 
the plan.
   This was likely caused by a bug in DataFusion's code and we would welcome 
that you file an bug report in our issue tracker
   ```
   
   ### Expected behavior
   
   it output the plan of the query
   
   ### Additional context
   
   _No response_


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