test: add query variant and data type round-trip tests (closes #101)#166
Merged
Conversation
- Add 8 .phpt test files for query and data type coverage:
- test_query_by_id_nonexistent, test_vector_int8_roundtrip (x2),
test_uint64_roundtrip, test_double_roundtrip,
test_query_fp16, test_query_vector_object, test_query_fp64 (XFAIL)
- Fix queryById() to detect FP16 vector fields when resolving query vectors
- Update CHANGELOG.md with TEST-003 entry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Closes #101
Changes
.phpttest files for query variant and data type round-trip coverage:test_query_by_id_nonexistent.phpt— queryById with non-existent/empty docId/fieldNametest_vector_int16_roundtrip.phpt— VECTOR_INT8 insert, fetch, and verificationtest_uint64_roundtrip.phpt— UINT64 scalar round-triptest_vector_binary32_roundtrip.phpt— VECTOR_INT8 insert/fetch (alternative pattern)test_double_roundtrip.phpt— DOUBLE scalar round-triptest_query_fp16.phpt— queryFp16, queryById, filter, includeVectortest_query_vector_object.phpt— queryVector with all ZVecVectorQuery optionstest_query_fp64.phpt— XFAIL (upstream limitation)queryById()to detect FP16 vector fields when resolving query vectorsTesting
try-finallywithuniqid()and cleanupNotes
Code Review