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

   **Describe the bug**
   See unit test below.
   
   **To Reproduce**
   ``` rust
   #[tokio::test]
   async fn nested_subquery() -> Result<()> {
       let ctx = SessionContext::new();
       let schema = Schema::new(vec![
           Field::new("id", DataType::Int16, false),
           Field::new("a", DataType::Int16, false),
       ]);
       let empty_table = Arc::new(EmptyTable::new(Arc::new(schema)));
       ctx.register_table("t1", empty_table.clone())?;
       ctx.register_table("t2", empty_table)?;
       let sql = "SELECT COUNT(*) \
       FROM (\
           (SELECT id FROM t1) EXCEPT \
           (SELECT id FROM t2)\
           ) foo";
       let actual = execute_to_batches(&ctx, sql).await;
       // the purpose of this test is just to make sure the query produces a 
valid plan
       let expected = vec!["++", "++"];
       assert_batches_eq!(expected, &actual);
       Ok(())
   }
   ```
   
   Fails with:
   
   ```
   NotImplemented(\"Query (SELECT id FROM t1) not implemented yet\")
   ```
   
   **Expected behavior**
   Test should pass
   
   **Additional context**
   None
   


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