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

   **Describe the bug**
   When the two table both has `c0`, then the following sql will work:
   ```sql
   ❯ explain select c0 from test0, test1;
   
+---------------+-----------------------------------------------------------------------------------------------------+
   | plan_type     | plan                                                       
                                         |
   
+---------------+-----------------------------------------------------------------------------------------------------+
   | logical_plan  | Projection: test0.c0                                       
                                         |
   |               |   CrossJoin:                                               
                                         |
   |               |     TableScan: test0 projection=[c0]                       
                                         |
   |               |     TableScan: test1 projection=[c0]                       
                                         |
   ```
   
   The projection part of this sql is not clear, datafusion should throw an 
error.
   
   **To Reproduce**
   Create two table test0 and test1, which both contain `c0`.
   Run sql `explain select c0 from test0, test1;`
   
   **Expected behavior**
   
   **Additional context**
   


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