apache / apache/age

Agtype array casting

Open
#106 4 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C
Stars
4.8k
Forks
523
Avg merge
1d 2h
Merged PRs (30d)
9

Description

Let's say I'm running following query from example:
```
SELECT *
FROM cypher('graph_name', $$
WITH [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as lst
RETURN lst
$$) AS (lst int[]);
```
When trying to cast to int[] following error occurs:
`ERROR: cannot cast type agtype to integer[] for column "lst"`

Is it supposed to work, or there is another way to cast agtype array to postgres array?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.