Skip to content

[FEATURE] Support Enum as a basic type #523

@badmonster0

Description

@badmonster0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    🐬 Prioritized

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions