Skip to content

fix: accept single-slash local file URIs in Arrow FileIO - #1165

Open
XSY-28 wants to merge 1 commit into
apache:mainfrom
XSY-28:codex/fix-short-local-file-uri-341
Open

XSY-28 wants to merge 1 commit into
apache:mainfrom
XSY-28:codex/fix-short-local-file-uri-341

Conversation

@XSY-28

@XSY-28 XSY-28 commented Nov 23, 2026

Copy link
Copy Markdown

Fixes #341.

Java Iceberg writes absolute local URIs such as file:/warehouse/metadata/snap.avro. Arrow already parses this form, but the Iceberg FileIO wrapper passed it to Arrow's filesystem as a bare path. Route the one-slash form through the existing URI parser, normalizing its scheme while preserving the path.

The public FileIO test reads the same file through the one-slash, mixed-case, and three-slash forms and checks that a malformed short URI is rejected. This is the separate Arrow change requested in #818. Both new tests fail on the previous code. On macOS, the bundled Arrow suite passes 115 tests and the utility suite passes 431.

Generated by OpenAI Codex (GPT-6.2 Sol, xhigh) on behalf of @XSY-28. Human pre-submission review: unreviewed.

Generated-by: OpenAI Codex (GPT-6.2 Sol, xhigh)
@zhjwpku

zhjwpku commented Nov 23, 2026

Copy link
Copy Markdown
Member

@XSY-28 Please review your own changes before opening a PR, your AI says these changes haven't been reviewed :-)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failed to plan files: Invalid: Expected a local filesystem path, got a URI in PlanFiles() call in demo_example.cc

2 participants