We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb41fec commit 746c585Copy full SHA for 746c585
redisgraph_bulk_loader/entity_file.py
@@ -115,14 +115,15 @@ def typed_prop_to_binary(prop_val, prop_type):
115
def inferred_prop_to_binary(prop_val):
116
# All format strings start with an unsigned char to represent our prop_type enum
117
format_str = "=B"
118
+
119
+ # Remove leading and trailing whitespace
120
+ prop_val = prop_val.strip()
121
122
if prop_val == "":
123
# An empty string indicates a NULL property.
124
# TODO This is not allowed in Cypher, consider how to handle it here rather than in-module.
125
return struct.pack(format_str, 0)
126
- # Remove leading and trailing whitespace
- prop_val = prop_val.strip()
-
127
# Try to parse value as an integer.
128
try:
129
numeric_prop = int(prop_val)
0 commit comments