Skip to content

[FEATURE] Support Enum as a basic type #523

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
badmonster0 opened this issue May 20, 2025 · 0 comments
Open

[FEATURE] Support Enum as a basic type #523

badmonster0 opened this issue May 20, 2025 · 0 comments
Labels
cocoindex-core CocoIndex Core Engine help wanted Extra attention is needed

Comments

@badmonster0
Copy link
Member

Here are all the dataType supported in CocoIndex: https://cocoindex.io/docs/core/data_types

We want to add Enum Type. #217 is an example.

Representations in different places

  • We can use a Arc<str> in BasicValue in Rust.
  • We can use Enum in Python.
  • Use string in different storages like Postgres
  • Please also update conversion logic in [convert.rs]

Other potential code that needs to be updated

(it may not be a fully list, feel free to update more files as needed.


❤️ Contributors, please refer to 📙Contributing Guide.
Unless the PR can be sent immediately (e.g. just a few lines of code), we recommend you to leave a comment on the issue like I'm working on it or Can I work on this issue? to avoid duplicating work. Our Discord server is always open and friendly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cocoindex-core CocoIndex Core Engine help wanted Extra attention is needed
Projects
Status: 🐬 Prioritized
Development

No branches or pull requests

1 participant