@@ -126,10 +126,6 @@ def key_transform(self, compiler, connection, as_path=False):
126
126
return build_json_mql_path (lhs_mql , key_transforms , as_path = as_path )
127
127
128
128
129
- def key_transform_exact_expr (self , compiler , connection ):
130
- return builtin_lookup_expr (self , compiler , connection )
131
-
132
-
133
129
def key_transform_exact_path (self , compiler , connection ):
134
130
lhs_mql = process_lhs (self , compiler , connection , as_path = True )
135
131
return {
@@ -157,10 +153,6 @@ def key_transform_in_expr(self, compiler, connection):
157
153
return {"$and" : [_has_key_predicate (lhs_mql , root_column ), expr ]}
158
154
159
155
160
- def key_transform_in_path (self , compiler , connection ):
161
- return builtin_lookup_path (self , compiler , connection )
162
-
163
-
164
156
def key_transform_is_null_expr (self , compiler , connection ):
165
157
"""
166
158
Return MQL to check the nullability of a key.
@@ -201,10 +193,6 @@ def key_transform_numeric_lookup_mixin_expr(self, compiler, connection):
201
193
return {"$and" : [expr , not_missing_or_null ]}
202
194
203
195
204
- def key_transform_numeric_lookup_mixin_path (self , compiler , connection ):
205
- return builtin_lookup_path (self , compiler , connection )
206
-
207
-
208
196
@property
209
197
def keytransform_is_simple_column (self ):
210
198
previous = self
@@ -220,20 +208,17 @@ def register_json_field():
220
208
DataContains .as_mql = data_contains
221
209
HasAnyKeys .mongo_operator = "$or"
222
210
HasKey .mongo_operator = None
223
- HasKeyLookup .as_mql_path = partialmethod (has_key_lookup , as_path = True )
224
211
HasKeyLookup .as_mql_expr = partialmethod (has_key_lookup , as_path = False )
212
+ HasKeyLookup .as_mql_path = partialmethod (has_key_lookup , as_path = True )
225
213
HasKeyLookup .can_use_path = has_key_check_simple_expression
226
214
HasKeys .mongo_operator = "$and"
227
215
JSONExact .process_rhs = json_exact_process_rhs
228
- KeyTransform .is_simple_column = keytransform_is_simple_column
229
- KeyTransform .can_use_path = keytransform_is_simple_column
230
- KeyTransform .as_mql_path = partialmethod (key_transform , as_path = True )
231
216
KeyTransform .as_mql_expr = partialmethod (key_transform , as_path = False )
232
- KeyTransformExact .as_mql_expr = key_transform_exact_expr
217
+ KeyTransform .as_mql_path = partialmethod (key_transform , as_path = True )
218
+ KeyTransform .can_use_path = keytransform_is_simple_column
219
+ KeyTransform .is_simple_column = keytransform_is_simple_column
233
220
KeyTransformExact .as_mql_path = key_transform_exact_path
234
- KeyTransformIn .as_mql_path = key_transform_in_path
235
221
KeyTransformIn .as_mql_expr = key_transform_in_expr
236
- KeyTransformIsNull .as_mql_path = key_transform_is_null_path
237
222
KeyTransformIsNull .as_mql_expr = key_transform_is_null_expr
238
- KeyTransformNumericLookupMixin .as_mql_path = key_transform_numeric_lookup_mixin_path
223
+ KeyTransformIsNull .as_mql_path = key_transform_is_null_path
239
224
KeyTransformNumericLookupMixin .as_mql_expr = key_transform_numeric_lookup_mixin_expr
0 commit comments