Closed tomas-wood closed 5 years ago
Hi @huawei-tomas,
When specifying node attributes, attribute name in this case 0
should be an unquoted string which starts with a character from the set: [_A-Za-z]
.
Okay that helped, but now I'm getting an error whenever the value (not the key) representation is in scientific notation.
Traceback (most recent call last):
File "adjacency.py", line 82, in <module>
main()
File "adjacency.py", line 73, in main
redis_graph = generate_random_graph()
File "adjacency.py", line 49, in generate_random_graph
redis_graph.commit()
File "/home/thomas/code/redisgraph-py/redisgraph/client.py", line 136, in commit
return self.query(query)
File "/home/thomas/code/redisgraph-py/redisgraph/client.py", line 144, in query
response = self.redis_con.execute_command("GRAPH.QUERY", self.name, q)
File "/home/thomas/.local/lib/python2.7/site-packages/redis/client.py", line 755, in execute_command
return self.parse_response(connection, command_name, **options)
File "/home/thomas/.local/lib/python2.7/site-packages/redis/client.py", line 768, in parse_response
response = connection.read_response()
File "/home/thomas/.local/lib/python2.7/site-packages/redis/connection.py", line 638, in read_response
raise response
redis.exceptions.ResponseError: Syntax error at offset 1804838 near 'e-05'
Is there a reason scientific notation inside strings seems to be disallowed?
@huawei-tomas Indeed scientific notation should be supported, Currently we can only handle numerics which follow these patterns:
[0-9]*.[0-9]+ [0-9]+
We'll have to extend our grammar to accommodate scientific notation. Would you mind moving this Issue over to RedisGraph repository
Thank you!
Will do thanks!
Running
raises this error.
redis-cli monitor
shows: