Open
Description
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>
inBasicValue
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
- Methods related
BasicValueType
, for serializing, deserializing, etc. BasicValue::from_json()
. It needs to updated.JsonSchemaBuilder
- Rust<->Python value conversion logic
py/convert.rs
- Python SDK code to update:
typing.py
,convert.py
Please also the testtest_convert.py
- Update the document
data_types.mdx
(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
Type
Projects
Status
🐬 Prioritized