fix rpn_fn codegen unit test
@@ -1214,9 +1214,9 @@ mod tests_normal {
)
.eval(Null, ctx, output_rows, args, extra, metadata)
}
- fn init_metadata(expr: &mut ::tipb::Expr)-> Box<dyn std::any::Any + Send>
+ fn init_metadata(expr: &mut ::tipb::Expr)-> Result<Box<dyn std::any::Any + Send>>
{
- Box::new(())
+ Ok(Box::new(()))
}
fn validate(expr: &tipb::Expr) -> crate::Result<()> {
use crate::codec::data_type::Evaluable;
@@ -1389,11 +1389,11 @@ mod tests_normal {
<ArgConstructor<A::X, _>>::new(0usize, Foo_Evaluator::<A, B>(std::marker::PhantomData))
.eval(Null, ctx, output_rows, args, extra, metadata)
}
- fn init_metadata <A: M, B> (expr: &mut ::tipb::Expr)-> Box<dyn std::any::Any + Send>
+ fn init_metadata <A: M, B> (expr: &mut ::tipb::Expr)-> Result<Box<dyn std::any::Any + Send>>
where
B: N<A>
{
- Box::new(())
+ Ok(Box::new(()))
}
fn validate<A: M, B>(expr: &tipb::Expr) -> crate::Result<()>
where
