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

How to add a Float32Array data type? #162

Open
sxhxliang opened this issue Sep 20, 2024 · 3 comments
Open

How to add a Float32Array data type? #162

sxhxliang opened this issue Sep 20, 2024 · 3 comments

Comments

@sxhxliang
Copy link

Question

How to add a Float32Array data type?
eg:

// insert with owned value
db.insert(User {
    name: "Alice".into(),
    email: Some("[email protected]".into()),
    age: 22,
    bytes: Bytes::from(vec![0, 1, 2]),
    float32array: vec![0.1, 1.1, 2.0],
})
.await
.unwrap();

Before asking a question, make sure you have:

  • Reviewed relevant Rust information: Google your error messages and look at official docs.
  • Searched open and closed GitHub issues
@ethe
Copy link
Member

ethe commented Sep 20, 2024

This is not supported yet, and we are working on aligning Tonbo with Arrow data types. Do you have any good suggestions on this topic? I would appreciate it if you would explain scenarios your are facing, and why they rely on these types.

@sxhxliang
Copy link
Author

For example, vector search requires storing the semantic vector of the text.

@KKould KKould added the enhancement New feature or request label Sep 25, 2024
@ethe
Copy link
Member

ethe commented Nov 18, 2024

refer to #211

@ethe ethe removed the enhancement New feature or request label Dec 17, 2024
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

No branches or pull requests

3 participants