ndscoder commented on issue #1816:
URL: 
https://github.com/apache/datafusion-python/issues/1816#issuecomment-7308920381

   Thanks, yes please, that would be great.
   
   The API in the issue works for us. The name and exact shape are up to you 
and the maintainers.
   
   On going upstream first: I don't think it needs to. The pieces are already 
in DataFusion's Rust crates (a `PartitionedFile` with its `partition_values`, 
and a `FileScanConfig` with the table's partition columns), so it can live here 
as a table provider. A `ListingTable` over the given paths would not be enough 
on its own, since it reads partition values from the path, and a Delta file's 
path does not have to carry them.
   
   What matters for us:
   
   - The files are exactly the ones given. Nothing lists a folder.
   - Partition values are typed by the declared partition columns, and a value 
can be null (Delta has null partition values).
   - With a schema given, planning reads no file.
   - An optional size per file. We have it from the Delta log, and on object 
storage it saves a HEAD request per file.
   - It works with an object store registered on the context (we use `az://`).
   - Filters and the TopK dynamic filter prune files by those columns. The 
example in the issue makes a good test: ordered by the partition column with a 
LIMIT, only the first partition's file should be read.
   
   Happy to test a branch against our tables when you have one.


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