Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: part 1/N of refactoring vector index into separate crate #1388

Merged
merged 7 commits into from
Oct 11, 2023

Conversation

eddyxu
Copy link
Contributor

@eddyxu eddyxu commented Oct 11, 2023

No description provided.

@eddyxu eddyxu requested review from westonpace, wjones127 and chebbyChefNEQ and removed request for westonpace and wjones127 October 11, 2023 16:57
@@ -382,8 +382,8 @@ impl Dataset {
let m = d.manifest.as_ref();
if schema != m.schema {
return Err(Error::SchemaMismatch {
original: m.schema.clone(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gonna re-eanble these after we cleanly migrate schema to lance-core

.await?;
.await
.map_err(|e| Error::IO {
message: format!("dynamodb error: {}", e,),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you keep the source error?

dynamodb formatter hides the read error if we only print {}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

349 |             .map_err(|e| Error::IO {
    |                       - binding `e` declared here
350 |                 message: format!("dynamodb error: {}, source: {:?}", e, e.into_source()),
    |                          -----------------------------------------------^---------------
    |                          |                                           |  |
    |                          |                                           |  move out of `e` occurs here
    |                          |                                           borrow of `e` occurs here
    |                          borrow later used here

did i do sth wrong here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will have the From<SDKError> for Error back once this code is migrated to lance-core

Copy link
Contributor

@westonpace westonpace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these changes are good. Will defer to @chebbyChefNEQ on the impact of the dynamo errors. I think the arrow schema error being temporarily disabled is probably fine.

/// IVF - IVF file partition
///
#[derive(Debug, Clone)]
pub struct Ivf {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is duplicating the Ivf struct that's in the lance crate right? Or was this supposed to be a move?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to move the IVF model from lance to here. Wanted to get this in before it becomes too big.

@eddyxu eddyxu merged commit a51dcf7 into main Oct 11, 2023
15 checks passed
@eddyxu eddyxu deleted the lei/transform branch October 11, 2023 18:58
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.

3 participants