I have a CSV file that has columns that contain arrays. The file looks like this:
siblings
[3010,3011,3012]
[2010,2012]
What I am trying to do is to return the elements of the arrays as separate rows.
I looked through the documentation and found UNWIND
function. When I tried the example shown in the documentation:
UNWIND [1, 2, 3] AS x
RETURN x
everything worked fine. When I tried it with my data the query looked like this:
LOAD CSV WITH HEADERS FROM
'file:///test.csv' AS line1
UNWIND line1.siblings as a
RETURN a
and the result was
[3010,3011,3012]
[2010,2012]
instead of:
3010
3011
3012
...
Does anyone know what I am doing wrong?