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`
Metadata
Metadata
Assignees
Labels
Type
Projects
Relationships
Development
No branches or pull requests
Activity
fix: cypher resultset flat list of maps
lvca commentedon Feb 15, 2023
Reproduced. The result set from cypher is transformed. There is a specific case where it makes flat all the list of maps with only one item. Removed and seems to work without breaking things. Please let me know if the latest
main
branch solves your use case.fix: recent change to fix #860 created a regression