alamb commented on issue #20135:
URL: https://github.com/apache/datafusion/issues/20135#issuecomment-3841042606

   I think the first key decision is how to model this method / what is the API
   
   I think @ethan-tyler  / @adriangb  were leaning towards some built in 
functions like
   ```rust
   select filename() from my_table
   ```
   
   And then rewriting the function reference in the datasource
   
   One potential downside of doing it this way is that it is not clear how it 
would work for a multi-table query -- for example
   ```sql
   SELECT ..., filename()    -- <---- Which relation does `filename()` get 
attached to?
   FROM a JOIN b USING (id)
   ```
   
   


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