vesoft-inc / nebula

A distributed, fast open-source graph database featuring horizontal scalability and high availability
https://nebula-graph.io
Apache License 2.0
10.89k stars 1.21k forks source link

Added support for the List/Set type #5914

Closed YZW00 closed 1 month ago

YZW00 commented 4 months ago

For one-dimensional data of type List/Set: List_string, List_int, List_float, Set_string, Set_int, Set_float:

  1. Support attributes defined as List /Set data types.

  2. Use the List /Set data type for storage.

  3. The List /Set data type can be filtered during query.

  4. Attributes of the List /Set data type can be returned when the query is supported.

  5. Added UPDATE statement to modify (REPLACE) and remove (ERASE) specified elements in List/Set types.

  6. Added UPDATE statement to insert new data into List/Set: List = List + value, Set = SADD(Set, value).

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

Salieri-004 commented 3 months ago

Thanks for your help. You can add some tests for your new features according to the following articles. https://discuss.nebula-graph.com.cn/t/topic/4172 https://discuss.nebula-graph.com.cn/t/topic/4594

Salieri-004 commented 1 month ago

LGTM. We need to add some doc for this feature. cc. @ChrisChen2023 @abby-cyber