logan-keede commented on issue #3725:
URL: https://github.com/apache/datafusion/issues/3725#issuecomment-2748246378

   I think this issue can be closed as queries above are already supported.
   ```sql
   DataFusion CLI v46.0.1
   > create external table test (a int, b int) stored as csv location 
'test.csv';
   0 row(s) fetched. 
   Elapsed 0.008 seconds.
   
   > select * from test where a = (select max(a) from test t2);
   
   +---+---+
   | a | b |
   +---+---+
   | 1 | 2 |
   +---+---+
   1 row(s) fetched. 
   Elapsed 0.028 seconds.
   
   > select * from test where a = (select distinct a from test);
   
   +---+---+
   | a | b |
   +---+---+
   | 1 | 2 |
   +---+---+
   1 row(s) fetched. 
   Elapsed 0.020 seconds.
   
   > select * from test where a = (select a from test limit 1);
   
   +---+---+
   | a | b |
   +---+---+
   | 1 | 2 |
   +---+---+
   1 row(s) fetched. 
   Elapsed 0.022 seconds.
   
   > select * from test where a = (select a from test where a is not null);
   
   +---+---+
   | a | b |
   +---+---+
   | 1 | 2 |
   +---+---+
   1 row(s) fetched. 
   Elapsed 0.016 seconds.
   ``` 


-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to