Skip to content

Implement the vector type and property type and serialization and deserialization for vector property. #6072

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

Open
wants to merge 1 commit into
base: vector
Choose a base branch
from

Conversation

tom-jerr
Copy link

@tom-jerr tom-jerr commented Jul 4, 2025

What type of PR is this?

  • bug
  • feature
  • enhancement

What problem(s) does this PR solve?

Issue(s) number:

Support vector value type and data type #6042
Implement serialization and deserialization for vector type
#6043
Implement the vector value type and serialization and deserialization for it #6067
Implement the property type and serialization and deserialization for it. #6071

Description:

Feature Request: Add Data Type Specification for Vector Values

  1. We need a new value type VECTOR, like List, Map, etc.. This type is for vector data.
  2. VECTOR type has original vector data and from original data we can get dimension of a vector.

Feature Request: Add Property Type for Vector Value Type

  1. We need a new property type for VECTOR value type.
  2. We also need to design the way to serialize and deserialize vector value type.

How do you solve it?

  1. Implement vector value type and do the unit test for vector type
    • Add new value type: VECTOR
    • Add serialization and deserialization method for vector type.
  2. Add new property type, which value type is VECTOR
  3. Add new pattern for vector value type in common.thrift

Special notes for your reviewer, ex. impact of this fix, design document, etc:

Vector Value Type

Vector type is consist of original vector data.
We also offered a dim() method to get the dimension of vector data, which is from vector data size.

image

Vector Property Type

Add new property type, which value type is VECTOR
Add new pattern for vector value type in common.thrift

Checklist:

Tests:

  • Unit test(positive and negative cases)
  • Function test
  • Performance test
  • N/A

TCK Tests:

tck_tests

Affects:

  • Documentation affected (Please add the label if documentation needs to be modified.)
  • Incompatibility (If it breaks the compatibility, please describe it and add the label.)
  • If it's needed to cherry-pick (If cherry-pick to some branches is required, please label the destination version(s).)
  • Performance impacted: Consumes more CPU/Memory

Release notes:

Please confirm whether to be reflected in release notes and how to describe:

ex. Fixed the bug .....

1. Implement vector type and serialization and deserialization for vector value.
2. Implement the property type and serialization and deserialization for vector property.

Signed-off-by: lzy <[email protected]>
@tom-jerr tom-jerr requested a review from a team as a code owner July 4, 2025 07:52
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.

1 participant