You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "MuhammadTahaNaveed (via GitHub)" <gi...@apache.org> on 2023/07/17 11:10:24 UTC
[GitHub] [age] MuhammadTahaNaveed opened a new issue, #1043: container must be an array or object
MuhammadTahaNaveed opened a new issue, #1043:
URL: https://github.com/apache/age/issues/1043
**Describe the bug**
Errors out saying container must be an array or object.
**How are you accessing AGE (Command line, driver, etc.)?**
- terminal
**What data setup do we need to do?**
```pgsql
SELECT * FROM cypher('hello',
$$CREATE (n)-[:KNOWS {n:'hello'}]->({n:'hello'})
$$) as (a agtype);
```
**What is the command that caused the error?**
```pgsql
SELECT * FROM cypher('hello',
$$MATCH ()<-[y *]-(),({n:y[0].n}) RETURN y
$$) as (a agtype);
```
```
ERROR: container must be an array or object
```
**Expected behavior**
expected vertex x to be returned
```
{"id": 281474976710658, "label": "", "properties": {"n": "hello"}}::vertex
```
**Environment (please complete the following information):**
- latest (PG13 master)
--
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: dev-unsubscribe@age.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #1043: container must be an array or object
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #1043:
URL: https://github.com/apache/age/issues/1043#issuecomment-1638743080
See PR #1046
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #1043: container must be an array or object
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #1043:
URL: https://github.com/apache/age/issues/1043#issuecomment-1638692735
@MuhammadTahaNaveed I have fixed it and verified the results with Neo4j. Working on the PR now.
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] MuhammadTahaNaveed commented on issue #1043: container must be an array or object
Posted by "MuhammadTahaNaveed (via GitHub)" <gi...@apache.org>.
MuhammadTahaNaveed commented on issue #1043:
URL: https://github.com/apache/age/issues/1043#issuecomment-1638695044
> @MuhammadTahaNaveed Looks like I overlooked binary arrays and objects. I will look into this.
>
> Correction: It is because the VLE passes a special vpc container (vpc = VLE Path Container) around for its results. In this case, the container is getting passed instead of the actualized contents of that container. I will see about putting the decode into agtype_access_operator. However, this may not be the appropriate place for it.
@jrgemignani I think the reason you mentioned may also be valid for #1044.
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] jrgemignani commented on issue #1043: container must be an array or object
Posted by "jrgemignani (via GitHub)" <gi...@apache.org>.
jrgemignani commented on issue #1043:
URL: https://github.com/apache/age/issues/1043#issuecomment-1638622332
@MuhammadTahaNaveed Looks like I overlooked binary arrays and objects. I will look into this.
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [age] rafsun42 closed issue #1043: container must be an array or object
Posted by "rafsun42 (via GitHub)" <gi...@apache.org>.
rafsun42 closed issue #1043: container must be an array or object
URL: https://github.com/apache/age/issues/1043
--
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: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org