adiranjan25 opened a new pull request, #18876:
URL: https://github.com/apache/iceberg/pull/18876

   ## Description
   
   Fixes #18872.
   
   Table path rewriting can fail when a local warehouse location uses 
`file:///` while metadata and file references use the equivalent `file:/` 
representation.
   
   This change normalizes these equivalent local-file URI representations 
during path rewriting and related prefix checks, without changing the original 
URI representation used for output paths.
   
   ## Changes
   
   - Normalize equivalent local-file URI spellings for relative path 
calculation.
   - Update related path-prefix checks.
   - Add core regression tests covering equivalent URI representations and 
invalid prefixes.
   - Add a Spark 4.1 integration regression that verifies the rewrite action 
produces a file list with destination paths under the requested target.
   
   ## Validation
   
   - Core `TestRewriteTablePathUtil` — passed.
   - Spark 4.1 
`TestRewriteTablePathsAction.testRewriteWithEquivalentLocalFileUriPrefix` — 
passed.
   - Spotless Java formatting — passed.
   - `git diff --check` — passed.
   
   The exact JDBC catalog configuration from the issue has not been 
independently reproduced in the integration test.


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