lance-format/lance

added a `localstore` scheme in `object_store.rs` for testing

Open

#1,376 创建于 2023年10月10日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (695 fork)github user discovery
enhancementgood first issuehelp wantedrust

仓库指标

Star
 (6,582 star)
PR 合并指标
 (平均合并 6天 1小时) (30 天内合并 219 个 PR)

描述

we have a short cut in https://github.com/lancedb/lance/blob/main/rust/lance/src/io/object_store.rs#L607-L615, where we use the FS directly when we detect the file being read is a local file.

However, this makes testing object store behavior hard because we have to setup a object store fixture like localstack in order to test the CloudObjectReader path.

We can add a localstore scheme, where we can exercise object store code path with a local directory

贡献者指南