Jefffrey commented on issue #4872:
URL: 
https://github.com/apache/arrow-datafusion/issues/4872#issuecomment-1417310863

   Most relevant part seems to be here (where most errors are originating from):
   
   
https://github.com/apache/arrow-datafusion/blob/f8607c238d7c6dd1d33cf494722fa73466f73dd2/datafusion/sql/src/expr/identifier.rs#L73-L112
   
   However there might be need to refactor `Column`:
   
   
https://github.com/apache/arrow-datafusion/blob/5dd5ffd5ea84d843b9ef34d0eaa9ac992618f6e2/datafusion/common/src/column.rs#L29-L34
   
   Specifically with how it treats `relation` as an `Option<String>`. The below 
SQL does work:
   
   ```sql
   SELECT * from information_schema.tables WHERE 
"information_schema.tables".table_schema='information_schema';
   ```
   
   Since the `relation` here is `information_schema.tables` as a whole. Could 
try to make `relation` an `Option<OwnedTableReference>` instead. I'll take a 
shot at implementing this and exploring what this could look like.


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