8
8
class ResultSetColumnTypes (object ):
9
9
COLUMN_UNKNOWN = 0
10
10
COLUMN_SCALAR = 1
11
- COLUMN_NODE = 2
12
- COLUMN_RELATION = 3
11
+ COLUMN_NODE = 2 # Unused as of RedisGraph v2.1.0, retained for backwards compatibility.
12
+ COLUMN_RELATION = 3 # Unused as of RedisGraph v2.1.0, retained for backwards compatibility.
13
13
14
14
15
15
class ResultSetScalarTypes (object ):
@@ -104,10 +104,6 @@ def parse_entity_properties(self, props):
104
104
return properties
105
105
106
106
def parse_node (self , cell ):
107
- # Return None if we received a null value.
108
- if self .is_null_scalar (cell ):
109
- return None
110
-
111
107
# Node ID (integer),
112
108
# [label string offset (integer)],
113
109
# [[name, value type, value] X N]
@@ -120,10 +116,6 @@ def parse_node(self, cell):
120
116
return Node (node_id = node_id , label = label , properties = properties )
121
117
122
118
def parse_edge (self , cell ):
123
- # Return None if we received a null value.
124
- if self .is_null_scalar (cell ):
125
- return None
126
-
127
119
# Edge ID (integer),
128
120
# reltype string offset (integer),
129
121
# src node ID offset (integer),
@@ -227,9 +219,6 @@ def pretty_print(self):
227
219
def is_empty (self ):
228
220
return len (self .result_set ) == 0
229
221
230
- def is_null_scalar (self , cell ):
231
- return cell == [ResultSetScalarTypes .VALUE_NULL , None ]
232
-
233
222
@staticmethod
234
223
def _get_value (prop , statistics ):
235
224
for stat in statistics :
0 commit comments