Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apoc Procedures can't return empty map #2909

Closed
MarkoZadravec opened this issue May 19, 2022 · 1 comment · Fixed by #2996
Closed

Apoc Procedures can't return empty map #2909

MarkoZadravec opened this issue May 19, 2022 · 1 comment · Fixed by #2996
Assignees

Comments

@MarkoZadravec
Copy link

BUG

Inside APOC procedures is a bug, that prevents you to return an empty map.
When returning empty map {} the APOC raise exception :

Expected positive int value, got 0

How to Reproduce the Problem

Create APOC procedure that returns an empty map :

CALL apoc.custom.asProcedure(
  'test',
  'RETURN {} AS res;',
  'write',
  [['res', 'map']],
  []
);

call custom.test;

returns:

Expected positive int value, got 0

Versions

  • OS: mac and linux
  • Neo4j: neo4j:4.4.6-community
  • Neo4j-Apoc: apoc-4.4.0.3
@LampicJ15
Copy link

I have encountered the same issue running on Neo4j version 4.2.5-community / apoc 4.2.0.10
and on Neo4j version 4.1.6-community / apoc 4.1.0.9.

@vga91 vga91 self-assigned this May 19, 2022
tomocesnik pushed a commit to tomocesnik/neo4j-apoc-procedures that referenced this issue Jun 17, 2022
Lojjs pushed a commit that referenced this issue Jun 27, 2022
Co-authored-by: Tomo Česnik <[email protected]>
neo4j-oss-build pushed a commit that referenced this issue Jun 27, 2022
Co-authored-by: Tomo Česnik <[email protected]>
neo4j-oss-build pushed a commit that referenced this issue Jun 27, 2022
Co-authored-by: Tomo Česnik <[email protected]>
Lojjs pushed a commit that referenced this issue Jun 27, 2022
Lojjs pushed a commit that referenced this issue Jun 27, 2022
vga91 pushed a commit to vga91/neo4j-apoc-procedures that referenced this issue Jun 29, 2022
gem-neo4j pushed a commit to gem-neo4j/neo4j-apoc-procedures that referenced this issue Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants