mage
mage copied to clipboard
[BUG] C++ type parameter problem
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:
- Run the following query:
CALL pagerank.get(100, 1) YIELD node, rank;
- 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.