tv42 commented on issue #8379:
URL: 
https://github.com/apache/arrow-datafusion/issues/8379#issuecomment-1850990387

   I assume you mean `column_by_name`, 
<https://docs.rs/datafusion/latest/datafusion/common/arrow/record_batch/struct.RecordBatch.html#method.column_by_name>?
   
   Ecosystem survey:
   
   - SQLite picks the first matching column:
     ```
     select col1 from (SELECT + COUNT( * ) AS col1, - 92 - + - 47 AS col1);
     1
     ```
   - Postgres errors at column access time if there are duplicates:
   
     ```
     postgres=# select col1 from (SELECT + COUNT( * ) AS col1, - 92 - + - 47 AS 
col1) as foo;
     ERROR:  column reference "col1" is ambiguous
     LINE 1: select col1 from (SELECT + COUNT( * ) AS col1, - 92 - + - 47...
                    ^
     ```
   


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