MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / eval_result

Method eval_result

src/expr/src/interpret.rs:847–862  ·  view source on GitHub ↗
(&self, result: Result<Datum<'b>, E>)

Source from the content-addressed store, hash-verified

845 }
846
847 fn eval_result<'b, E>(&self, result: Result<Datum<'b>, E>) -> ResultSpec<'a> {
848 match result {
849 Ok(Datum::Null) => ResultSpec {
850 nullable: true,
851 ..ResultSpec::nothing()
852 },
853 Ok(d) => ResultSpec {
854 values: Values::just(self.arena.make_datum(|packer| packer.push(d))),
855 ..ResultSpec::nothing()
856 },
857 Err(_) => ResultSpec {
858 fallible: true,
859 ..ResultSpec::nothing()
860 },
861 }
862 }
863
864 fn set_literal(expr: &mut MirScalarExpr, update: Result<Datum, EvalError>) {
865 match expr {

Callers 5

for_funcMethod · 0.80
literalMethod · 0.80
unaryMethod · 0.80
binaryMethod · 0.80
variadicMethod · 0.80

Calls 2

make_datumMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected