mage icon indicating copy to clipboard operation
mage copied to clipboard

[BUG] C++ type parameter problem

Open antepusic opened this issue 3 years ago • 0 comments

Describe the bug For C++ query modules with a floating-point parameter, passing an integer value as an argument without adding .0 returns the following: Error: Query failed: '{QUERY_MODULE}' argument named '{ARGUMENT}' at position {N} must be of type FLOAT. The bug does not occur with query modules written in Python.

To Reproduce Steps to reproduce the behavior:

  1. Run the following query: CALL pagerank.get(100, 1) YIELD node, rank;
  2. Click on 'Run query'.

Expected behavior The query should execute the same way as CALL pagerank.get(100, 1.0) YIELD node, rank; without returning any errors.

antepusic avatar Oct 30 '21 16:10 antepusic