Skip to content

Commit 6d2b3f9

Browse files
committed
u
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 58bc06f commit 6d2b3f9

File tree

19 files changed

+3
-81
lines changed

19 files changed

+3
-81
lines changed

vortex-array/src/arrays/dict/vtable/rules.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ use crate::arrays::DictArray;
1515
use crate::arrays::DictVTable;
1616
use crate::arrays::ScalarFnArray;
1717
use crate::builtins::ArrayBuiltins;
18+
use crate::expr::Pack;
1819
use crate::optimizer::ArrayOptimizer;
1920
use crate::optimizer::rules::ArrayParentReduceRule;
2021
use 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

vortex-array/src/expr/exprs/between.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/binary.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/cast.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/dynamic.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

197193
pub fn dynamic(

vortex-array/src/expr/exprs/get_item.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/is_null.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/like.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

150146
pub fn like(child: Expression, pattern: Expression) -> Expression {

vortex-array/src/expr/exprs/list_contains.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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.

vortex-array/src/expr/exprs/literal.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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`.

0 commit comments

Comments
 (0)