Add comprehensive test suite for mixed-type vector columns (float32 and float16)#2907
Add comprehensive test suite for mixed-type vector columns (float32 and float16)#2907muskan124947 merged 4 commits intomainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2907 +/- ##
============================================
- Coverage 60.65% 60.61% -0.04%
+ Complexity 4926 4910 -16
============================================
Files 151 151
Lines 35000 35000
Branches 5854 5854
============================================
- Hits 21229 21216 -13
Misses 10938 10938
- Partials 2833 2846 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds an expanded test suite to validate driver behavior when FLOAT32 and FLOAT16 vector columns coexist in the same schema (requires vectorTypeSupport=v2), covering both “regular” JDBC paths and bulk-copy paths.
Changes:
- Added a new CSV resource containing mixed FLOAT32/FLOAT16 vector column data for bulk copy scenarios.
- Extended FLOAT16 bulk-copy tests with mixed-type (FLOAT32+FLOAT16) table-to-table, CSV, ISQLServerBulkData, and batch-insert coverage.
- Extended FLOAT16 vector tests with mixed-type table scenarios (CRUD, null handling, metadata, TVPs, stored procedures, transactions, temp tables, views, UDFs).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| src/test/resources/BulkCopyCSVTestInputMixedVectorType.csv | New CSV input for mixed FLOAT32/FLOAT16 vector bulk-copy tests. |
| src/test/java/com/microsoft/sqlserver/jdbc/datatypes/vector/bulkcopy/VectorFloat16BulkCopyTest.java | Adds a nested mixed-type bulk-copy test suite alongside existing FLOAT16 bulk-copy coverage. |
| src/test/java/com/microsoft/sqlserver/jdbc/datatypes/vector/VectorFloat16Test.java | Adds a nested mixed-type vector test suite covering JDBC operations, metadata, TVPs, procs, and transactions. |
You can also share your feedback on Copilot code review. Take the survey.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…at32 and vice versa
divang
left a comment
There was a problem hiding this comment.
Please check if there is any duplicate logic in the test cases, such as getMixedConnectionString() or other similar scenarios.
Description
Building on the existing VECTOR(FLOAT316) support, this PR expands the test suite to validate driver behavior when FLOAT32 and FLOAT16 vector columns coexist within the same schema. This requires
vectorTypeSupport=v2.The tests cover both standard JDBC execution paths and bulk copy scenarios to ensure correct functionality across mixed vector types.
Changes
ISQLServerBulkDataRelated PRs
#2853
#2868
#2899
#2898
Performance Testing
(Tests performed using FLOAT32 vectors with
dimensionCount = 1998. Timings include both serialization and deserialization overhead.)