File tree Expand file tree Collapse file tree 19 files changed +3
-81
lines changed
vortex-layout/src/layouts/row_idx Expand file tree Collapse file tree 19 files changed +3
-81
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ use crate::arrays::DictArray;
1515use crate :: arrays:: DictVTable ;
1616use crate :: arrays:: ScalarFnArray ;
1717use crate :: builtins:: ArrayBuiltins ;
18+ use crate :: expr:: Pack ;
1819use crate :: optimizer:: ArrayOptimizer ;
1920use crate :: optimizer:: rules:: ArrayParentReduceRule ;
2021use crate :: optimizer:: rules:: ParentRuleSet ;
@@ -44,9 +45,9 @@ impl ArrayParentReduceRule<DictVTable> for DictionaryScalarFnValuesPushDownRule
4445 // Check that the scalar function can actually be pushed down.
4546 let sig = parent. scalar_fn ( ) . signature ( ) ;
4647
47- // Don't push down structural expressions since we might want to unpack them in exporters
48+ // Don't push down pack expressions since we might want to unpack them in exporters
4849 // later.
49- if sig . is_structural ( ) {
50+ if parent . scalar_fn ( ) . is :: < Pack > ( ) {
5051 return Ok ( None ) ;
5152 }
5253
Original file line number Diff line number Diff line change @@ -209,10 +209,6 @@ impl VTable for Between {
209209 fn is_null_sensitive ( & self , _instance : & Self :: Options ) -> bool {
210210 false
211211 }
212-
213- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
214- false
215- }
216212}
217213
218214/// Creates an expression that checks if values are between two bounds.
Original file line number Diff line number Diff line change @@ -312,10 +312,6 @@ impl VTable for Binary {
312312
313313 !infallible
314314 }
315-
316- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
317- false
318- }
319315}
320316
321317/// Create a new [`Binary`] using the [`Eq`](crate::expr::exprs::operators::Operator::Eq) operator.
Original file line number Diff line number Diff line change @@ -151,10 +151,6 @@ impl VTable for Cast {
151151 fn is_null_sensitive ( & self , _instance : & DType ) -> bool {
152152 true
153153 }
154-
155- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
156- false
157- }
158154}
159155
160156/// Creates an expression that casts values to a target data type.
Original file line number Diff line number Diff line change @@ -188,10 +188,6 @@ impl VTable for DynamicComparison {
188188 fn is_null_sensitive ( & self , _instance : & Self :: Options ) -> bool {
189189 false
190190 }
191-
192- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
193- false
194- }
195191}
196192
197193pub fn dynamic (
Original file line number Diff line number Diff line change @@ -233,10 +233,6 @@ impl VTable for GetItem {
233233 // If this type-checks its infallible.
234234 false
235235 }
236-
237- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
238- false
239- }
240236}
241237
242238/// Creates an expression that accesses a field from the root array.
Original file line number Diff line number Diff line change @@ -118,10 +118,6 @@ impl VTable for IsNull {
118118 fn is_fallible ( & self , _instance : & Self :: Options ) -> bool {
119119 false
120120 }
121-
122- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
123- false
124- }
125121}
126122
127123/// Creates an expression that checks for null values.
Original file line number Diff line number Diff line change @@ -141,10 +141,6 @@ impl VTable for Like {
141141 fn is_null_sensitive ( & self , _instance : & Self :: Options ) -> bool {
142142 false
143143 }
144-
145- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
146- false
147- }
148144}
149145
150146pub fn like ( child : Expression , pattern : Expression ) -> Expression {
Original file line number Diff line number Diff line change @@ -202,10 +202,6 @@ impl VTable for ListContains {
202202 fn is_fallible ( & self , _options : & Self :: Options ) -> bool {
203203 false
204204 }
205-
206- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
207- false
208- }
209205}
210206
211207/// Creates an expression that checks if a value is contained in a list.
Original file line number Diff line number Diff line change @@ -139,10 +139,6 @@ impl VTable for Literal {
139139 fn is_fallible ( & self , _instance : & Self :: Options ) -> bool {
140140 false
141141 }
142-
143- fn is_structural ( & self , _options : & Self :: Options ) -> bool {
144- false
145- }
146142}
147143
148144/// Create a new `Literal` expression from a type that coerces to `Scalar`.
You can’t perform that action at this time.
0 commit comments