You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#2328
currently, lots of error in our codebase are wrapped in Error::IO, some
are not accurate. like this one:
[source
example](https://github.com/lancedb/lance/blob/79de38027d03b049bba17c8a41f8f677dc1b110b/rust/lance/src/dataset/hash_joiner.rs#L55-60)
```rust
return Err(Error::IO {
message: "HashJoiner: No data".to_string(),
location: location!(),
});
```
this PR still wraps this error in Error::IO, as we haven't define more
precise Error type for HashJoiner yet.
we may need to define our own Error enum in each of our submodule,
lance-encoding::Error, lance-file::Error, lance-index::Error etc.
so we can write error return like this:
```rust
let err = lance_core::Error::from(lance::dataset::Error::HashJoinerError {
message: "HashJoiner: No data".to_string(),
location: location!(),
});
Err(err)
```
suggested by @wjones127 in PR#2316,
to do this, we may need to define our own Error enum in each of our submodule,
lance-encoding::Error
,lance-file::Error
,lance-index::Error
etc.The text was updated successfully, but these errors were encountered: