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

Add Lots of Connector Unit Tests #957

Merged
merged 5 commits into from
Oct 22, 2024
Merged

Add Lots of Connector Unit Tests #957

merged 5 commits into from
Oct 22, 2024

Conversation

karanataryn
Copy link
Contributor

@karanataryn karanataryn commented Oct 18, 2024

Adds unit tests for the Pinecone, Elasticsearch, and DuckDB readers and writers, fixes bugs, and refactors DuckDB to not hardcode the schema.

@karanataryn karanataryn changed the title Add Lots of Connector Tests Add Lots of Connector Unit Tests Oct 18, 2024
@karanataryn karanataryn marked this pull request as ready for review October 21, 2024 23:26
@karanataryn karanataryn requested a review from HenryL27 October 21, 2024 23:31
Copy link
Collaborator

@HenryL27 HenryL27 left a comment

Choose a reason for hiding this comment

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

lgtm. I gave up reading them thoroughly about halfway through but ya know, it's tests, as long as they're not testing that broken behavior stays broken they're good and I trust you not to have done that

text_representation="text",
bbox=(0.0, 0.0, 1.0, 1.0),
shingles=[1, 2, 3],
embedding=[0.1, 0.2, 0.3, 0.4],
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is a diff num dimensions than the target_params. Guess doesn't matter since mock but if we ever implement a runtime check won't this break stuff (prob good to have break anyway, so I'd leave it. just flagging)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, think it might be best to leave it in, if we do implement a check we should change this test.

@karanataryn karanataryn enabled auto-merge (squash) October 22, 2024 19:06
@karanataryn karanataryn merged commit 92052e9 into main Oct 22, 2024
11 of 13 checks passed
@karanataryn karanataryn deleted the ksampath/add-tests branch October 22, 2024 19:14
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.

2 participants