-
Notifications
You must be signed in to change notification settings - Fork 49
added list/array support #43
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
Conversation
@@ -33,6 +33,10 @@ def test_graph_creation(self): | |||
self.assertEqual(visit.properties, edge.properties) | |||
self.assertEqual(country, japan) | |||
|
|||
query = """RETURN [1, 2.3, "4", true, false, null]""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include a sub-array within this array.
redisgraph/query_result.py
Outdated
scalar = float(value) | ||
|
||
elif scalar_type == ResultSetScalarTypes.PROPERTY_UNKNOWN: | ||
elif scalar_type == ResultSetScalarTypes.VALUE_ARRAY: | ||
scalar = value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider renaming value to array for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
self.assertEqual([a, b], result.result_set[0][0]) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove extra line
added basic array support