neilconway opened a new issue, #21206:
URL: https://github.com/apache/datafusion/issues/21206

   ### Describe the bug
   
   ```
     CREATE TABLE t1(id INTEGER) AS VALUES (1), (2), (3);
     CREATE TABLE t2(id INTEGER, outer_id INTEGER) AS VALUES (10, 1), (20, 1), 
(30, 2);
   
     -- Expected: (1, 2), (2, 1), (3, 0)
     -- Actual (before fix): "Ambiguous reference to unqualified field id"
     SELECT t1.id,
       (SELECT count(*) AS id FROM t2 WHERE t2.outer_id = t1.id) AS cnt
     FROM t1
     ORDER BY t1.id;
   ```
   
   ### To Reproduce
   
   _No response_
   
   ### Expected behavior
   
   _No response_
   
   ### 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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to