@@ -42,7 +42,7 @@ def case(self, compiler, connection):
42
42
for case in self .cases :
43
43
case_mql = {}
44
44
try :
45
- case_mql ["case" ] = case .as_mql (compiler , connection , as_path = False )
45
+ case_mql ["case" ] = case .as_mql (compiler , connection )
46
46
except EmptyResultSet :
47
47
continue
48
48
except FullResultSet :
@@ -92,16 +92,16 @@ def col_pairs(self, compiler, connection, as_path=False):
92
92
return cols [0 ].as_mql (compiler , connection , as_path = as_path )
93
93
94
94
95
- def combined_expression (self , compiler , connection , as_path = False ):
95
+ def combined_expression (self , compiler , connection ):
96
96
expressions = [
97
- self .lhs .as_mql (compiler , connection , as_path = as_path ),
98
- self .rhs .as_mql (compiler , connection , as_path = as_path ),
97
+ self .lhs .as_mql (compiler , connection ),
98
+ self .rhs .as_mql (compiler , connection ),
99
99
]
100
100
return connection .ops .combine_expression (self .connector , expressions )
101
101
102
102
103
103
def expression_wrapper_expr (self , compiler , connection ):
104
- return self .expression .as_mql (compiler , connection , as_path = False )
104
+ return self .expression .as_mql (compiler , connection )
105
105
106
106
107
107
def negated_expression_expr (self , compiler , connection ):
@@ -183,7 +183,7 @@ def ref_is_simple_column(self):
183
183
return self .source .is_simple_column
184
184
185
185
186
- def star (self , compiler , connection , as_path = False ): # noqa: ARG001
186
+ def star (self , compiler , connection ): # noqa: ARG001
187
187
return {"$literal" : True }
188
188
189
189
@@ -247,7 +247,7 @@ def register_expressions():
247
247
Ref .as_mql = ref
248
248
Ref .is_simple_column = ref_is_simple_column
249
249
ResolvedOuterRef .as_mql = ResolvedOuterRef .as_sql
250
- Star .as_mql = star
250
+ Star .as_mql_expr = star
251
251
Subquery .as_mql_expr = subquery
252
252
When .as_mql = when
253
253
Value .as_mql = value
0 commit comments