seo-kw commented on issue #106:
URL: https://github.com/apache/incubator-age/issues/106#issuecomment-901757157


   Hello there.
   
   wonder if i exactly give what you just want to.
   
   If you try just like this,
   ```
   WITH result as (
   SELECT *
   FROM cypher('test', $$
   WITH [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] as lst
   RETURN lst
   $$) AS ( lst agtype ) 
   )select 
   string_to_array(ltrim(rtrim(array_to_string(array_agg(lst), ','), 
']'),'['),',')::int[] from result;
   ```
   
   You'll got this result
   ```
        string_to_array
   --------------------------
    {0,1,2,3,4,5,6,7,8,9,10}
   (1 row)
   ```
   
   AGE support type casting restrictively. You can find in 
[http://age.incubator.apache.org/docs/Apache_AGE_Guide.pdf](http://age.incubator.apache.org/docs/Apache_AGE_Guide.pdf)
 which type can be casted.
   
   Is this what you wanted? If not, just leave a comment plz.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to