alamb commented on issue #7760:
URL: 
https://github.com/apache/arrow-datafusion/issues/7760#issuecomment-1751400922

   Thanks @Yacobolo  -- I think this would be a relatively straightforward 
feature to add to the SQL planner
   
   It actually looks like the sql parser already supports this and DataFusion 
is just ignoring it completely
   
   ```
   ❯ create table t(x int) as values (1), (2), (3), (2), (5), (1);
   0 rows in set. Query took 0.004 seconds.
   
   ❯ with t2 as (select * from t where x > 2) select *;
   Error during planning: SELECT * with no tables specified is not valid
   ```
   


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