dwsmith1983 opened a new pull request, #7794:
URL: https://github.com/apache/datafusion-comet/pull/7794

   ## Which issue does this PR close?
   
   No issue. Follow-up to the review on #7130: 
https://github.com/apache/datafusion-comet/pull/7130#pullrequestreview-6104032451
   
   ## Rationale for this change
   
   When `build_projection_expressions` fails in the Iceberg scan, for example 
on a top-level column missing from the batch iceberg-rust returned, the error 
names only the column. Nothing says which table or files were being read. A 
batch can't name its own data file: `execute_with_tasks` hands every task in 
the partition to iceberg-rust's `reader.read` as one stream, and the reader 
interleaves the files with `flatten_unordered`. The partition's files are 
known, though, and listing them narrows the search to a few files.
   
   ## What changes are included in this PR?
   
   - `PartitionFiles`, captured in `execute_with_tasks`: the metadata location, 
the first three distinct data file paths, and the number of distinct data files 
(a file split across several tasks counts once)
   - appended to every projection build error: `(the partition reads 5 data 
files of table <metadata>: f1, f2, f3 and 2 more)`, capped at three paths so a 
partition with hundreds of tasks still gives a one-line message
   - every location goes through `redacted_url_display`, and the text is built 
only when the error fires
   
   Depends on #7130, which adds the missing-column error, and #7733, which adds 
`redacted_url_display`. It merges after both, and until then the diff includes 
their changes.
   
   ## How are these changes tested?
   
   A unit test polls `IcebergStreamWrapper` with a batch missing a projected 
column (the other projection errors share the same `map_err`). The metadata 
location and two data files carry a password, a signed query and a fragment, 
and the test checks the exact text appended to the error and that none of those 
values appears. A second test checks the list for one file, exactly three, 
five, and a file split across several tasks.
   


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