Skip to content

Support UNWIND in the lance-graph #75

@ChunxuTang

Description

@ChunxuTang

Currently, Cypher supports the UNWIND keyword

UNWIND [1, 2, 3] AS num
RETURN num

We want to support that in the lance-graph.

  1. One potential way to achieve this is by using the unnest method in the DataFusion. E.g., the previous Cypher query can be translated to
SELECT unnest(make_array(1,2,3)) AS num
  1. Another potential approach is to use the UNION strategy (similar to the variable-length paths). E.g., the previous Cypher query can be translated to
SELECT 1 AS num
UNION ALL
SELECT 2 AS num 
UNION ALL
SELECT 3 AS num

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions