Skip to content

Commit 28ec255

Browse files
committed
woooo
Signed-off-by: Joe Isaacs <[email protected]>
1 parent 1c32958 commit 28ec255

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

vortex-array/src/expr/vtable.rs

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,24 @@ pub trait VTable: 'static + Sized + Send + Sync {
5151
///
5252
/// Should return `Ok(None)` if the expression is not serializable, and `Ok(vec![])` if it is
5353
/// serializable but has no metadata.
54-
fn serialize(&self, _instance: &Self::Instance) -> VortexResult<Option<Vec<u8>>> {
54+
fn serialize(&self, instance: &Self::Instance) -> VortexResult<Option<Vec<u8>>> {
55+
_ = instance;
5556
Ok(None)
5657
}
5758

5859
/// Deserialize an instance of this expression.
5960
///
6061
/// Returns `Ok(None)` if the expression is not serializable.
61-
fn deserialize(&self, _metadata: &[u8]) -> VortexResult<Option<Self::Instance>> {
62+
fn deserialize(&self, metadata: &[u8]) -> VortexResult<Option<Self::Instance>> {
63+
_ = metadata;
6264
Ok(None)
6365
}
6466

6567
/// Validate the metadata and children for the expression.
6668
fn validate(&self, expr: &ExpressionView<Self>) -> VortexResult<()>;
6769

6870
/// Returns the name of the nth child of the expr.
69-
fn child_name(&self, _instance: &Self::Instance, child_idx: usize) -> ChildName;
71+
fn child_name(&self, instance: &Self::Instance, child_idx: usize) -> ChildName;
7072

7173
/// Format this expression in nice human-readable SQL-style format
7274
///
@@ -89,7 +91,9 @@ pub trait VTable: 'static + Sized + Send + Sync {
8991
fn evaluate(&self, expr: &ExpressionView<Self>, scope: &ArrayRef) -> VortexResult<ArrayRef>;
9092

9193
/// Execute the expression on the given vector with the given dtype.
92-
fn execute(&self, _data: &Self::Instance, _args: ExecutionArgs) -> VortexResult<Vector> {
94+
fn execute(&self, data: &Self::Instance, args: ExecutionArgs) -> VortexResult<Vector> {
95+
_ = data;
96+
_ = args;
9397
// TODO(ngates): remove this once we port to vector execution
9498
// TODO(ngates): I think we should take/return an enum of Vector/Scalar.
9599
vortex_bail!("Expression {} does not support execution", self.id());
@@ -98,19 +102,24 @@ pub trait VTable: 'static + Sized + Send + Sync {
98102
/// See [`Expression::stat_falsification`].
99103
fn stat_falsification(
100104
&self,
101-
_expr: &ExpressionView<Self>,
102-
_catalog: &dyn StatsCatalog,
105+
expr: &ExpressionView<Self>,
106+
catalog: &dyn StatsCatalog,
103107
) -> Option<Expression> {
108+
_ = expr;
109+
_ = catalog;
104110
None
105111
}
106112

107113
/// See [`Expression::stat_expression`].
108114
fn stat_expression(
109115
&self,
110-
_expr: &ExpressionView<Self>,
111-
_stat: Stat,
112-
_catalog: &dyn StatsCatalog,
116+
expr: &ExpressionView<Self>,
117+
stat: Stat,
118+
catalog: &dyn StatsCatalog,
113119
) -> Option<Expression> {
120+
_ = expr;
121+
_ = stat;
122+
_ = catalog;
114123
None
115124
}
116125

@@ -129,7 +138,8 @@ pub trait VTable: 'static + Sized + Send + Sync {
129138
///
130139
/// This method only checks the expression itself, not its children. To check
131140
/// if an expression or any of its descendants are null-sensitive.
132-
fn is_null_sensitive(&self, _instance: &Self::Instance) -> bool {
141+
fn is_null_sensitive(&self, instance: &Self::Instance) -> bool {
142+
_ = instance;
133143
true
134144
}
135145

@@ -140,7 +150,8 @@ pub trait VTable: 'static + Sized + Send + Sync {
140150
///
141151
/// Note: this is only applicable to expressions that pass type-checking
142152
/// [`VTable::return_dtype`].
143-
fn is_fallible(&self, _instance: &Self::Instance) -> bool {
153+
fn is_fallible(&self, instance: &Self::Instance) -> bool {
154+
_ = instance;
144155
true
145156
}
146157
}

0 commit comments

Comments
 (0)