Skip to content

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

Open

Description

@samirsatpathy

There is a "file:" prefix getting appended to the avro file path which leads to this error inside arrow localfs.cc (RETURN_NOT_OK(ValidatePath(path));) while running demo_example.cc on WIndows while making the PlanFiles() call.

iceberg-reader.exe "C:\iceberg_warehouse\db" sample "C:\iceberg_warehouse\db\sample\metadata\v5.metadata.json"
Failed to plan files: Invalid: Expected a local filesystem path, got a URI: 'file:/C:/iceberg_warehouse/db/sample/metadata/snap-4130091257426129961-1-0b7261a2-d123-4635-82a6-0a5a30e19a06.avro'

Activity

  1. wgtmac commented on Nov 25, 2025

    @wgtmac
    Member

    Could you please check if C:\iceberg_warehouse\db\sample\metadata\v5.metadata.json has used file:/C:/iceberg_warehouse/db/sample/metadata/snap-4130091257426129961-1-0b7261a2-d123-4635-82a6-0a5a30e19a06.avro as the manifest list file location? I suspect that the Arrow local filesystem implementation does not handle file:/ prefix well.

  2. yadavay-amzn commented on Jul 6, 2026

    @yadavay-amzn
    Contributor

    I would like to work on this. Plan: correct the file-path handling in PlanFiles() so local/Windows paths are not mis-parsed as URIs, and add a regression test covering the Windows path case. Will disclose AI-assisted authoring in the PR per the Iceberg AI-contribution guidelines.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions