-
-
Notifications
You must be signed in to change notification settings - Fork 87
Closed
Description
ArcadeDB Version: 23.1.2
JDK Version: openjdk 11.0.18
OS: Arch, running 6.1.9-arch1-1
Expected behavior
When running a query that results in a single node match, collect should result in a list of hashmaps of length 1.
Actual behavior
When running a query that results in a single node match, collect returns a hashmap.
Steps to reproduce
As an example, I wrote this query in the open beer database, so it can be easily reproduced.
This brewery produces only one beer. As stated above, the collection should be a list of hashmaps of length 1, instead it returns beer-products as a single hashmap.
MATCH (b:Beer)-[:HasBrewery]->(brw:Brewery {id: 519})
return brw.name as `brewery-name`, collect(b) as `beer-products`