-
Notifications
You must be signed in to change notification settings - Fork 224
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
feat(nodejs): feature parity [1/N] - remote table #1378
feat(nodejs): feature parity [1/N] - remote table #1378
Conversation
ACTION NEEDED Lance follows the Conventional Commits specification for release automation. The PR title and description are used as the merge commit message. Please update your PR title and description to match the specification. For details on the error please inspect the "PR Title Check" action. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work! I have a couple minor comments.
nodejs/lancedb/remote/connection.ts
Outdated
if (options?.mode) { | ||
console.warn(`mode is not supported in remote connection, ignoring.`); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you describe what mode behaviour it is following here? It it going to error if the table already exists? Or overwrite the table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can definitely make this a bit more informative. FWIW , I was copying the python message
I'd assume cloud behavior is to error on exists?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default behavior looks like it will error if the table already exists. We should make sure we have an integration test that validates this.
// TODO: parse this into a valid arrow schema | ||
return resp.schema; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this handled in one of the follow-up PRs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have this handled yet.
The old vectorDB
sdk was returning this AS IS and silently deviating from the type hints. Currently this mimics the same functionality, but I wanted to call out that this is not the correct behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay. This is fine for now.
…nnect({args})` (#1380) depends on #1378 see proper diff here universalmind303/lancedb@remote-table-node...universalmind303:lancedb:table-name
closes #1362