You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support extended partition cols for listing table. #18482
Is your feature request related to a problem or challenge?
When scanning partitioned files, there are scenarios where runtime-generated values (not persisted in the files) need to be attached to each RecordBatch.
Currently, when a partition contains multiple files, loadNextBatch has no context about which file it is returning rows from.
This makes it impossible to append per-file runtime data to the resulting RecordBatch.
We’d like a way to extend the file schema and stream with additional columns—similar to how table_partition_cols are added from directory structure.
Extend the ListingTable and ListingOptions to support user-provided extended columns (extended_cols), which are appended to each file’s stream and schema—analogous to table_partition_cols.
I think the filename is (or could be) made available today
Sorry, if its an obvious question, but I dont understand where exactly did you mean to expose the above? Do you mean on stream level or somewhere else?
I mean that the ListingTable already has the information on what file is being scanned, so with just code in DataFusion we could add support for scanning filenames
Things like row numbers and row group numbers need prquet reader support
However, thanks to @vustef once we upgraade to arrow 57.1.0 we'll have access to the row numbers from the parquet reader
Activity
alamb commentedon Nov 5, 2025
Thanks for filing this ticket @animodak7
There are a few "vritual" columns I have heard people ask about before:
Here are some related discussions:
I think the filename is (or could be) made available today
Row numbers need support in the arrow parquet reader (though I am talking with @vustef about this shorly)
alamb commentedon Nov 5, 2025
Here is another related PR in iceberg-rust
_filecolumn iceberg-rust#1824feniljain commentedon Nov 26, 2025
Hey @alamb 👋🏻
Sorry, if its an obvious question, but I dont understand where exactly did you mean to expose the above? Do you mean on stream level or somewhere else?
alamb commentedon Nov 26, 2025
I mean that the ListingTable already has the information on what file is being scanned, so with just code in DataFusion we could add support for scanning filenames
Things like row numbers and row group numbers need prquet reader support
However, thanks to @vustef once we upgraade to arrow 57.1.0 we'll have access to the row numbers from the parquet reader
alamb commentedon Feb 3, 2026
I filed an epic to track related items