apache / apache/iceberg-cpp

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

Open
#341 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
221
Forks
124
Avg merge
1d 16h
Merged PRs (30d)
21

Description

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'

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Windows failure using demo_example.cc and the shown iceberg-reader.exe command, then trace the PlanFiles() call into arrow localfs.cc and ValidatePath(path). The work is done when the planned Avro path is accepted as a local filesystem path rather than a file: URI and the demo completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.