GavinRay97 opened a new issue #1897:
URL: https://github.com/apache/arrow-datafusion/issues/1897
Curious whether it's possible to write SQL queries that do nested JSON
selections in Datafusion.
IE, something like the below:
```sql
select json_agg(json_build_object(
'id', "houses"."id",
'address', "houses"."address",
'users', (
select json_agg(json_build_object(
'id', "users"."id",
'name', "users"."name"
))
from "users"
where "users"."house_id" = "houses"."id"
)
))
from "houses" as "houses"
```
Thank you =)
--
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]