phillipleblanc commented on issue #15173:
URL: https://github.com/apache/datafusion/issues/15173#issuecomment-2849049906
> And then making another stream wrapper that did the projecting
Actually, yeah - that would work quite nicely I think. If we changed
FileStream's interface from returning RecordBatches to returning a Tuple of
(RecordBatch, ObjectMeta) then it solves both cases.
i.e. from:
```rust
impl Stream for FileStream {
type Item = Result<RecordBatch>;
```
to
```rust
impl Stream for FileStream {
type Item = Result<(RecordBatch, ObjectMeta)>;
```
That would allow for injection of metadata columns in my custom
implementation and for parsing out of the partition column values from the
`location` in the ListingTableProvider (instead of having the inner FileStream
handle that complexity).
--
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]