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 bcfe5b2 commit 454af45Copy full SHA for 454af45
bulk_insert.py
@@ -298,7 +298,8 @@ def prop_to_binary(prop_val, type):
298
if type == None or type == Type.NUMERIC:
299
try:
300
numeric_prop = float(prop_val)
301
- return struct.pack(format_str + "d", Type.NUMERIC, numeric_prop)
+ if not math.isnan(numeric_prop) and not math.isinf(numeric_prop): # Don't accept non-finite values.
302
+ return struct.pack(format_str + "d", Type.NUMERIC, numeric_prop)
303
except:
304
pass
305
0 commit comments