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.custom.asProcedure() doesn't work when there is input parameters. #1584

Closed
wilsli opened this issue Jul 9, 2020 · 0 comments · Fixed by #1591
Closed

apoc.custom.asProcedure() doesn't work when there is input parameters. #1584

wilsli opened this issue Jul 9, 2020 · 0 comments · Fixed by #1591
Assignees

Comments

@wilsli
Copy link

wilsli commented Jul 9, 2020

#1576 Expected Behavior (Mandatory)
create custom procedure for creating or updating a set of devices with the following code:
call apoc.custom.asProcedure('updateDevices', 'UNWIND $devicesList as device MERGE (d :Device {dID: toString(device.dID)}) SET d += device, d.flag="d" WITH d RETURN count(d) AS updCount, collect(d.dID) AS updList', 'write', [['updCount', 'NUMBER'], ['updList', 'LIST OF STRING']], [['devicesList', 'LIST OF MAP']], 'create or update devices')

Actual Behavior (Mandatory)

failed, error message:

Failed to invoke procedure apoc.custom.asProcedure: Caused by: java.lang.NoSuchMethodError: 'void org.neo4j.internal.kernel.api.procs.ProcedureSignature.(org.neo4j.internal.kernel.api.procs.QualifiedName, java.util.List, java.util.List, org.neo4j.procedure.Mode, boolean, java.lang.String, java.lang.String[], java.lang.String, java.lang.String, boolean, boolean, boolean)'

How to Reproduce the Problem

Simple Dataset (where it's possibile)

call apoc.custom.asProcedure('updateDevices',
'UNWIND $devicesList as device
MERGE (d :Device {dID: toString(device.dID)})
  SET d += device, d.flag="d"
  WITH d
RETURN count(d) AS updCount, collect(d.dID) AS updList',
'write',
[['updCount', 'NUMBER'], ['updList', 'LIST OF STRING']],
[['devicesList', 'LIST OF MAP']],
'create or update devices')

Steps (Mandatory)

  1. call the apoc.custom.asProcedure()
  2. failed

Screenshots (where it's possibile)

Specifications (Mandatory)

Currently used versions

Versions

  • OS: CentOS 7
  • Neo4j: 4.0.6
  • Neo4j-Apoc: 4.0.0.15
conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Jul 13, 2020
conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Jul 13, 2020
conker84 added a commit to conker84/neo4j-apoc-procedures that referenced this issue Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants